[SymmMem] Avoid library mismatch in CMake search#157836
[SymmMem] Avoid library mismatch in CMake search#157836kwen2501 wants to merge 1 commit intogh/kwen2501/193/basefrom
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/157836
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit cfa5e4d with merge base a6fab82 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
|
The merge job was canceled or timed out. This most often happen if two merge requests were issued for the same PR, or if merge job was waiting for more than 6 hours for tests to finish. In later case, please do not hesitate to reissue the merge command |
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
|
The merge job was canceled or timed out. This most often happen if two merge requests were issued for the same PR, or if merge job was waiting for more than 6 hours for tests to finish. In later case, please do not hesitate to reissue the merge command |
|
@pytorchbot merge -f "timeout" |
|
You need to provide a reason for using force merge, in the format @pytorchbot merge -f 'Explanation'.
|
|
@pytorchbot merge -f "all tests passed but merge timed out" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Stack from ghstack (oldest at bottom):
Before, if NVSHMEM is installed at BOTH system location (e.g.
/usr/local) and conda location (e.g./path/to/conda/lib/python3.10/site-packages/nvidia/nvshmem, there can be a mismatch in where host lib and device lib are found:The reason is that CMake prioritize name search over dir search. In the script below, CMake will search all locations for
libnvshmem_host.sofirst, before it searches for.so.3.This PR adds the
NAMES_PER_DIRflag, according to CMake's doc:After this PR: