-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Laurent Montigny edited this page Oct 18, 2017
·
1 revision
GTX 1070
Maximum number of threads per block: 1024
Max dimension size of a thread block (x,y,z): (1024, 1024, 64)
Max dimension size of a grid size (x,y,z): (2147483647, 65535, 65535)
<<< #blocks, #threads per block >>>
int blockSize = 256;
int numBlocks = (N + blockSize - 1) / blockSize;
add<<<numBlocks, blockSize>>>(N, x, y);