Compilation Error
See original GitHub issue- CuPy version: 8.0.0
- OS/Platform: Ubuntu
- CUDA version: 10.2
- cuDNN/NCCL version: 7.6.5.32/ 2.9.8.1
I am running code from the following recently popular repository, and I am getting the following error:
File "/homes/rs2517/fast/lib/python3.7/site-packages/cupy/cuda/compiler.py", line 516, in compile
nvrtc.compileProgram(self.ptr, options)
File "cupy_backends/cuda/libs/nvrtc.pyx", line 108, in cupy_backends.cuda.libs.nvrtc.compileProgram
File "cupy_backends/cuda/libs/nvrtc.pyx", line 120, in cupy_backends.cuda.libs.nvrtc.compileProgram
File "cupy_backends/cuda/libs/nvrtc.pyx", line 58, in cupy_backends.cuda.libs.nvrtc.check_status
cupy_backends.cuda.libs.nvrtc.NVRTCError: NVRTC_ERROR_COMPILATION (6)
During handling of the above exception, another exception occurred:
(...)
File "/homes/rs2517/fast/lib/python3.7/site-packages/cupy/cuda/compiler.py", line 528, in compile
'nvrtc' if not runtime.is_hip else 'hiprtc')
cupy.cuda.compiler.CompileException: /tmp/tmp_x85h7rr/fc895e636bcac603ee7f359ed7f249db_2.cubin.cu(6): error: identifier "None" is undefined
/tmp/tmp_x85h7rr/fc895e636bcac603ee7f359ed7f249db_2.cubin.cu(6): error: identifier "None" is undefined
/tmp/tmp_x85h7rr/fc895e636bcac603ee7f359ed7f249db_2.cubin.cu(6): error: identifier "None" is undefined
/tmp/tmp_x85h7rr/fc895e636bcac603ee7f359ed7f249db_2.cubin.cu(13): error: identifier "None" is undefined
4 errors detected in the compilation of "/tmp/tmp_x85h7rr/fc895e636bcac603ee7f359ed7f249db_2.cubin.cu".
I was wondering if this issue is due to my installation or due to an issue with this specific code (I can import cupy and initialize an array on python, so it works to some extent, I’m not sure what else to try) . Would appreciate any help if anyone has had a similar issue in the past. Thanks!
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Compilation error - Wikipedia
Compilation error refers to a state when a compiler fails to compile a piece of computer program source code, either due to errors...
Read more >What Is a Compilation Error? (with picture) - EasyTechJunkie
A compilation error is an error in building a machine code file for a computer language. Many computer languages compile their source code ......
Read more >Difference between Compile Time Errors and Runtime Errors
Compile-Time Errors: Errors that occur when you violate the rules of writing syntax are known as Compile-Time errors. This compiler error ...
Read more >Reading/Fixing Compilation Errors
An attempted compile cycle with many errors can be overwhelming, but approaching the problem in a systematic way will help wade through the...
Read more >7.3. Compile Errors and Warnings
A compile error happens when the compiler reports something wrong with your program, and does not produce a machine-language translation.
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 FreeTop 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
Top GitHub Comments
Try setting
export CUPY_DUMP_CUDA_SOURCE_ON_ERROR=1
(docs) and rerun the code to see the full code causing the compilation error. My guess is thatNone
is injected for some reason instead of literal when generating a CUDA code.https://github.com/d-li14/involution/blob/21c3158fcbb4ecda8ed4626fcae8b01be511a598/det/mmdet/models/utils/involution_cuda.py#L26
I’d suggest you report this issue to the
involution
repository along with the full command line.请问您是怎么解决这个问题的呢?