Repository navigation
|
I am using an NVIDIA GPU to run the neural GCM climate simulation. However, I always get stuck at the horizontal interpolation due to memory issues. The program keeps failing to allocate memory, although the input variable is only 1 GB. Has anyone encountered this problem? Thank you for your help. It seems that my code can access the gpu, the cuda-toolkit and driver work properly. I also tried to specify some environment variables, but none of this ever worked. Code: Error: |
Replies: 1 comment 2 replies
|
JAX preallocates about 75% of GPU memory by default, so it can fail even when the input is small. Try XLA_PYTHON_CLIENT_PREALLOCATE=false. The 1 GB input can also create much bigger intermediate arrays during interpolation, so the full error message will show the size it tried to allocate. If you post that line, we can check whether it's the input or an intermediate array. |
JAX preallocates about 75% of GPU memory by default, so it can fail even when the input is small. Try XLA_PYTHON_CLIENT_PREALLOCATE=false. The 1 GB input can also create much bigger intermediate arrays during interpolation, so the full error message will show the size it tried to allocate. If you post that line, we can check whether it's the input or an intermediate array.