Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matrix - Matrix multiplication #12

Open
lucaparisi91 opened this issue Jul 2, 2024 · 0 comments
Open

Matrix - Matrix multiplication #12

lucaparisi91 opened this issue Jul 2, 2024 · 0 comments

Comments

@lucaparisi91
Copy link
Collaborator

lucaparisi91 commented Jul 2, 2024

Scope making an exercise based on matrix matrix multiplication.

Optimization guide for CUDA:

List of optimizations:

  • use shared memory
  • back of the envelope estimate for performance ( roofline plot )
  • Decrease the amount of shared memory used per kernel ( note that some amount of memory is used by the CUDA runtime ). Useful if limiting occupancy or limited by the number of operations.
  • Increase the arithmetic intensity by reducing the concurrent amount of loads and stores. Can be done by computing for than once C element per thread.
  • GPU can have vectorization. Instead of .32 instructions one should get .128 instructions for loading data/ operations. It might require looking at the SSA code
  • shared-memory bank conflicts
  • double buffering (?)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant