kunzmi / managedCuda

ManagedCUDA aims an easy integration of NVidia's CUDA in .net applications written in C#, Visual Basic or any other .net language.
Other
440 stars 79 forks source link

Driver version? #53

Closed NeuralDip closed 6 years ago

NeuralDip commented 6 years ago

Hi, i am using CudaContext.GetDeviceInfo() to get the driver info among other things, but for 'DriverVersion' i get a 9.0. Not a 22.21.13.8541 nor a 385.41. am i looking the wrong place?

kunzmi commented 6 years ago

CudaContext.GetDeviceInfo() calls cuDriverGetVersion() to get the driver version, which indeed returns the Cuda version number of the installed driver and not the driver version itself. As far as I know, there's no way to determine the exact driver version (e.g. 385.41) using the Cuda API. But if you really need that version number you can use NVML-library (also part of managedCuda but only in a very rudimentary way...) and use nvmlSystemGetDriverVersion().

NeuralDip commented 6 years ago

ok thanks