The Quantum Exact Simulation Toolkit v4.0.0
Loading...
Searching...
No Matches

Functions to control temporary memory used by the QuEST process. More...

Functions

void clearGpuCache ()
 
qindex getGpuCacheSize ()
 

Detailed Description

Functions to control temporary memory used by the QuEST process.

Function Documentation

◆ clearGpuCache()

void clearGpuCache ( )
Note
Documentation for this function or struct is under construction!

Definition at line 175 of file debug.cpp.

175 {
176 validate_envIsInit(__func__);
177
178 // safely do nothing if not GPU accelerated
179 if (getQuESTEnv().isGpuAccelerated)
180 gpu_clearCache();
181}
QuESTEnv getQuESTEnv()

◆ getGpuCacheSize()

qindex getGpuCacheSize ( )
Note
Documentation for this function or struct is under construction!

Definition at line 164 of file debug.cpp.

164 {
165 validate_envIsInit(__func__);
166
167 if (getQuESTEnv().isGpuAccelerated)
168 return gpu_getCacheMemoryInBytes();
169
170 // safely returns 0 if not GPU accelerated
171 return 0;
172}