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

Function free_host

include/thundersvm/syncmem.h:19–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 }
18
19 inline void free_host(void *ptr) {
20#ifdef USE_CUDA
21 CUDA_CHECK(cudaFreeHost(ptr));
22#else
23 free(ptr);
24#endif
25 }
26
27 inline void device_mem_copy(void *dst, const void *src, size_t size) {
28#ifdef USE_CUDA

Callers 2

~SyncMemMethod · 0.85
set_host_dataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected