Skip to content

Commit

Permalink
Add simple CUDA version check, warn on mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Jun 21, 2018
1 parent c4a5989 commit 771478b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions fetch-perf-libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,21 @@ fi
tar zxvf solana-perf.tgz
)

if [[ -r /usr/local/cuda/version.txt && -r cuda-version.txt ]]; then
if ! diff /usr/local/cuda/version.txt cuda-version.txt > /dev/null; then
echo ==============================================
echo Warning: possible CUDA version mismatch
echo
echo "Expected version: $(cat cuda-version.txt)"
echo "Detected version: $(cat /usr/local/cuda/version.txt)"
echo ==============================================
fi
else
echo ==============================================
echo Warning: unable to validate CUDA version
echo ==============================================
fi

echo "Downloaded solana-perf version: $(cat solana-perf-HEAD.txt)"

exit 0

0 comments on commit 771478b

Please sign in to comment.