mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-10-31 03:54:33 +00:00 
			
		
		
		
	Need lattice view
This commit is contained in:
		| @@ -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>  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user