-
Notifications
You must be signed in to change notification settings - Fork 20
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
Cupy: cudaErrorIllegalAddress: an illegal memory access was encountered #1
Comments
Hi, I have tried running the cupy script on your data, but I did not encounter any issue. I tested using cuda 11.3 with cupy-cuda11x. I guess this cuda error are possibly due to the conflict with other threads using cuda (e.g., pytorch) or parallelization running. Hope it helps. |
Hi, These are my cuda, cupy versions:
So I'll try with a newer cuda version. Thanks for the hint. |
How about commenting out the two lines? The two lines are used to avoid out-of-memory for huge normal maps (like >2k). But in your case, the normal maps are several hundreds pixels wide. It is then safe to ignore such explicit memory management. |
I tried it with the two lines commented out but the error remains. |
I updated my environment to use cuda/11.3 and respectively cupy-cuda11x (name) 11.4.0 (version) Additional remark: I had to update pyvista to 0.37.0 to resolve another error This resolves my issue. Thanks again for the hint. |
Hi,
thanks for your great work. I run into the above mentioned cuda error when running the cupy script on the following normal map.
I was wondering whether you can reproduce the issue and have an idea where to start looking. Potentially somewhere where the masks are computed or the diagonal_data_term is updated.
It works with the numpy script, but I want to use the cupy script as it is faster for many of my normal_maps.
Looking forward to hearing from you.
Best,
Jan
K.txt
The text was updated successfully, but these errors were encountered: