CUDA init failed.

I have installed CUDA-9.2.

Followed steps from Video_Codec_SDK_8.2.15 document step by step.
I have a Geforce GT 710 CARD on my system and ubuntu 16.04.

When I call cuInit() it gives unknown error i.e. 999.

[FATAL][07:41:44] CUDA driver API error CUDA_ERROR_UNKNOWN at line 100 in file AppEncCuda.cppe=999

I compiled ffmpeg with nvenc and getting CUDA error:

nput #0, avi, from ‘/home/gst_ffmpeg/drop.avi’:
Duration: 00:00:06.07, start: 0.000000, bitrate: 891 kb/s
Stream #0:0: Video: indeo4 (IV41 / 0x31345649), yuv410p, 256x240, 887 kb/s, 30 fps, 30 tbr, 30 tbn, 30 tbc
Stream mapping:
Stream #0:0#0:0 (indeo4 (native) → h264 (h264_nvenc))
Press [q] to stop, [?] for help
[h264_nvenc @ 0x3cf7cc0] Cannot init CUDA
Error initializing output stream 0:0 – Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!

GeForce GT 710 is a Fermi GPU and it is not supported by CUDA 9.x.

The last CUDA version supporting that GPU is CUDA 8.0.