Opened 3 years ago

Last modified 3 years ago

#9150 new defect

Latest MSVS breaks build on windows

Reported by: TwinOak Owned by:
Priority: normal Component: avfilter
Version: git-master Keywords: cuda
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

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
https://devtalk.blender.org/t/cuda-compile-error-windows-10/17886/4
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.

Best regards
Alexander

Change History (2)

comment:1 by TwinOak, 3 years ago

Summary: Latest MSVSLatest MSVS breaks build on windows

comment:2 by Carl Eugen Hoyos, 3 years ago

Keywords: filter floor floorf removed

Please send your patch - made with git format-patch - to the FFmpeg development mailing list.

Note: See TracTickets for help on using tickets.