Skip to content

Commit 6a44376

Browse files
authored
manywheel: Automatically prepend rocm to ROCM version (#624)
Does it if it's not present Signed-off-by: Eli Uriegas <[email protected]>
1 parent bb49a9f commit 6a44376

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

manywheel/build_rocm.sh

+6-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,12 @@ fi
2424
#
2525
# NOTE: We should first check `DESIRED_CUDA` when determining `ROCM_VERSION`
2626
if [[ -n "$DESIRED_CUDA" ]]; then
27-
# rocm3.7, rocm3.5.1
28-
ROCM_VERSION="$DESIRED_CUDA"
27+
if ! echo "${DESIRED_CUDA}"| grep "^rocm" >/dev/null 2>/dev/null; then
28+
ROCM_VERSION="rocm${DESIRED_CUDA}"
29+
else
30+
# rocm3.7, rocm3.5.1
31+
ROCM_VERSION="$DESIRED_CUDA"
32+
fi
2933
echo "Using $ROCM_VERSION as determined by DESIRED_CUDA"
3034
else
3135
echo "Must set DESIRED_CUDA"

0 commit comments

Comments
 (0)