nvidia
target: simulation errors when setting CUDAQ_MAX_CPU_MEMORY_GB
beyond system memory capacity
#2185
Labels
bug
Something isn't working
Required prerequisites
Describe the bug
Using the
CUDAQ_MAX_CPU_MEMORY_GB
environment variable setting, when an unlimited setting (None
) is used or a value larger than the actual physical system's memory available, the simulation may fail (e.g., with a cuda error) or produce invalid simulation results.Steps to reproduce the bug
Run a simulation that requires more qubits than GPU memory.
Set
CUDAQ_MAX_CPU_MEMORY_GB
to a value larger than the physical host memory.Expected behavior
The simulation should work as expected or at least a more descriptive error message should be displayed.
Is this a regression? If it is, put the last known working version (or commit) here.
Not a regression
Environment
Suggestions
The current workaround is to set
CUDAQ_MAX_CPU_MEMORY_GB
to a valid value, taking into account the physical system memory configuration.The text was updated successfully, but these errors were encountered: