Uh oh!
There was an error while loading. Please reload this page.
Add arch-specific bitcode file search to cuda.pathfinder - #2201
Conversation
Uh oh!
There was an error while loading. Please reload this page.
d1f8cc6 to
f1289ccCompareUh oh!
There was an error while loading. Please reload this page.
f1289cc to
98ccd6eCompareUh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Leo Fang <leo80042@gmail.com>
| attachments.append(f' Directory does not exist: "{dir_path}"') | ||
| def _filename_with_sm_arch(filename: str, sm_arch: str) -> str: |
There was a problem hiding this comment.
Small cleanup: switching to fullmatch, compile the SM arch pattern once, and reuse .pattern in the error message. That keeps the validation contract in one place instead of repeating the regex in code and text.
_SM_ARCH_PATTERN=re.compile(r"sm[0-9]+[a-z]?")
def_filename_with_sm_arch(filename: str, sm_arch: str) ->str:
ifnotsm_arch:
returnfilenameifnot_SM_ARCH_PATTERN.fullmatch(sm_arch):
raiseValueError(f"Invalid sm_arch: {sm_arch!r} must match {_SM_ARCH_PATTERN.pattern!r}")
stem, ext=os.path.splitext(filename)
returnf"{stem}_{sm_arch}{ext}"Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Ralf W. Grosse-Kunstleve <rwgkio@gmail.com>
rwgk
commented
Jun 11, 2026
/ok to test 614dead |
rwgk
commented
Jun 11, 2026
Hi @benhg, I went ahead and added a commit to parametrize the |
rwgk
commented
Jun 11, 2026
Sorry I overlooked before that this PR was behind |
rwgk
commented
Jun 11, 2026
/ok to test bb8643b |
|
rwgk
commented
Jun 11, 2026
Converting to draft, so this doesn't get merged accidentally, pending offline nvshmem design/packaging discussions. |
benhg
commented
Jul 6, 2026
Closing in favor of new approach mentioned in issue #2200 |
Removed preview folders for the following PRs: - PR #2201
Description
Implement #2200. Adds an
sm_archargument to CUDA-Pathfinder's bitcode file search.Checklist