GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — HPCTrainingExamples/HIP/basic_examples/05_compare_with_library at main · amd/HPCTrainingExamples

Expand file tree

/

05_compare_with_library

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

05_compare_with_library

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Makefile
Makefile
 
 
README.md
README.md
 
 
matrix_multiply.cpp
matrix_multiply.cpp
 
 
parse_output.py
parse_output.py
 
 
submit.sh
submit.sh
 
 

README.md

Complete the matrix multiply kernel

README.md in HPCTrainingExamples/HIP/05_compare_with_library of the Training Exercises repository.

In this exercise, we will use the matrix_multiply kernel we completed in 04_complete_the_kernel and compare its performance against the hipBLAS version of DGEMM.

You will not need to make any code changes. Instead, you will simply compile the code and submit the job. This will run the code under the rocprof profiling tool and parse the results.

To compile and run:

$ make

$ sbatch -A <account-name> submit.sh

where account-name is your account name for the system (may be required for certain systems). A job file titled <name-of-exercise>-%J.out will be produced, where %J is the job id number of your run. To check your program output, simply run:

cat <name-of-exercise>-%J.out

To view the resulting profile, run the python script:

./parse_output.py

It should be clear from the performance difference that using existing libraries is typically the right choice instead of re-inventing the (slower) wheel.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.