55 nbytes +=
_size *
sizeof(int) * 3;
56 nbytes += (
_size + 1) *
sizeof(
int);
57 nbytes +=
_size *
sizeof(double) * 2;
90 nbytes +=
_size *
sizeof(int) * 4;
91 nbytes +=
_size *
sizeof(double) * 2;
105 #ifdef CORENEURON_ENABLE_GPU
106 int cannot_reallocate_on_device = 0;
107 assert(cannot_reallocate_on_device);
109 int new_size =
_size * 2;
121 template <
typename T>
123 T* new_buf =
nullptr;
125 memcpy(new_buf, *
buf, size *
sizeof(T));
for gpu builds with unified memory support
void free_memory(void *pointer)
THIS FILE IS AUTO GENERATED DONT MODIFY IT.
void * ecalloc_align(size_t n, size_t size, size_t alignment)
NetSendBuffer_t * _net_send_buffer
std::size_t global_variables_size
NetReceiveBuffer_t * _net_receive_buffer
NetSendBuffer_t(int size)
void grow_buf(T **buf, int size, int new_size)