MCPcopy Create free account
hub / github.com/NVIDIA/DALI / GetMemoryKind

Function GetMemoryKind

dali/c_api_2/data_objects.h:47–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45namespace c_api {
46
47constexpr mm::memory_kind_id GetMemoryKind(const daliBufferPlacement_t &placement) {
48 if (placement.device_type == DALI_STORAGE_GPU) {
49 return mm::memory_kind_id::device;
50 } else {
51 assert(placement.device_type == DALI_STORAGE_CPU);
52 return placement.pinned ? mm::memory_kind_id::pinned : mm::memory_kind_id::host;
53 }
54}
55
56//////////////////////////////////////////////////////////////////////////////
57// Interfaces

Callers 2

CopyOutMethod · 0.85
CopyOutMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected