Skip to content

Commit

Permalink
Use lower case variable name to avoid macro collosions (#3856)
Browse files Browse the repository at this point in the history
Fixes [Bug?] /usr/local/cuda/include/cub/agent/agent_batch_memcpy.cuh(896): error: expected an identifier #3852
  • Loading branch information
miscco authored Feb 19, 2025
1 parent 02d2396 commit 1e9f4e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cub/cub/agent/agent_batch_memcpy.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -863,9 +863,9 @@ private:
BlockBufferOffsetT num_wlev_buffers)
{
const int32_t warp_id = threadIdx.x / CUB_PTX_WARP_THREADS;
constexpr uint32_t WARPS_PER_BLOCK = BLOCK_THREADS / CUB_PTX_WARP_THREADS;
constexpr uint32_t warps_per_block = BLOCK_THREADS / CUB_PTX_WARP_THREADS;

for (BlockBufferOffsetT buffer_offset = warp_id; buffer_offset < num_wlev_buffers; buffer_offset += WARPS_PER_BLOCK)
for (BlockBufferOffsetT buffer_offset = warp_id; buffer_offset < num_wlev_buffers; buffer_offset += warps_per_block)
{
const auto buffer_id = buffers_by_size_class[buffer_offset].buffer_id;
copy_items<IsMemcpy, CUB_PTX_WARP_THREADS, InputBufferT, OutputBufferT, BufferSizeT>(
Expand Down

0 comments on commit 1e9f4e7

Please sign in to comment.