|
template<class DSC > |
void | enqueueH2D (DSC &dataset, typename DSC::size_type size=0, typename DSC::size_type offset=0) |
|
template<class DSC > |
void | enqueueD2H (DSC &dataset, typename DSC::size_type size=0, typename DSC::size_type offset=0) |
|
void | sync () |
|
template<>
class qmcplusplus::compute::Queue< PlatformKind::OMPTARGET >
Definition at line 24 of file QueueOMPTarget.hpp.
◆ enqueueD2H()
void enqueueD2H |
( |
DSC & |
dataset, |
|
|
typename DSC::size_type |
size = 0 , |
|
|
typename DSC::size_type |
offset = 0 |
|
) |
| |
|
inline |
Definition at line 46 of file QueueOMPTarget.hpp.
48 if (dataset.data() == dataset.device_data())
51 auto host_ptr = dataset.data();
54 PRAGMA_OFFLOAD(
"omp target update from(host_ptr[offset:dataset.size()])")
58 PRAGMA_OFFLOAD(
"omp target update from(host_ptr[offset:size])")
◆ enqueueH2D()
void enqueueH2D |
( |
DSC & |
dataset, |
|
|
typename DSC::size_type |
size = 0 , |
|
|
typename DSC::size_type |
offset = 0 |
|
) |
| |
|
inline |
Definition at line 29 of file QueueOMPTarget.hpp.
31 if (dataset.data() == dataset.device_data())
34 auto host_ptr = dataset.data();
37 PRAGMA_OFFLOAD(
"omp target update to(host_ptr[offset:dataset.size()])")
41 PRAGMA_OFFLOAD(
"omp target update to(host_ptr[offset:size])")
◆ sync()
The documentation for this class was generated from the following file:
- /home/pk7/projects/qmc/for_cron_doxygen/qmcpack/src/Platforms/OMPTarget/QueueOMPTarget.hpp