MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / CaffeFreeHost

Function CaffeFreeHost

rtpose_wrapper/include/caffe/syncedmem.hpp:28–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28inline void CaffeFreeHost(void* ptr, bool use_cuda) {
29#ifndef CPU_ONLY
30 if (use_cuda) {
31 CUDA_CHECK(cudaFreeHost(ptr));
32 return;
33 }
34#endif
35 free(ptr);
36}
37
38
39/**

Callers 2

~SyncedMemoryMethod · 0.85
set_cpu_dataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected