NVIDIA GRID M60 vGPU support NVENC API?

Dear experts
We want to use NVENC API on NVIDIA GRID M60 vGPU.The driver version is 369.71.
We run the demo of NVIDIA Video Codec SDK(7.0.1),the error information is
"…\Video_Codec_SDK_7.0.1\Samples\bin\Win32\Debug>NvEncoder -i HeavyHand_1080p.yuv -o out.h264 -size 1920 1080

…\video_codec_sdk_7.0.1\samples\nvencoder\nvencoder.cpp line 143:cuInit error:0X64
Assertion failed:0,file c:…\video_codec_sdk_7.0.1\samples\nvencoder\nvencoder.cpp,line".

CUDA officially works only with M60-8Q profile (see https://docs.nvidia.com/grid/latest/grid-vgpu-user-guide/index.html#cuda-open-cl-support-vgpu). You should use DirectX context in windows for NVENC API ("-devicetype").