Re: [FFmpeg-devel] Unable to use sqrt() and exp() in CUDA

2021-06-28 Thread Dylan Fernando
I've only been including vector_helpers.cuh in the .cu file. I think cuda.h is being included because I include libavutil/hwcontext_cuda_internal.h in the c file. I was looking at vf_thumbnail_cuda.c for reference and I copied the line #include "libavutil/hwcontext_cuda_internal.h". __

Re: [FFmpeg-devel] Unable to use sqrt() and exp() in CUDA

2021-06-27 Thread Timo Rothenpieler
On 27.06.2021 18:42, Dylan Fernando wrote: Yeah, I was using enable-cuda-llvm. I haven't been including cuda.h in my cuda file. Could it be from the include in hwcontext_cuda.h possibly? I was using: Are you including hwcontext_cuda.h in your Kernel Code? That's a C side file. You shouldn't re

Re: [FFmpeg-devel] Unable to use sqrt() and exp() in CUDA

2021-06-26 Thread Dylan Fernando
Yeah, I was using enable-cuda-llvm. I haven't been including cuda.h in my cuda file. Could it be from the include in hwcontext_cuda.h possibly? I was using: PKG_CONFIG_PATH="/home/dylan/Files/nv-codec-headers" ./configure --enable-opencl --enable-vulkan --enable-libglslang --disable-stripping --e

Re: [FFmpeg-devel] Unable to use sqrt() and exp() in CUDA

2021-06-26 Thread Timo Rothenpieler
On 26.06.2021 15:35, Dylan Fernando wrote: I can't seem to be able to use exp() and sqrt() in CUDA. I get: NVCClibavfilter/try_cuda.ptx clang-11: warning: Unknown CUDA version. cuda.h: CUDA_VERSION=11030. Assuming the latest supported version 10.1 [-Wunknown-cuda-version] libavfilter/try_cu