You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CUB inconsistently invokes _CubLog without surrounding #ifdef CUB_DETAIL_DEBUG_ENABLE_LOG in CachingDeviceAllocator. This leads to issues with printf. GCC 13 seems to have removed stdio from some of its headers, so this issue was unmasked. nvbug 4402427
How to Reproduce
#include<cub/util_allocator.cuh>intmain() {}
When compiled with GCC 13:
nvcc -ccbin=g++-13.2 main.cu
cccl/cub/cub/util_allocator.cuh(386): error: identifier "printf" is undefined
if (debug) do { { printf("Changing max_cached_bytes (%lld -> %lld)\n", (long long) this->max_cached_bytes, (long long) max_cached_bytes_); }; } while (false);
Expected behavior
Successful compilation
Reproduction link
No response
Operating System
No response
nvidia-smi output
No response
NVCC version
No response
The text was updated successfully, but these errors were encountered:
Is this a duplicate?
Type of Bug
Compile-time Error
Component
CUB
Describe the bug
CUB inconsistently invokes
_CubLog
without surrounding#ifdef CUB_DETAIL_DEBUG_ENABLE_LOG
inCachingDeviceAllocator
. This leads to issues withprintf
. GCC 13 seems to have removed stdio from some of its headers, so this issue was unmasked. nvbug 4402427How to Reproduce
When compiled with GCC 13:
Expected behavior
Successful compilation
Reproduction link
No response
Operating System
No response
nvidia-smi output
No response
NVCC version
No response
The text was updated successfully, but these errors were encountered: