Opened 4 years ago

Closed 3 weeks ago

Last modified 3 weeks ago

#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 Carl Eugen Hoyos)

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)

0001-Patch-for-ticket-9019-CUDA-Compile-Broken-Using-MSVC.patch (1.3 KB ) - added by dbigler 4 years ago.
Patch that fixes the problem using xxd.

Download all attachments as: .zip

Change History (4)

comment:1 by Carl Eugen Hoyos, 4 years ago

Description: modified (diff)
Keywords: cuda regression added
Priority: criticalimportant

by dbigler, 4 years ago

Patch that fixes the problem using xxd.

comment:2 by Balling, 3 weeks ago

Resolution: invalid
Status: newclosed

All files being talked here and the file being patched are gone.

comment:3 by Timo R., 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.

Note: See TracTickets for help on using tickets.