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

RuntimeError: CUDA error: invalid device ordinal #2

Open
KhambardeCal opened this issue Feb 1, 2023 · 1 comment
Open

RuntimeError: CUDA error: invalid device ordinal #2

KhambardeCal opened this issue Feb 1, 2023 · 1 comment
Labels
question Further information is requested

Comments

@KhambardeCal
Copy link

orch.cuda.set_device(args.local_rank)
File "/home/socialab/miniconda3/envs/IR_SimANS-env/lib/python3.10/site-packages/torch/cuda/init.py", line 314, in set_device
torch._C._cuda_setDevice(device)
RuntimeError: CUDA error: invalid device ordinal

@lx865712528
Copy link
Contributor

Is there any clearer background on how you ran?

@lx865712528 lx865712528 added the question Further information is requested label Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants