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

Method copy_from

src/thundersvm/syncarray.cpp:49–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47
48template<typename T>
49void SyncArray<T>::copy_from(const T *source, size_t count) {
50#ifdef USE_CUDA
51 thunder::device_mem_copy(mem->device_data(), source, sizeof(T) * count);
52#else
53 memcpy(mem->host_data(), source, sizeof(T) * count);
54#endif
55}
56
57
58template<typename T>

Callers 11

get_support_classesFunction · 0.80
get_coefFunction · 0.80
get_linear_coefFunction · 0.80
get_rhoFunction · 0.80
sparse_decisionFunction · 0.80
KernelMatrixMethod · 0.80
trainMethod · 0.80
save_svr_coefMethod · 0.80
solveMethod · 0.80
init_fMethod · 0.80
get_working_set_insFunction · 0.80

Calls 4

device_mem_copyFunction · 0.85
device_dataMethod · 0.45
host_dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected