HAMR
The Heterogeneous Accelerator Memory Resource
hamr_buffer_transfer.h
Go to the documentation of this file.
1 #ifndef buffer_transfer_h
2 #define buffer_transfer_h
3 
4 ///@file
5 
6 /// heterogeneous accelerator memory resource
7 namespace hamr
8 {
9 
10 /** flag used to indicate whether or not a transfer operation should be
11  * synchronous or not.
12  */
13 enum class buffer_transfer
14 {
15  async = 0, ///< all operations are asynchronous
16  sync_host = 1,///< operations moving data from GPU to host memory are synchronous
17  sync = 2 ///< all operations are synchronous
18 };
19 
20 }
21 
22 #endif
hamr::buffer_transfer::sync_host
@ sync_host
operations moving data from GPU to host memory are synchronous
hamr::buffer_transfer
buffer_transfer
Definition: hamr_buffer_transfer.h:13
hamr::buffer_transfer::sync
@ sync
all operations are synchronous
hamr
heterogeneous accelerator memory resource
Definition: hamr_buffer.h:13
hamr::buffer_transfer::async
@ async
all operations are asynchronous