We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc5dd4f commit a472abeCopy full SHA for a472abe
dpnp/tests/helper.py
@@ -434,6 +434,15 @@ def is_intel_numpy():
434
return all(dep["name"].startswith("mkl") for dep in [blas, lapack])
435
436
437
+def is_lts_driver(device=None):
438
+ """
439
+ Return True if a test is running on a GPU device with LTS driver version,
440
+ False otherwise.
441
442
+ dev = dpctl.select_default_device() if device is None else device
443
+ return dev.has_aspect_gpu and "1.3" in dev.driver_version
444
+
445
446
def is_win_platform():
447
"""
448
Return True if a test is running on Windows OS, False otherwise.
0 commit comments