[FFmpeg-trac] #9150(avfilter:new): Latest MSVS

FFmpeg trac at avcodec.org
Fri Mar 12 12:20:47 EET 2021

#9150: Latest MSVS
             Reporter:  TwinOak      |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  avfilter     |                  Version:  git-
             Keywords:  cuda filter  |  master
  floor floorf                       |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
 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.

 Best regards

Ticket URL: <https://trac.ffmpeg.org/ticket/9150>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list