cuGraphicsEGLRegisterImage failed : 3

Hi all ,
I have tested with

gst-launch-1.0 -v --gst-debug-level=1 v4l2src device=/dev/video0 ! 'video/x-raw, width=1920, height=1080, format=UYVY' ! nvvidconv ! 'video/x-raw(memory:NVMM), width=1920, height=1080, format=NV12' ! nvtee ! nvivafilter cuda-process=true customer-lib-name="" ! 'video/x-raw(memory:NVMM), format=(string)NV12' ! nvoverlaysink display-id=0 -e

And it worked correct .
But When I compile on my own from source file nvsample_cudaprocess_src
It show me that

cuGraphicsEGLRegisterImage failed : 3

My system is TX2 with 28.1 .
Anyone knows problems ?


Error code 3 is not initialized.

This indicates that the CUDA driver has not been initialized with cuInit() or that initialization has failed.

Please check if your source code has well-initialized CUDA driver at the beginning.


It is because that I mistake to install cuda 9.0 in R28.1 .
I reinstall cuda 8.0 then It works .


Thanks for the update.