1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

Need lattice view

This commit is contained in:
Peter Boyle 2020-06-03 09:11:28 -04:00
parent 1c9f20b15e
commit 8cfd5d2639

View File

@ -77,7 +77,7 @@ public:
this->cpu_ptr = (void *)this->_odata;
this->mode = mode;
this->_odata =(vobj *)
AllocationCache::ViewOpen(this->cpu_ptr,
MemoryManager::ViewOpen(this->cpu_ptr,
this->_odata_size*sizeof(vobj),
mode,
AdviseDefault);
@ -85,7 +85,7 @@ public:
void ViewClose(void)
{ // Inform the manager
// std::cout << "View Close"<<std::hex<<this->cpu_ptr<<std::dec <<std::endl;
AllocationCache::ViewClose(this->cpu_ptr,this->mode);
MemoryManager::ViewClose(this->cpu_ptr,this->mode);
}
};
@ -101,7 +101,7 @@ class MemViewDeleter {
void *cpu_ptr;
ViewMode mode;
~MemViewDeleter(){
AllocationCache::ViewClose(cpu_ptr,mode);
MemoryManager::ViewClose(cpu_ptr,mode);
}
};
template<class vobj>