| 151 | size_t Allocator::getMaxMemorySize(int id) { return getDeviceMemorySize(id); } |
| 152 | |
| 153 | void *Allocator::nativeAlloc(const size_t bytes) { |
| 154 | void *ptr = NULL; |
| 155 | CUDA_CHECK(cudaMalloc(&ptr, bytes)); |
| 156 | AF_TRACE("nativeAlloc: {:>7} {}", bytesToString(bytes), ptr); |
| 157 | return ptr; |
| 158 | } |
| 159 | |
| 160 | void Allocator::nativeFree(void *ptr) { |
| 161 | AF_TRACE("nativeFree: {}", ptr); |
nothing calls this directly
no test coverage detected