NVIDIA / cuda-samples

Samples for CUDA Developers which demonstrates features in CUDA Toolkit
Other
6.47k stars 1.83k forks source link

[Bug?] /usr/local/cuda/include/cub/agent/agent_batch_memcpy.cuh(896): error: expected an identifier #301

Open nanmi opened 1 month ago

nanmi commented 1 month ago

Question:

/usr/local/cuda/include/cub/agent/agent_batch_memcpy.cuh(896): error: expected an identifier
                                         32
                                          ^

Code location:

constexpr uint32_t WARPS_PER_BLOCK = BLOCK_THREADS / CUB_PTX_WARP_THREADS;

I think the problem may be caused by the conflict between const variable WARPS_PER_BLOCK and macro definition #define WARPS_PER_BLOCK = 32

so, WARPS_PER_BLOCK modify to WARPS_PERBLOCK, I have resolved the error