CoreNEURON
offload.hpp File Reference
#include <cstddef>
#include <stdexcept>
#include <string_view>

Go to the source code of this file.

Namespaces

 coreneuron
 THIS FILE IS AUTO GENERATED DONT MODIFY IT.
 

Macros

#define nrn_pragma_stringify(x)   #x
 
#define nrn_pragma_acc(x)
 
#define nrn_pragma_omp(x)
 
#define cnrn_target_copyin(...)   cnrn_target_copyin(__FILE__, __LINE__, __VA_ARGS__)
 
#define cnrn_target_delete(...)   cnrn_target_delete(__FILE__, __LINE__, __VA_ARGS__)
 
#define cnrn_target_is_present(...)   cnrn_target_deviceptr_or_present(__FILE__, __LINE__, false, __VA_ARGS__)
 
#define cnrn_target_deviceptr(...)   cnrn_target_deviceptr_or_present(__FILE__, __LINE__, true, __VA_ARGS__)
 
#define cnrn_target_memcpy_to_device(...)   cnrn_target_memcpy_to_device(__FILE__, __LINE__, __VA_ARGS__)
 
#define cnrn_target_update_on_device(...)   cnrn_target_update_on_device(__FILE__, __LINE__, __VA_ARGS__)
 

Functions

void coreneuron::cnrn_target_copyin_debug (std::string_view file, int line, std::size_t sizeof_T, std::type_info const &typeid_T, void const *h_ptr, std::size_t len, void *d_ptr)
 
void coreneuron::cnrn_target_delete_debug (std::string_view file, int line, std::size_t sizeof_T, std::type_info const &typeid_T, void const *h_ptr, std::size_t len)
 
void coreneuron::cnrn_target_deviceptr_debug (std::string_view file, int line, std::type_info const &typeid_T, void const *h_ptr, void *d_ptr)
 
void coreneuron::cnrn_target_is_present_debug (std::string_view file, int line, std::type_info const &typeid_T, void const *h_ptr, void *d_ptr)
 
void coreneuron::cnrn_target_memcpy_to_device_debug (std::string_view file, int line, std::size_t sizeof_T, std::type_info const &typeid_T, void const *h_ptr, std::size_t len, void *d_ptr)
 
template<typename T >
T * coreneuron::cnrn_target_deviceptr_or_present (std::string_view file, int line, bool must_be_present_or_null, const T *h_ptr)
 
template<typename T >
T * coreneuron::cnrn_target_copyin (std::string_view file, int line, const T *h_ptr, std::size_t len=1)
 
template<typename T >
void coreneuron::cnrn_target_delete (std::string_view file, int line, T *h_ptr, std::size_t len=1)
 
template<typename T >
void coreneuron::cnrn_target_memcpy_to_device (std::string_view file, int line, T *d_ptr, const T *h_ptr, std::size_t len=1)
 
template<typename T >
void coreneuron::cnrn_target_update_on_device (std::string_view file, int line, const T *h_ptr, std::size_t len=1)
 

Macro Definition Documentation

◆ cnrn_target_copyin

#define cnrn_target_copyin (   ...)    cnrn_target_copyin(__FILE__, __LINE__, __VA_ARGS__)

Definition at line 184 of file offload.hpp.

◆ cnrn_target_delete

#define cnrn_target_delete (   ...)    cnrn_target_delete(__FILE__, __LINE__, __VA_ARGS__)

Definition at line 185 of file offload.hpp.

◆ cnrn_target_deviceptr

#define cnrn_target_deviceptr (   ...)    cnrn_target_deviceptr_or_present(__FILE__, __LINE__, true, __VA_ARGS__)

Definition at line 188 of file offload.hpp.

◆ cnrn_target_is_present

#define cnrn_target_is_present (   ...)    cnrn_target_deviceptr_or_present(__FILE__, __LINE__, false, __VA_ARGS__)

Definition at line 186 of file offload.hpp.

◆ cnrn_target_memcpy_to_device

#define cnrn_target_memcpy_to_device (   ...)    cnrn_target_memcpy_to_device(__FILE__, __LINE__, __VA_ARGS__)

Definition at line 190 of file offload.hpp.

◆ cnrn_target_update_on_device

#define cnrn_target_update_on_device (   ...)    cnrn_target_update_on_device(__FILE__, __LINE__, __VA_ARGS__)

Definition at line 192 of file offload.hpp.

◆ nrn_pragma_acc

#define nrn_pragma_acc (   x)

Definition at line 20 of file offload.hpp.

◆ nrn_pragma_omp

#define nrn_pragma_omp (   x)

Definition at line 21 of file offload.hpp.

◆ nrn_pragma_stringify

#define nrn_pragma_stringify (   x)    #x

Definition at line 9 of file offload.hpp.