You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I see that the tests for nvlink related APIs fail on a machine without nvlink e.g. test_nvml_nvlink_properties(). Looking at the rc pynvml.nvml.NVMLError_NotSupported it is clear that the failure is because of the absence of nvlink.
Opening this issue to check if there is a better way to handle these in the tests. Or is it too much of a work to bother about?
Steps/Code to reproduce bug
pytest reports these kinds of failures for nvlink related testcases -
Thanks for raising @ksangeek - You are correct that the test suite assumes NVLink is supported on the machine being queried. It certainly makes sense to skip tests that do not apply to the target machine (especially if/when we start introducing CI).
For NVLink, we can probably try to call nvmlDeviceGetNvLinkVersion on the 0th device within a module-level fixture, and then catch the NVMLError_NotSupported error to specify if NVLink is not supported.
Describe the bug
I see that the tests for nvlink related APIs fail on a machine without nvlink e.g.
test_nvml_nvlink_properties()
. Looking at the rcpynvml.nvml.NVMLError_NotSupported
it is clear that the failure is because of the absence of nvlink.Opening this issue to check if there is a better way to handle these in the tests. Or is it too much of a work to bother about?
Steps/Code to reproduce bug
pytest reports these kinds of failures for nvlink related testcases -
The text was updated successfully, but these errors were encountered: