how to get cuda encoding in win10? please help

all i want is apps like winavi to convert mp4 to mkv using CUDA.
nVidias drivers dont come with this support.
i used to use nvcuvenc.dll on WIN7 and it was working good, but now on Win10, everytime the converting is done… THE OS FREEZ and i have to shut down (reboot button also not responding)
so how can i get this to work please?
thank you guys.

Windows 10 has been supported officially in the latest NVIDIA Video Codec SDK 6.0.
Did you try the latest driver and NVEVC libs?