MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / malloc_host

Function malloc_host

include/thundersvm/syncmem.h:11–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10namespace thunder {
11 inline void malloc_host(void **ptr, size_t size) {
12#ifdef USE_CUDA
13 CUDA_CHECK(cudaMallocHost(ptr, size));
14#else
15 *ptr = malloc(size);
16#endif
17 }
18
19 inline void free_host(void *ptr) {
20#ifdef USE_CUDA

Callers 1

to_hostMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected