1 #ifndef WARPCORE_BASE_CUH
2 #define WARPCORE_BASE_CUH
10 #include <cuda_runtime.h>
11 #include <cooperative_groups.h>
12 #include <cuda_helpers.cuh>
13 #include <packed_types.cuh>
14 #include <cub/cub.cuh>
23 using index_t = std::uint64_t;
24 using status_base_t = std::uint32_t;
29 HOSTQUALIFIER INLINEQUALIFIER
32 const auto x = SDIV(min_capacity, cg_size);
34 std::lower_bound(primes.begin(), primes.end(), x);
35 return (y == primes.end()) ? 0 : (*y) * cg_size;
43 #ifdef __CUDACC_DEBUG__
44 #ifndef WARPCORE_BLOCKSIZE
45 #define WARPCORE_BLOCKSIZE 128
48 #ifndef WARPCORE_BLOCKSIZE
49 #define WARPCORE_BLOCKSIZE MAXBLOCKSIZE