-
Notifications
You must be signed in to change notification settings - Fork 171
CI: Install latest compute-sanitizer separately from CTK #594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
3f07930
CI: Install latest compute-sanitizer separately from CTK
carterbox 9aa44f9
Use mkdir -p to reuse CUDA_PATH
carterbox 1016411
BUG: Always start with clean CUDA_PATH when building cache
carterbox 6e917f2
REF: Setup CUDA component cache in TMP directory
carterbox 6b02f1a
DEV: Skip non python-3.12 for debugging
carterbox 18edf5e
Merge branch 'main' into dching/latest-sanitizer-alt
leofang 5cf0f55
fix
leofang 247f2a0
Revert "Merge pull request #593 from carterbox/dching/latest-sanitizer"
leofang 6ff7365
use guess_latest.sh to get the latest CTK ver
leofang a2d55d8
fix cache restoration
leofang 1a15869
fix cache restoration
leofang d49e529
guess_latest needs wget
leofang d9a2d66
dunno what I was thinking
leofang 2a6edc2
not sure if this would work on git for windows...
leofang 2eff1aa
fix
leofang 287302b
give rsync a shot
leofang 1d9749e
debug
leofang c7f9982
trailing slash, it's always the trailing slash
leofang b9fabb6
for some reason --strip-components=1 does not work...
leofang 0451990
the test runners do not have rsync
leofang 69b6ee1
restore full matrix
leofang ca06f36
move
leofang b2c6de3
avoid rsync...
leofang 5376e79
fix
leofang 718f111
add inline comments
leofang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# URL to search | ||
URL="https://developer.download.nvidia.com/compute/cuda/redist/" | ||
|
||
# Fetch the directory listing and extract the latest version number | ||
get_latest_version() { | ||
# Get the HTML content of the page | ||
local html_content=$(wget -q -O - "$URL") | ||
|
||
# Extract links matching the pattern redistrib_?.?.?.json | ||
local files=$(echo "$html_content" | grep -oP 'redistrib_[0-9]+\.[0-9]+\.[0-9]+\.json' | cut -d'"' -f2) | ||
|
||
# If files were found, extract the version numbers and find the latest | ||
if [ -n "$files" ]; then | ||
# Extract just the version numbers using regex | ||
local versions=$(echo "$files" | grep -oP 'redistrib_\K[0-9]+\.[0-9]+\.[0-9]+(?=\.json)') | ||
|
||
# Sort the versions and get the latest | ||
local latest_version=$(echo "$versions" | sort -V | tail -n 1) | ||
echo "$latest_version" | ||
else | ||
echo "No files matching the pattern were found." | ||
return 1 | ||
fi | ||
} | ||
|
||
# Call the function and store the result | ||
latest_version=$(get_latest_version) | ||
echo $latest_version |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.