Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
d174f5a
find_nvidia_headers.py initial version (untested).
rwgk May 27, 2025
5ed86c5
Add tests/test_path_finder_find_headers.py, with hard-coded paths.
rwgk May 28, 2025
a98de70
Better error message: UNKNOWN libname='unknown-libname'
rwgk May 28, 2025
6a93fe7
if libname == "nvshmem" and IS_WINDOWS: return None
rwgk May 28, 2025
3ab9643
Merge branch 'main' into find_nvidia_headers_nvshmem and move/adjust/…
rwgk Aug 12, 2025
c1e9385
Move find_nvidia_headers.py → _headers/find_nvidia_headers.py
rwgk Aug 12, 2025
c3464b3
test_find_nvidia_headers.py: removed hard-wired paths, comments with …
rwgk Aug 12, 2025
627f6d0
Merge branch 'main' into find_nvidia_headers_nvshmem
rwgk Aug 22, 2025
26f94d1
Make _find_nvidia_header_directory private for now.
rwgk Aug 22, 2025
6adddb0
test_find_nvidia_headers.py: Move comments with installation commands…
rwgk Aug 22, 2025
363b649
Add `have_nvidia_nvshmem_package()` function to enable `assert hdr_di…
rwgk Aug 22, 2025
2dd448c
Merge branch 'main' into find_nvidia_headers_nvshmem
rwgk Aug 22, 2025
d3f97e4
Add nvidia-nvshmem-cu12,13 in pyproject.toml
rwgk Aug 22, 2025
6f4d762
assert site-packages or dist-packages
rwgk Aug 22, 2025
dfa3384
Add CUDA_PATHFINDER_TEST_FIND_NVIDIA_HEADERS_STRICTNESS
rwgk Aug 22, 2025
673c38c
Transfer `ci/`, `.github/` changes from PR #864
rwgk Aug 22, 2025
80cece3
Add CUDA_PATHFINDER_TEST_FIND_NVIDIA_HEADERS_STRICTNESS in `ci/`, `.g…
rwgk Aug 22, 2025
7c30292
reverse=True in sorting of "/usr/include/nvshmem_*" (find newest first)
rwgk Aug 22, 2025
a300419
Fix: assert site-packages or dist-packages only if have_nvidia_nvshme…
rwgk Aug 22, 2025
3ae15e0
pytest.skip("nvshmem has no Windows support.")
rwgk Aug 22, 2025
e855155
Merge branch 'main' into find_nvidia_headers_nvshmem
rwgk Sep 2, 2025
dc4de43
Merge branch 'main' into find_nvidia_headers_nvshmem
rwgk Sep 3, 2025
eb2e78a
Add new cuda/pathfinder/_utils/conda_env.py and use from find_nvidia_…
rwgk Sep 3, 2025
c90c393
Add new cuda/pathfinder/_utils/env_vars_for_include.py and use from f…
rwgk Sep 4, 2025
cee717a
Revert "Add new cuda/pathfinder/_utils/env_vars_for_include.py and us…
rwgk Sep 5, 2025
a50da30
Revert "Add new cuda/pathfinder/_utils/conda_env.py and use from find…
rwgk Sep 5, 2025
a185f03
Merge branch 'main' into find_nvidia_headers_nvshmem
rwgk Sep 5, 2025
7cfcbfe
Bump pathfinder version to 1.2.2 and add release/1.2.2-notes.rst
rwgk Sep 5, 2025
510f470
Remove os.path.isdir() tests that are not strictly needed.
rwgk Sep 5, 2025
2426260
test_find_nvidia_headers.py: remove check for `dist-packages` because…
rwgk Sep 5, 2025
b74a84c
Additional testing
rwgk Sep 5, 2025
6ee6529
Merge branch 'main' into find_nvidia_headers_nvshmem
rwgk Sep 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "Add new cuda/pathfinder/_utils/env_vars_for_include.py and us…
…e from find_nvidia_headers.py"

This reverts commit c90c393.
  • Loading branch information
rwgk committed Sep 5, 2025
commit cee717ac487b9dc0fd121dfb2ea1fa66e973869e
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
import functools
import glob
import os
from typing import Optional, cast
from typing import Optional

from cuda.pathfinder._dynamic_libs.supported_nvidia_libs import IS_WINDOWS
from cuda.pathfinder._utils.conda_env import get_conda_prefix
from cuda.pathfinder._utils.env_vars_for_include import iter_env_vars_for_include_dirs
from cuda.pathfinder._utils.find_sub_dirs import find_sub_dirs_all_sitepackages


Expand Down Expand Up @@ -43,10 +42,4 @@ def find_nvidia_header_directory(libname: str) -> Optional[str]:
if os.path.isfile(nvshmem_h_path):
return hdr_dir

for hdr_dir in iter_env_vars_for_include_dirs():
if os.path.isdir(hdr_dir):
nvshmem_h_path = os.path.join(hdr_dir, "nvshmem.h")
if os.path.isfile(nvshmem_h_path):
return cast(str, hdr_dir) # help mypy

return None
25 changes: 0 additions & 25 deletions cuda_pathfinder/cuda/pathfinder/_utils/env_vars_for_include.py

This file was deleted.

107 changes: 0 additions & 107 deletions cuda_pathfinder/tests/test_utils_env_vars_for_include.py

This file was deleted.