Closed Zhiyuan-w closed 3 years ago
I'm having the exact same issue
I'm having the exact same issue
You can temporarily remove these two lines in /deepreg/train.py: # set env variables os.environ["CUDA_VISIBLE_DEVICES"] = gpu os.environ["TF_FORCE_GPU_ALLOW_GROWTH"] = "true" if gpu_allow_growth else "false" It works for me.
tensorflow.python.framework.errors_impl.InternalError: CUDA runtime implicit initialization on GPU:0 failed. Status: all CUDA-capable devices are busy or unavailable
If the bug is confirmed, would you be willing to submit a PR? (Help can be provided if you need assistance submitting a PR)
Yes
Your environment
Steps to reproduce
run the code in cluster environment.
Expected behaviour
The GPU works.
Actual behaviour
The GPU may not work.
We cannot know the GPU before hand.