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: an illegal memory access was encountered Compile with TORCH_USE_CUDA_DSA to enable device-side assertions. #14

Open
zxk72 opened this issue Oct 14, 2024 · 4 comments

Comments

@zxk72
Copy link

zxk72 commented Oct 14, 2024

RuntimeError: CUDA error: an illegal memory access was encountered
Compile with TORCH_USE_CUDA_DSA to enable device-side assertions.
How do I solve this problem while running?

@1-2-3-4-0
Copy link

Have you solved this problem?

@Adamdad
Copy link
Owner

Adamdad commented Oct 16, 2024

Hello, @1-2-3-4-0 @zxk72 someone also report this problem to me, and i'm looking for solutions. Can YOU please also look at this issue?pytorch/pytorch#21819

@bravoYJ
Copy link

bravoYJ commented Dec 5, 2024

It might be because you set the number of groups to 32? I encountered this issue when I tried setting the number of groups to 32. So a new question arises: why can't the number of groups be set to 32, given that the condition in the .h file states that less than 32 is valid

@Adamdad
Copy link
Owner

Adamdad commented Dec 5, 2024

@bravoYJ Hello, my intuition is that the group number should not be set too large, as it may negate the parameter-saving benefits. I have not tested scenarios where the group number is excessively large.

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

4 participants