The Quantum Exact Simulation Toolkit v4.1.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 191 of file debug.cpp.

191 {
192 validate_envIsInit(__func__);
193
194 // safely do nothing if not GPU accelerated
195 if (getQuESTEnv().isGpuAccelerated)
196 gpu_clearCache();
197}
QuESTEnv getQuESTEnv()

◆ getGpuCacheSize()

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

Definition at line 180 of file debug.cpp.

180 {
181 validate_envIsInit(__func__);
182
183 if (getQuESTEnv().isGpuAccelerated)
184 return gpu_getCacheMemoryInBytes();
185
186 // safely returns 0 if not GPU accelerated
187 return 0;
188}