CUDA Runtime Error: an illegal memory access was encountered
See original GitHub issueHi, I encountered an error when running apps/single_curve_sdf_trans.py
with GPU.
~/diffvg/apps$ CUDA_VISIBLE_DEVICES=1 python single_curve_sdf_trans.py
CUDA Runtime Error: an illegal memory access was encountered at ~/diffvg/diffvg.cpp:1631
When this error occurred, the terminal hangs.
// Clean up weight image
if (scene->use_gpu) {
#ifdef __CUDACC__
checkCuda(cudaFree(weight_image)); <--------------error occurred to this line
#else
assert(false);
#endif
} else {
free(weight_image);
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:15 (7 by maintainers)
Top Results From Across the Web
RuntimeError: CUDA error: an illegal memory access was ...
Hi,everyone! I met a strange illegal memory access error. It happens randomly without any regular pattern. The code is really simple.
Read more >PyTorch CUDA error: an illegal memory access was ...
RuntimeError: CUDA error: an illegal memory access was encountered CUDA kernel errors might be asynchronously reported at some other API ...
Read more >CUDA error: an illegal memory access was encountered with ...
Try to use the latest PyTorch (1.10). The error indicates an out of bound memory access similar to a segfault on the CPU,...
Read more >CUDA error 700 - an illegal memory access was encountered
This could be due to you're running out of memory or accessing an illegal address via a pointer. Following similar issue may help...
Read more >CUDA error: an illegal memory access was encountered - Part ...
RuntimeError: CUDA error: an illegal memory access was encountered CUDA kernel errors might be asynchronously reported at some other API ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Change max_hit_shapes to a larger number? https://github.com/BachiLi/diffvg/blob/fd38f71527b6258ddaf54ba2db3596b396dc80e1/diffvg.cpp#L542
Sorry this is a stupid restriction. I need to fix it : (
sorry i was in the wrong mindset: diffvg doesn’t have CPU mode : ( can you run it with cuda-memcheck?