Open ksangeek opened 4 years ago
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 -