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 #1

Closed
jishenghuang opened this issue Jun 27, 2022 · 1 comment
Closed

RuntimeError: CUDA error: invalid device ordinal #1

jishenghuang opened this issue Jun 27, 2022 · 1 comment

Comments

@jishenghuang
Copy link

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.
Excuse me, how to solve this error.

@wangjk666
Copy link
Owner

Usually, this error is caused by specifying the wrong GPU number, e.g., if there is only one GPU and the program uses GPUs:1

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

2 participants