unitaryfund / qrack

Comprehensive, GPU accelerated framework for developing universal virtual quantum processors
https://qrack.readthedocs.io/en/latest/
GNU Lesser General Public License v3.0
176 stars 38 forks source link

OpenCL host pointer option in benchmarks #868

Closed WrathfulSpatula closed 3 years ago

WrathfulSpatula commented 3 years ago

(We had this previously, but I didn't see actual use for it, until now:)

We add an option to the benchmark executable to allow users to require that OpenCL state vector buffers are allocated in general heap. I'm not so lucky, with my personal devices, but this could sometimes allow the use of greater general heap capacities than GPU internal VRAM, potentially including swap space, dependent on DMA capabilities of the GPU/system.

WrathfulSpatula commented 3 years ago

(Rather, the ability to use swap disk, or more than GPU VRAM width, might properly depend on just the "DMA controller," but that's about as much as I know. For our part, we just CL_MEM_USE_HOST_PTR.)