-
Notifications
You must be signed in to change notification settings - Fork 18
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
RuntimeError: CUDA error: unspecified launch failure #9
Comments
I am sorry that I have no idea too. |
Hi,
I insert print function for variable.Variable is more than 1 always.
I run the train code. For example, it does not work 5 times and it gives this error. It works without error on the 6th stage. But this changes a lot. Sometimes it gives an error 8 times,and 9th works. I found pytorch/pytorch#27837 this says The fix is as follow: Run "Registry Editor" as Administrator, navigate to KeyPath : HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\GraphicsDrivers PS. setting CUDA_LAUNCH_BLOCKING=1 also solves the issue but comes at a heavy performance penalty." But it still did not solve the issue. |
Whether a fixed sample causes this error maybe the key. |
I can't help you more. |
Thank you. |
You can try to change the dataloader parameters, such as pin_memory, shuffle and num_workers. I don’t know if this will work, but it’s worth trying. |
Ok I will try,thanks for helping |
Hi,
I reduced my dataset as hmdb51,and training process started.To avoid cuda out of memory error, I set 1 to batch size.
But after 17 epochs, sometimes even most of the time, I am getting cuda error.
File "......\train.py", line 74, in
input_var = [input.cuda() for input in inputs]
RuntimeError: CUDA error: unspecified launch failure
Please help me.
Thanks.
Windows 10
NVIDIA GeForce GTX 1060
The text was updated successfully, but these errors were encountered: