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.