#include <cstdint>
#include <cstring>
#include <memory>
#include "coreneuron/utils/nrn_assert.h"
#include "coreneuron/nrniv/nrniv_decl.h"
#include <cstdlib>
Go to the source code of this file.
|
| coreneuron |
| THIS FILE IS AUTO GENERATED DONT MODIFY IT.
|
|
|
bool | coreneuron::gpu_enabled () |
| Check if GPU support is enabled. More...
|
|
void * | coreneuron::allocate_unified (std::size_t num_bytes) |
| Allocate unified memory in GPU builds iff GPU enabled, otherwise new. More...
|
|
void | coreneuron::deallocate_unified (void *ptr, std::size_t num_bytes) |
| Deallocate memory allocated by allocate_unified . More...
|
|
template<typename T , typename U > |
bool | coreneuron::operator== (unified_allocator< T > const &, unified_allocator< U > const &) noexcept |
|
template<typename T , typename U > |
bool | coreneuron::operator!= (unified_allocator< T > const &x, unified_allocator< U > const &y) noexcept |
|
template<typename T , typename Alloc , typename... Args> |
auto | coreneuron::allocate_unique (const Alloc &alloc, Args &&... args) |
|
void | alloc_memory (void *&pointer, size_t num_bytes, size_t alignment) |
|
void | calloc_memory (void *&pointer, size_t num_bytes, size_t alignment) |
|
void | free_memory (void *pointer) |
|
◆ NRN_SOA_BYTE_ALIGN
#define NRN_SOA_BYTE_ALIGN (8 * sizeof(double)) |
◆ alloc_memory()
void alloc_memory |
( |
void *& |
pointer, |
|
|
size_t |
num_bytes, |
|
|
size_t |
alignment |
|
) |
| |
|
inline |
◆ calloc_memory()
void calloc_memory |
( |
void *& |
pointer, |
|
|
size_t |
num_bytes, |
|
|
size_t |
alignment |
|
) |
| |
|
inline |
◆ free_memory()
void free_memory |
( |
void * |
pointer | ) |
|
|
inline |