Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit f49d0cd

Browse files
committed
Declare cnrn_ methods.
1 parent a164fe8 commit f49d0cd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

coreneuron/utils/offload.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
# =============================================================================
77
*/
88
#pragma once
9+
#include <cstddef>
10+
911
#define nrn_pragma_stringify(x) #x
1012
#if defined(CORENEURON_ENABLE_GPU) && defined(CORENEURON_PREFER_OPENMP_OFFLOAD) && defined(_OPENMP)
1113
#define nrn_pragma_acc(x)
@@ -18,3 +20,10 @@
1820
#define nrn_pragma_acc(x)
1921
#define nrn_pragma_omp(x)
2022
#endif
23+
24+
namespace coreneuron {
25+
void* cnrn_gpu_copyin(void* h_ptr, std::size_t len);
26+
void cnrn_memcpy_to_device(void* d_ptr, void* h_ptr, std::size_t len);
27+
void cnrn_target_delete(void* h_ptr, std::size_t len);
28+
void* cnrn_target_deviceptr(void* h_ptr);
29+
} // namespace coreneuron

0 commit comments

Comments
 (0)