1 #ifndef HeterogeneousCore_CUDACore_src_getCachingHostAllocator
2 #define HeterogeneousCore_CUDACore_src_getCachingHostAllocator
15 LogDebug(
"CachingHostAllocator").log([](
auto&
log) {
16 log <<
"cub::CachingHostAllocator settings\n"
18 <<
" min bin " <<
minBin <<
"\n"
19 <<
" max bin " <<
maxBin <<
"\n"
20 <<
" resulting bins:\n";
23 if (binSize >= (1 << 30) and binSize % (1 << 30) == 0) {
24 log <<
" " << std::setw(8) << (binSize >> 30) <<
" GB\n";
25 }
else if (binSize >= (1 << 20) and binSize % (1 << 20) == 0) {
26 log <<
" " << std::setw(8) << (binSize >> 20) <<
" MB\n";
27 }
else if (binSize >= (1 << 10) and binSize % (1 << 10) == 0) {
28 log <<
" " << std::setw(8) << (binSize >> 10) <<
" kB\n";
30 log <<
" " << std::setw(9) << binSize <<
" B\n";
33 log <<
" maximum amount of cached memory: " << (
minCachedBytes() >> 20) <<
" MB\n";