Skip to content

Commit 93a448d

Browse files
committed
Fix installation of cuda compute sanitizer
1 parent c5539d7 commit 93a448d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎.github/actions/fetch_ctk/action.yml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,12 @@ runs:
277277
cp -r $CACHE_TMP_DIR/* $CUDA_PATH
278278
rm -rf $CACHE_TMP_DIR $CTK_CACHE_FILENAME
279279
ls -l $CUDA_PATH
280-
if [ ! -d "$CUDA_PATH/include" ]; then
280+
# redistrib.json is present for stable-channel installs; include/ is
281+
# present for prerelease installs (enforced at cache-creation time).
282+
# Components that don't ship headers (e.g. cuda_sanitizer_api) have
283+
# neither, so checking only for include/ incorrectly rejects them.
284+
if [[ ! -e "$CUDA_PATH/redistrib.json" && ! -d "$CUDA_PATH/include" ]]; then
285+
echo "CTK restore appears incomplete: neither redistrib.json nor include/ found in $CUDA_PATH" >&2
281286
exit 1
282287
fi
283288

0 commit comments

Comments
 (0)