Skip to content

Commit 247f2a0

Browse files
committed
Revert "Merge pull request NVIDIA#593 from carterbox/dching/latest-sanitizer"
This reverts commit bd770e1, reversing changes made to 19df0d9.
1 parent 5cf0f55 commit 247f2a0

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

.github/actions/fetch_ctk/action.yml

+4-15
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ runs:
5656
5757
# The binary archives (redist) are guaranteed to be updated as part of the release posting.
5858
CTK_BASE_URL="https://developer.download.nvidia.com/compute/cuda/redist/"
59+
CTK_JSON_URL="$CTK_BASE_URL/redistrib_${{ inputs.cuda-version }}.json"
5960
if [[ "${{ inputs.host-platform }}" == linux* ]]; then
6061
if [[ "${{ inputs.host-platform }}" == "linux-64" ]]; then
6162
CTK_SUBDIR="linux-x86_64"
@@ -74,15 +75,13 @@ runs:
7475
rm -rf $_TEMP_DIR_
7576
}
7677
fi
77-
7878
function populate_cuda_path() {
7979
# take the component name as a argument
8080
function download() {
8181
curl -kLSs $1 -o $2
8282
}
83-
local CTK_COMPONENT=$1
84-
local CTK_VERSION=$2
85-
CTK_COMPONENT_REL_PATH="$(curl -s ${CTK_BASE_URL}/redistrib_${CTK_VERSION}.json |
83+
CTK_COMPONENT=$1
84+
CTK_COMPONENT_REL_PATH="$(curl -s $CTK_JSON_URL |
8685
python -c "import sys, json; print(json.load(sys.stdin)['${CTK_COMPONENT}']['${CTK_SUBDIR}']['relative_path'])")"
8786
CTK_COMPONENT_URL="${CTK_BASE_URL}/${CTK_COMPONENT_REL_PATH}"
8887
CTK_COMPONENT_COMPONENT_FILENAME="$(basename $CTK_COMPONENT_REL_PATH)"
@@ -99,17 +98,7 @@ runs:
9998
CTK_CACHE_COMPONENTS="${CTK_CACHE_COMPONENTS//,,/,}"
10099
# Get headers and shared libraries in place
101100
for item in $(echo $CTK_CACHE_COMPONENTS | tr ',' ' '); do
102-
ctk_version="${{ inputs.cuda-version }}"
103-
if [[ "$item" == "cuda_sanitizer_api" ]]; then
104-
# Always use latest CTK for cuda_sanitizer_api
105-
# FIXME: Automatically track latest CTK version
106-
CUDA_MAJOR="$(cut -d '.' -f 1 <<< ${{ inputs.cuda-version }})"
107-
if [[ "$CUDA_MAJOR" == "12" ]]; then
108-
# TODO: Automatically track latest CTK minor version
109-
ctk_version="12.8.0"
110-
fi
111-
fi
112-
populate_cuda_path "$item" "$ctk_version"
101+
populate_cuda_path "$item"
113102
done
114103
ls -l $CACHE_TMP_DIR
115104

0 commit comments

Comments
 (0)