Assignment 6 Cuda Threads

74 views
Skip to first unread message

Andy Liu

unread,
Mar 28, 2020, 2:25:53 AM3/28/20
to Parallel and Distributed Systems at SFU (431)
How do we know how many CUDA threads to launch? wouldn't we need to know how many cuda cores are available for the csil computer?

Thank you

Arrvindh Shriraman

unread,
Mar 28, 2020, 4:33:45 PM3/28/20
to Parallel and Distributed Systems at SFU (431)
You distribute based on problem size (not CUDA cores).

Thread blocks is 1D or 2D (limited by the amount of shared memory you want to cumulatively use across all threads in block). Typically thread blocks would be 128 or 256 threads. 
Grid 1D, 2D or 3D

The CSIL machines have a compute device # 61. 


See here how we estimate block size based on matrix size

Reply all
Reply to author
Forward
0 new messages