Auto-synced memory for CPU and GPU.  
 More...
#include <syncmem.h>
|  | 
| enum | HEAD { HOST, 
DEVICE, 
UNINITIALIZED
 } | 
|  | to determine the where the newest data locates in 
 | 
|  | 
Auto-synced memory for CPU and GPU. 
◆ SyncMem()
  
  | 
        
          | thunder::SyncMem::SyncMem | ( | size_t | size | ) |  |  | explicit | 
 
create a piece of synced memory with given size. The GPU/CPU memory will not be allocated immediately, but allocated when it is used at first time. 
- Parameters
- 
  
    | size | the size of memory (in Bytes) |  
 
 
 
◆ set_device_data()
      
        
          | void thunder::SyncMem::set_device_data | ( | void * | data | ) |  | 
      
 
set device data pointer to another device pointer, and its memory will not be managed by this class 
- Parameters
- 
  
    | data | another device pointer |  
 
 
 
◆ set_host_data()
      
        
          | void thunder::SyncMem::set_host_data | ( | void * | data | ) |  | 
      
 
set host data pointer to another host pointer, and its memory will not be managed by this class 
- Parameters
- 
  
  
 
 
The documentation for this class was generated from the following files:
- include/thundersvm/syncmem.h
- src/thundersvm/syncmem.cpp