Skip to content

Commit 670cc52

Browse files
committed
Skip cudla/nvcudla in find-test when libnvcudla.so is missing
Mirror the load-side behavior: on hosts without libnvcudla.so (i.e. non-Tegra), skip the cudla/nvcudla parametrizations instead of failing under CUDA_PATHFINDER_TEST_LOAD_NVIDIA_DYNAMIC_LIB_STRICTNESS=all_must_work.
1 parent f191934 commit 670cc52

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cuda_pathfinder/tests/test_find_nvidia_dynamic_lib.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
import pytest
1111
from child_load_nvidia_dynamic_lib_helper import run_load_nvidia_dynamic_lib_in_subprocess
12+
from conftest import skip_if_missing_libnvcudla_so
1213

1314
from cuda.pathfinder import (
1415
DynamicLibNotAvailableError,
@@ -65,6 +66,7 @@ def test_find_nvidia_dynamic_lib_returns_existing_path_without_loading(info_summ
6566
abs_path = find_nvidia_dynamic_lib(libname)
6667
except DynamicLibNotFoundError:
6768
if STRICTNESS == "all_must_work" and not _is_expected_find_failure(libname):
69+
skip_if_missing_libnvcudla_so(libname, timeout=30)
6870
raise
6971
info_summary_append(f"Not found: {libname=!r}")
7072
return

0 commit comments

Comments
 (0)