Skip to content

Commit

Permalink
Revert "ROCm 6.1 package"
Browse files Browse the repository at this point in the history
This reverts commit d44fe11.
  • Loading branch information
MasterJH5574 committed Aug 6, 2024
1 parent d44fe11 commit f4fed53
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/wheel_manylinux_nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ jobs:
# matrix of build configs
config:
- gpu: 'none'
image: 'mlcaidev/package-cpu:16b1781'
image: 'mlcaidev/package-cpu:7a83f97'
- gpu: 'cuda-12.1'
image: 'mlcaidev/package-cu121:16b1781'
image: 'mlcaidev/package-cu121:7a83f97'
- gpu: 'cuda-12.2'
image: 'mlcaidev/package-cu122:16b1781'
- gpu: 'rocm-6.1'
image: 'mlcaidev/package-rocm61:16b1781'
# - gpu: 'rocm-6.2'
# image: 'mlcaidev/package-rocm62:16b1781'
image: 'mlcaidev/package-cu122:7a83f97'
# - gpu: 'rocm-5.6'
# image: 'mlcaidev/package-rocm56:7a83f97'
# - gpu: 'rocm-5.7'
# image: 'mlcaidev/package-rocm57:7a83f97'
exclude:
- pkg_kind: ${{ github.event_name == 'schedule' && 'stable' || '' }}

Expand Down
10 changes: 5 additions & 5 deletions scripts/build_mlc_ai_wheel_manylinux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ source /opt/rh/gcc-toolset-11/enable # GCC-11 is the hightest GCC version compat
function usage() {
echo "Usage: $0 [--gpu GPU-VERSION]"
echo
echo -e "--gpu {none cuda-11.7 cuda-11.8 cuda-12.1 cuda-12.2 rocm-6.1 rocm-6.2}"
echo -e "--gpu {none cuda-11.7 cuda-11.8 cuda-12.1 cuda-12.2 rocm-5.6 rocm-5.7}"
echo -e "\tSpecify the GPU version (CUDA/ROCm) in the TVM (default: none)."
}

Expand Down Expand Up @@ -44,7 +44,7 @@ function audit_mlc_ai_wheel() {
TVM_PYTHON_DIR="/workspace/tvm/python"
PYTHON_VERSIONS_CPU=("3.7" "3.8" "3.9" "3.10" "3.11" "3.12")
PYTHON_VERSIONS_GPU=("3.7" "3.8" "3.9" "3.10" "3.11" "3.12")
GPU_OPTIONS=("none" "cuda-11.7" "cuda-11.8" "cuda-12.1" "cuda-12.2" "rocm-6.1" "rocm-6.2")
GPU_OPTIONS=("none" "cuda-11.7" "cuda-11.8" "cuda-12.1" "cuda-12.2" "rocm-5.6" "rocm-5.7")
GPU="none"

while [[ $# -gt 0 ]]; do
Expand All @@ -71,7 +71,7 @@ done
if ! in_array "${GPU}" "${GPU_OPTIONS[*]}"; then
echo "Invalid GPU option: ${GPU}"
echo
echo 'GPU version can only be {"none", "cuda-11.7" "cuda-11.8" "cuda-12.1" "cuda-12.2" "rocm-6.1" "rocm-6.2"}'
echo 'GPU version can only be {"none", "cuda-11.7" "cuda-11.8" "cuda-12.1" "cuda-12.2" "rocm-5.6" "rocm-5.7"}'
exit -1
fi

Expand Down Expand Up @@ -105,9 +105,9 @@ elif [[ ${GPU} == cuda* ]]; then
fi

if [[ ${GPU} == rocm* ]]; then
echo set\(USE_LLVM \"llvm-config --ignore-libllvm --link-static\"\) >>config.cmake
echo set\(USE_LLVM \"/opt/rocm/llvm/bin/llvm-config --ignore-libllvm --link-static\"\) >>config.cmake
echo set\(USE_ROCM ON\) >>config.cmake
echo set\(USE_RCCL /opt/rocm/ \) >>config.cmake
echo set\(USE_RCCL /opt/rocm/rccl/ \) >>config.cmake
elif [[ ${GPU} == cuda* ]]; then
echo set\(USE_LLVM \"llvm-config --ignore-libllvm --link-static\"\) >>config.cmake
echo set\(USE_CUDA ON\) >>config.cmake
Expand Down
6 changes: 3 additions & 3 deletions scripts/build_mlc_llm_wheel_manylinux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ source /opt/rh/gcc-toolset-11/enable # GCC-11 is the hightest GCC version compat
function usage() {
echo "Usage: $0 [--gpu GPU-VERSION]"
echo
echo -e "--gpu {none cuda-11.7 cuda-11.8 cuda-12.1 cuda-12.2 rocm-6.1 rocm-6.2}"
echo -e "--gpu {none cuda-11.7 cuda-11.8 cuda-12.1 cuda-12.2 rocm-5.6 rocm-5.7}"
echo -e "\tSpecify the GPU version (CUDA/ROCm) in the MLC-LLM (default: none)."
}

Expand Down Expand Up @@ -44,7 +44,7 @@ function audit_mlc_llm_wheel() {
MLC_LLM_PYTHON_DIR="/workspace/mlc-llm/python"
PYTHON_VERSIONS_CPU=("3.7" "3.8" "3.9" "3.10" "3.11" "3.12")
PYTHON_VERSIONS_GPU=("3.7" "3.8" "3.9" "3.10" "3.11" "3.12")
GPU_OPTIONS=("none" "cuda-11.7" "cuda-11.8" "cuda-12.1" "cuda-12.2" "rocm-6.1" "rocm-6.2")
GPU_OPTIONS=("none" "cuda-11.7" "cuda-11.8" "cuda-12.1" "cuda-12.2" "rocm-5.6" "rocm-5.7")
GPU="none"

while [[ $# -gt 0 ]]; do
Expand All @@ -71,7 +71,7 @@ done
if ! in_array "${GPU}" "${GPU_OPTIONS[*]}"; then
echo "Invalid GPU option: ${GPU}"
echo
echo 'GPU version can only be {"none", "cuda-11.7" "cuda-11.8" "cuda-12.1" "cuda-12.2" "rocm-6.1" "rocm-6.2"}'
echo 'GPU version can only be {"none", "cuda-11.7" "cuda-11.8" "cuda-12.1" "cuda-12.2" "rocm-5.6" "rocm-5.7"}'
exit -1
fi

Expand Down
4 changes: 2 additions & 2 deletions scripts/sync_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ def main():
"cuda-11.8",
"cuda-12.1",
"cuda-12.2",
"rocm-6.1",
"rocm-6.2",
"rocm-5.6",
"rocm-5.7",
],
help="GPU (CUDA/ROCm) version to be linked to the resultant binaries,"
"or none, to disable CUDA/ROCm. Defaults to none.",
Expand Down

0 comments on commit f4fed53

Please sign in to comment.