mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-05 03:35:55 +01:00
24 lines
931 B
C++
24 lines
931 B
C++
#include <Grid/GridCore.h>
|
|
#ifdef GRID_UVM
|
|
|
|
NAMESPACE_BEGIN(Grid);
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
// View management is 1:1 address space mapping
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
uint64_t MemoryManager::DeviceBytes;
|
|
uint64_t MemoryManager::DeviceLRUBytes;
|
|
uint64_t MemoryManager::DeviceMaxBytes = 1024*1024*128;
|
|
uint64_t MemoryManager::HostToDeviceBytes;
|
|
uint64_t MemoryManager::DeviceToHostBytes;
|
|
uint64_t MemoryManager::HostToDeviceXfer;
|
|
uint64_t MemoryManager::DeviceToHostXfer;
|
|
|
|
void MemoryManager::ViewClose(void* AccPtr,ViewMode mode){};
|
|
void *MemoryManager::ViewOpen(void* CpuPtr,size_t bytes,ViewMode mode,ViewAdvise hint){ return CpuPtr; };
|
|
int MemoryManager::isOpen (void* CpuPtr) { return 0;}
|
|
void MemoryManager::Print(void){};
|
|
void MemoryManager::NotifyDeletion(void *ptr){};
|
|
|
|
NAMESPACE_END(Grid);
|
|
#endif
|