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/04_complete_matrix_multiply at main · amd/HPCTrainingExamples

Expand file tree

/

04_complete_matrix_multiply

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

04_complete_matrix_multiply

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
solution
solution
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
matrix_multiply.cpp
matrix_multiply.cpp
 
 
submit.sh
submit.sh
 
 

README.md

Complete the matrix multiply kernel

README.md in HPCTrainingExamples/HIP//04_complete_matrix_multiply of the Training Exercises repository.

In this exercise, a matrix multiply is performed on the GPU. In the code, the indices row_index and col_index iterate through the arrays in row-major (across the first row, then across the second row, etc.) and column-major (down the first column, then down the second column, etc.) order, respectively.

Look at the matrix multiply kernel and decide which of these two indices should define the elements of arrays A and B. Look for the TODO.

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
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.