#9019 closed defect (invalid)
CUDA Compile Broken Using MSVC
Reported by: | dbigler | Owned by: | |
---|---|---|---|
Priority: | important | Component: | avfilter |
Version: | git-master | Keywords: | cuda regression |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description (last modified by )
The following commit breaks the CUDA build using the MSVC compiler:
cfdddec0c832a67da8a0081a32ae2c7127ce2368
Using MSVC 2015 generates the following error:
libavfilter/vf_scale_cuda_bicubic.ptx.c(1925): fatal error C1091: compiler limit: string exceeds 65535 bytes in length
Using MSVC 2019 the following error is generated:
libavfilter/vf_scale_cuda_bicubic.ptx.c(2818): fatal error C1060: compiler is out of heap space
It looks like an alternate method for converting the ptx contents to const char [] needs to be implemented such that a string literal is not used like a const char [] assigned an array of integers.
Attachments (1)
Change History (4)
comment:1 by , 4 years ago
Description: | modified (diff) |
---|---|
Keywords: | cuda regression added |
Priority: | critical → important |
by , 4 years ago
Attachment: | 0001-Patch-for-ticket-9019-CUDA-Compile-Broken-Using-MSVC.patch added |
---|
comment:2 by , 3 weeks ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
All files being talked here and the file being patched are gone.
comment:3 by , 3 weeks ago
Unless MSVC has an issue with large static arrays as well, this should long be fixed.
Pretty sure I have since built with MSVC multiple times.
Patch that fixes the problem using xxd.