Opened 3 years ago

Last modified 3 years ago

#9019 new defect

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 3 years ago.
Patch that fixes the problem using xxd.

Download all attachments as: .zip

Change History (2)

comment:1 by Carl Eugen Hoyos, 3 years ago

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

by dbigler, 3 years ago

Patch that fixes the problem using xxd.

Note: See TracTickets for help on using tickets.