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

question about CUDA unavailable #19

Open
Z0Victor opened this issue Apr 9, 2023 · 1 comment
Open

question about CUDA unavailable #19

Z0Victor opened this issue Apr 9, 2023 · 1 comment

Comments

@Z0Victor
Copy link

Z0Victor commented Apr 9, 2023

when I run Main.py , issue comes up :

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.
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.

how to deal with that??PLZ

@AroundKiki
Copy link

  1. try torch.cuda.is_available() in your python environment, it should be True.
  2. in Main.py, the default "device" params is "cuda:1", you should change it to "cuda" or "cuda:0" if you have single GPU installed.

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