Skip to content

Commit

Permalink
wheel-ctk-name-gen (#55)
Browse files Browse the repository at this point in the history
Part of rapidsai/shared-workflows#77

---------

Co-authored-by: Vyas Ramasubramani <vyas.ramasubramani@gmail.com>
  • Loading branch information
divyegala and vyasr authored May 23, 2023
1 parent 133f5ed commit 1b18d98
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tools/rapids-wheel-ctk-name-gen
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
# A utility script that generates CUDA suffix in the format "cu${VER}" where `$VER`
# is the CUDA major version (for example, "cu11").
# Positional Arguments:
# 1) ctk tag
set -eu -o pipefail

if [ -z "$1" ]; then
rapids-echo-stderr "Must specify input argument: CTK_TAG"
exit 1
fi

ctk_tag="$1"
ctk_major=$(echo "$ctk_tag" | cut -d'.' -f1)
cuda_suffix="cu${ctk_major}"

echo -n "${cuda_suffix}"

0 comments on commit 1b18d98

Please sign in to comment.