45161610f035ee3700f5d5f958720c69da7c7bed
CUB CachingDeviceAllocator::DeviceAllocate calls cudaMalloc internally on cache miss. Without a guard, our intercepted cudaMalloc recurses into DeviceAllocate → cudaMalloc → DeviceAllocate → segfault. thread_local g_in_allocator flag detects reentrant calls and forwards them directly to the real cudaMalloc/cudaFree via dlsym(RTLD_NEXT).
project_6
Description
Languages
C++
41.8%
Cuda
31.6%
Python
22.2%
C
2.1%
CMake
1.1%
Other
1.1%