Wednesday 15 February 2012

memory - Cuda: If I use only .x of block and threads, will it still use all available threads in GPU or for that using .y and .z of thread and block is a must? -



memory - Cuda: If I use only .x of block and threads, will it still use all available threads in GPU or for that using .y and .z of thread and block is a must? -

i have programme requires maximum utilize of gpu.

so, blockdim.x * blockidx.x + threadidx.x; able access threads? or must utilize .y , .z ? mandatory?

the cuda threads hierarchy convenience abstraction , there's no requirement using one, 2 or 3 dimensions, nor lose performances if utilize 1 dimension instead of 3 of them. able utilize threads launched set of indices long specified right grid dimension.

2.2. thread hierarchy

for convenience, threadidx 3-component vector, threads can identified using one-dimensional, two-dimensional, or three-dimensional thread index, forming one-dimensional, two-dimensional, or three-dimensional thread block. provides natural way invoke computation across elements in domain such vector, matrix, or volume.

read more at: http://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#thread-hierarchy

memory cuda

No comments:

Post a Comment