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: device-side assert triggered #3

Open
nieallen opened this issue Jun 2, 2023 · 3 comments
Open

RuntimeError: CUDA error: device-side assert triggered #3

nieallen opened this issue Jun 2, 2023 · 3 comments

Comments

@nieallen
Copy link

nieallen commented Jun 2, 2023

RuntimeError: CUDA error: device-side assert triggered
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.

请问我遇到了这个问题,如何解决呢?

@nieallen
Copy link
Author

nieallen commented Jun 2, 2023

../aten/src/ATen/native/cuda/Indexing.cu:1146: indexSelectLargeIndex: block: [336,0,0], thread: [0,0,0] Assertion srcIndex < srcSelectDimSize failed.
../aten/src/ATen/native/cuda/Indexing.cu:1146: indexSelectLargeIndex: block: [336,0,0], thread: [1,0,0] Assertion srcIndex < srcSelectDimSize failed.
这个Error前面信息这样的

RuntimeError: CUDA error: device-side assert triggered 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.

请问我遇到了这个问题,如何解决呢?

@taishan1994
Copy link
Owner

RuntimeError: CUDA error: device-side assert triggered 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.

请问我遇到了这个问题,如何解决呢?

标签的问题?

@hgy123
Copy link

hgy123 commented Aug 12, 2023

RuntimeError: CUDA error: device-side assert triggered 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 to enable device-side assertions.TORCH_USE_CUDA_DSA
请问我遇到了这个问题,如何解决呢?

标签的问题?

I also encountered this problem. I changed my code from five categories to two categories, which caused this problem.

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

3 participants