Closed ksangeek closed 4 years ago
As is understood with the above error messages, it is clear that the attempt to cast the driver version number with multiple dots .
e.g. 440.33.01
to float
is not working.
https://github.com/gpuopenanalytics/pynvml/blob/f778ba4f4c7da2bcdd2abca8bd190994ecd879d3/pynvml/tests/test_nvml.py#L72
With the changes proposed in PR https://github.com/gpuopenanalytics/pynvml/pull/23 I am able to get past this issue. Please let me know if there are suggestions to improve the test or any other review comments. Thanks.
Fixed using https://github.com/gpuopenanalytics/pynvml/pull/23. Thanks!
Describe the bug
test_nvmlSystemGetDriverVersion()
andtest_nvmlSystemGetNVMLVersion()
fails because the version number reported cannot be cast tofloat
as expected by the testcase.Steps/Code to reproduce bug Executing the pytest reports these failures in
pynvml/tests/test_nvml.py
test file -