Compare commits
8 Commits
19946d4c72
...
ffe764f8b2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ffe764f8b2 | ||
|
|
2cbae09d5e | ||
|
|
5449456534 | ||
|
|
1e8d1ddfa3 | ||
|
|
bf0ad625c3 | ||
|
|
1aa6e16d4e | ||
|
|
93fb9bd8b7 | ||
|
|
93e498197a |
@@ -72,7 +72,8 @@ COMMON_FLAGS=(
|
||||
# Suppress CCCL warnings that don't affect correctness
|
||||
-Wno-unused-function
|
||||
-Wno-unknown-pragmas
|
||||
# Non-NVCC: disable arch magic, wrap namespace to avoid ODR conflicts
|
||||
# CUB needs these for non-NVCC compilers
|
||||
-D_CCCL_COMPILER_GCC=1
|
||||
-D__CUDA_ARCH_LIST__=700
|
||||
-DCUB_DISABLE_NAMESPACE_MAGIC
|
||||
-DCUB_WRAPPED_NAMESPACE=cccl_preload
|
||||
|
||||
@@ -41,10 +41,8 @@ static constexpr unsigned int ALLOC_MAX_BIN = 32; /* 4 GB */
|
||||
static constexpr size_t ALLOC_MAX_CACHED = (size_t)8 * 1024 * 1024 * 1024; /* 8GB */
|
||||
|
||||
/* ---- Global allocator singleton ---- */
|
||||
using CubAllocator = CUB_NS_QUALIFIER::CachingDeviceAllocator;
|
||||
|
||||
static CubAllocator& get_allocator() {
|
||||
static CubAllocator instance(
|
||||
static cub::CachingDeviceAllocator& get_allocator() {
|
||||
static cub::CachingDeviceAllocator instance(
|
||||
ALLOC_BIN_GROWTH,
|
||||
ALLOC_MIN_BIN,
|
||||
ALLOC_MAX_BIN,
|
||||
|
||||
Reference in New Issue
Block a user