Nvidia Optical flow Frame rate up conversion crash

Hello,
We are using optical flow frame rate up-conversion (OFFRUC) from Optical_Flow_SDK_5.0.7 and encountered a crash in NvOFFRUCProcess call implemented in the lib libNvOFFRUC.so.

I run the solution with “compute-sanitizer”

Here are the logs:

========= Program hit cudaErrorInvalidDeviceFunction (error 98) due to “invalid device function” on CUDA API call to cudaLaunchKernel.
========= Saved host backtrace up to driver entry point at error
========= Host Frame: [0x442065]
========= in /usr/lib/x86_64-linux-gnu/libcuda.so.1
> ========= Host Frame:cudaLaunchKernel [0x7526d]
> ========= in /usr/local/cuda-12.4/targets/x86_64-linux/lib/libcudart.so.12
========= Host Frame:__device_stub__Z12NvFRUCCAlgo026NvOFFRUCRGB2YUVKernelParam(NvOFFRUCRGB2YUVKernelParam const&) [0x4d13e]
========= in /home/ubuntu/autostats-ucv/build/libNvOFFRUC.so
========= Host Frame:NvFRUCCAlgo0(NvOFFRUCRGB2YUVKernelParam) [0x4d15d]
========= in /home/ubuntu/autostats-ucv/build/libNvOFFRUC.so
========= Host Frame:LaunchRGB2YKernel [0x4d270]
========= in /home/ubuntu/autostats-ucv/build/libNvOFFRUC.so
========= Host Frame:NvGPURGB2Y::Process(RGB2YParam&) [0x3a7e1]
========= in /home/ubuntu/autostats-ucv/build/libNvOFFRUC.so
========= Host Frame:NvOFFRUCPreProc::Execute(NvOFFRUCPreProcParam&, CUDASurface const&) [0x2193a]
========= in /home/ubuntu/autostats-ucv/build/libNvOFFRUC.so
========= Host Frame:CNvOFFRUCCuda::NvOFFRUCProcess(_NvOFFRUC_PROCESS_IN_PARAMS const*, _NvOFFRUC_PROCESS_OUT_PARAMS const*) [0x11ecf]
========= in /home/ubuntu/autostats-ucv/build/libNvOFFRUC.so
========= Host Frame:NvOFFRUCProcess [0xfa32]
========= in /home/ubuntu/autostats-ucv/build/libNvOFFRUC.so

As seen in the logs, it tries to use “libcudart.so.12”.

ldd libNvOFFRUC.so shows:

    linux-vdso.so.1 (0x00007ffcf479e000)
    libcudart.so.11.0 => /usr/local/cuda-11.7/targets/x86_64-linux/lib/libcudart.so.11.0 (0x00007fcdd02ed000)
    libcuda.so.1 => /lib/x86_64-linux-gnu/libcuda.so.1 (0x00007fcdce772000)
    librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fcdce768000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fcdce745000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fcdce73d000)
    libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fcdce55b000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fcdce40c000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fcdce3f1000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fcdce1ff000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fcdd0896000)

it shows that it is linked against libcudart.so.11.0

Could it be the reason for the crash?
Or does something else cause the crash?

Can you also please let me know where I can find the source code of libNvOFFRUC.so? I might need to rebuild it.

Thank you

Baris Unal