Opened 2 years ago
Last modified 2 years ago
#9150 new defect
Latest MSVS breaks build on windows
|Reported by:||TwinOak||Owned by:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
When building on Windows (MSVC, MSYS2) with Nvidia HW support, MSVC 16.9 breaks the process, NVCC (CUDA dev version 11.2) is complaining about
libavfilter/vf_scale_cuda_bicubic.cu(101): error: calling a __host__ function("__floorf") from a __device__ function("Subsample_Bicubic<unsigned char> ") is not allowed libavfilter/vf_scale_cuda_bicubic.cu(101): error: identifier "__floorf" is undefined in device code
Changing the four floor calls to floorf in libavfilter/vf_scale_cuda_bicubic.cu as suggested here
seems to do the business. Builds fine and the filter works.
Being a bit green when it comes to development and contributing, I hope that someone with more experience could provide a patch.
Change History (2)
comment:1 by , 2 years ago
|Summary:||Latest MSVS → Latest MSVS breaks build on windows|
comment:2 by , 2 years ago
|Keywords:||filter floor floorf removed|
Note: See TracTickets for help on using tickets.
Please send your patch - made with
git format-patch- to the FFmpeg development mailing list.