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/07_matrix_multiply_shared at main · amd/HPCTrainingExamples

Expand file tree

/

07_matrix_multiply_shared

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

07_matrix_multiply_shared

/
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 with shared memory

README.md in HPCTrainingExamples/HIP/07_matrix_multiply_shared of the Training Exercises repository.

In this example, a matrix multiply is performed with shared memory, where each thread computes 1 element of the resultant matrix.

NOTE: The shared memory allocations are only of size THREADS_PER_BLOCK, which is smaller than the array size. So each thread must loop through its dot-product (since that's what each element of the resultant matrix is) in chunks until it completes the full dot product.

Your job in this exercise is to correctly copy the data from global memory into the shared memory arrays, then compile and run the program.

To compile and run:

$ make

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

where account-name is your assigned Frontier username. 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.