-
Notifications
You must be signed in to change notification settings - Fork 590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempting to run cuBLAS, but there was no current CUDA context! #287
Comments
I'm getting a similar warning, but after some investigating I can confirm it is running on GPU, despite the error. It may be that this error message is unrelated to the lack of GPU utilization. @alonadi - which version of CUDA do you have? did you install PyTorch and Torchvision accordingly? Here are wheels for pytorch and torchvision for various version of python/CUDA. Here's what I got: $CONDA/envs/apeStyleGAN/lib/python3.11/site-packages/torch/autograd/graph.py:768: UserWarning: Attempting to run cuBLAS, but there was no current CUDA context! Attempting to set the primary context... (Triggered internally at ../aten/src/ATen/cuda/CublasHandlePool.cpp:135.)
return Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass The default network is training at 1.7 second per iteration. | 0 N/A N/A 426695 C ...$CONDA/envs/$MYENV/bin/python 4014MiB | Conda environment.
CUDA details:
|
UserWarning: Attempting to run cuBLAS, but there was no current CUDA context! Attempting to set the primary context... (Triggered internally at ../aten/src/ATen/cuda/CublasHandlePool.cpp:135.)
return Variable._execution_engine.run_backward( # Calls into the C++ engine to run the backward pass.
when I run nvidia-smi, I see that there is not gpu uses.
The text was updated successfully, but these errors were encountered: