11 #ifdef CORENEURON_ENABLE_GPU
12 #include <cuda_runtime_api.h>
19 #ifdef CORENEURON_ENABLE_GPU
27 #ifdef CORENEURON_ENABLE_GPU
33 auto const code = cudaMallocManaged(&ptr, num_bytes);
34 assert(code == cudaSuccess);
41 return ::operator
new(num_bytes);
46 #ifdef CORENEURON_ENABLE_GPU
49 auto const code = cudaFree(ptr);
50 assert(code == cudaSuccess);
54 #ifdef __cpp_sized_deallocation
55 ::operator
delete(ptr, num_bytes);
57 ::operator
delete(ptr);
THIS FILE IS AUTO GENERATED DONT MODIFY IT.
void * allocate_unified(std::size_t num_bytes)
void deallocate_unified(void *ptr, std::size_t num_bytes)
corenrn_parameters corenrn_param
Printing method.
bool gpu
Enable pthread/openmp.