NV Optical Flow "GPU in use" error


I built the samples provided with the Optical Flow SDK. I try to run the command:

./AppOFCuda --input=/home/jprizzle/Desktop/input/ezgif-frame-*.png --output=/home/jprizzle/Desktop/output/out

but I get the error

GPU in use: NVIDIA GeForce GTX 1050
NvOFCudaAPI : m_ofAPI->nvCreateOpticalFlowCuda(m_cuContext, &m_hOF)returned error 2 at /home/jprizzle/Desktop/Optical_Flow_SDK_3.0.15/Common/NvOFBase/NvOFCuda.cpp;35

I have my internal gpu (intel) to handle the display, so I’m not sure why my nvidia graphics card should be in use. At this point I’m not sure how to proceed.

I am running Ubuntu 20.04.4 LTS on a Dell XPS 9560 laptop.