![]() |
The Quantum Exact Simulation Toolkit v4.0.0
|
Functions for copying memory between a Qureg's CPU (RAM) and GPU (VRAM) memory. More...
Functions | |
void | syncQuregFromGpu (Qureg qureg) |
void | syncQuregToGpu (Qureg qureg) |
void | syncSubQuregFromGpu (Qureg qureg, qindex localStartInd, qindex numLocalAmps) |
void | syncSubQuregToGpu (Qureg qureg, qindex localStartInd, qindex numLocalAmps) |
Functions for copying memory between a Qureg's CPU (RAM) and GPU (VRAM) memory.
These functions are only necessary when the user wishes to manually probe or modify the Qureg amplitudes (rather than use functions like getQuregAmps() and setQuregAmps()), to ensure that the CPU and GPU copies of the Qureg are identical. These functions have no effect when running without GPU-acceleration, but remain legal and harmless to call, to achieve platform agnosticism.
void syncQuregFromGpu | ( | Qureg | qureg | ) |
Definition at line 399 of file qureg.cpp.
Referenced by TEST_CASE(), and TEST_CASE().
void syncQuregToGpu | ( | Qureg | qureg | ) |
Definition at line 392 of file qureg.cpp.
void syncSubQuregFromGpu | ( | Qureg | qureg, |
qindex | localStartInd, | ||
qindex | numLocalAmps ) |
Definition at line 427 of file qureg.cpp.
void syncSubQuregToGpu | ( | Qureg | qureg, |
qindex | localStartInd, | ||
qindex | numLocalAmps ) |
Definition at line 408 of file qureg.cpp.