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:
parent
1c9f20b15e
commit
8cfd5d2639
@ -77,7 +77,7 @@ public:
|
|||||||
this->cpu_ptr = (void *)this->_odata;
|
this->cpu_ptr = (void *)this->_odata;
|
||||||
this->mode = mode;
|
this->mode = mode;
|
||||||
this->_odata =(vobj *)
|
this->_odata =(vobj *)
|
||||||
AllocationCache::ViewOpen(this->cpu_ptr,
|
MemoryManager::ViewOpen(this->cpu_ptr,
|
||||||
this->_odata_size*sizeof(vobj),
|
this->_odata_size*sizeof(vobj),
|
||||||
mode,
|
mode,
|
||||||
AdviseDefault);
|
AdviseDefault);
|
||||||
@ -85,7 +85,7 @@ public:
|
|||||||
void ViewClose(void)
|
void ViewClose(void)
|
||||||
{ // Inform the manager
|
{ // Inform the manager
|
||||||
// std::cout << "View Close"<<std::hex<<this->cpu_ptr<<std::dec <<std::endl;
|
// 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;
|
void *cpu_ptr;
|
||||||
ViewMode mode;
|
ViewMode mode;
|
||||||
~MemViewDeleter(){
|
~MemViewDeleter(){
|
||||||
AllocationCache::ViewClose(cpu_ptr,mode);
|
MemoryManager::ViewClose(cpu_ptr,mode);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
template<class vobj>
|
template<class vobj>
|
||||||
|
Loading…
Reference in New Issue
Block a user