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

Function device_mem_copy

include/thundersvm/syncmem.h:27–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 }
26
27 inline void device_mem_copy(void *dst, const void *src, size_t size) {
28#ifdef USE_CUDA
29 CUDA_CHECK(cudaMemcpy(dst, src, size, cudaMemcpyDefault));
30#else
31 NO_GPU;
32#endif
33 }
34
35 /**
36 * @brief Auto-synced memory for CPU and GPU

Callers 1

copy_fromMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected