cuda-samples icon indicating copy to clipboard operation
cuda-samples copied to clipboard

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

Open bobbych94 opened this issue 1 year ago • 0 comments

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_PER_BLOCK_, I have resolved the error

bobbych94 avatar Sep 30 '24 10:09 bobbych94