Skip to content
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

getting this error:RuntimeError: CUDA error: invalid device ordinal #82

Open
bongcloudenjoyer opened this issue Jul 27, 2023 · 0 comments

Comments

@bongcloudenjoyer
Copy link

Environment name is set as "DLAS" as per environment.yaml
anaconda3/miniconda3 detected in C:\Users\user\anaconda3
Starting conda environment "DLAS" from C:\Users\user\anaconda3
Latest git hash: 5ab4d9e
Traceback (most recent call last):
File "D:\ai\DL-Art-School\codes\train.py", line 389, in
torch.cuda.set_device(opt['gpu_ids'][0])
File "C:\Users\user\anaconda3\envs\DLAS\lib\site-packages\torch\cuda_init_.py", line 326, in set_device
torch._C._cuda_setDevice(device)
RuntimeError: CUDA error: invalid device ordinal
CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Press any key to continue . . .

what should i do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant