@@ -50,7 +50,7 @@ TM_PYTHON_VERSIONS="${TM_PYTHON_VERSIONS:-cp38-cp38 cp310-cp310 cp311-cp311}"
5050# Location to store Release wheels
5151TM_OUTPUT_DIR=" ${TM_OUTPUT_DIR:- ${this_dir} / wheelhouse} "
5252# What "packages to build"
53- TM_PACKAGES=" ${TM_PACKAGES:- torch-mlir torch-mlir-core } "
53+ TM_PACKAGES=" ${TM_PACKAGES:- torch-mlir torch-mlir-ext } "
5454# Use pre-built Pytorch
5555TM_USE_PYTORCH_BINARY=" ${TM_USE_PYTORCH_BINARY:- ON} "
5656# Skip running tests if you want quick iteration
@@ -83,12 +83,12 @@ function run_on_host() {
8383 fi
8484 mkdir -p " ${TM_OUTPUT_DIR} "
8585 case " $package " in
86- torch-mlir)
86+ torch-mlir-ext )
8787 TM_CURRENT_DOCKER_IMAGE=${TM_RELEASE_DOCKER_IMAGE}
8888 export USERID=0
8989 export GROUPID=0
9090 ;;
91- torch-mlir-core )
91+ torch-mlir)
9292 TM_CURRENT_DOCKER_IMAGE=${TM_RELEASE_DOCKER_IMAGE}
9393 export USERID=0
9494 export GROUPID=0
@@ -158,22 +158,22 @@ function run_in_docker() {
158158 export PATH=$python_dir /bin:$orig_path
159159 echo " :::: Python version $( python3 --version) "
160160 case " $package " in
161- torch-mlir)
162- clean_wheels torch_mlir " $python_version "
163- build_torch_mlir " $TM_TORCH_VERSION "
161+ torch-mlir-ext )
162+ clean_wheels torch_mlir_ext " $python_version "
163+ build_torch_mlir_ext " $TM_TORCH_VERSION "
164164
165165 # Disable audit wheel until we can fix ODR torch issues. See
166166 # https://github.com/llvm/torch-mlir/issues/1709
167167 #
168- # run_audit_wheel torch_mlir "$python_version"
168+ # run_audit_wheel torch_mlir_ext "$python_version"
169169
170- clean_build torch_mlir " $python_version "
170+ clean_build torch_mlir_ext " $python_version "
171171 ;;
172- torch-mlir-core )
173- clean_wheels torch_mlir_core " $python_version "
174- build_torch_mlir_core
175- run_audit_wheel torch_mlir_core " $python_version "
176- clean_build torch_mlir_core " $python_version "
172+ torch-mlir)
173+ clean_wheels torch_mlir " $python_version "
174+ build_torch_mlir
175+ run_audit_wheel torch_mlir " $python_version "
176+ clean_build torch_mlir " $python_version "
177177 ;;
178178 out-of-tree)
179179 setup_venv " $python_version " " $TM_TORCH_VERSION "
@@ -431,7 +431,7 @@ function clean_build() {
431431 rm -rf /main_checkout/torch-mlir/build /main_checkout/torch-mlir/llvm-build /main_checkout/torch-mlir/docker_venv /main_checkout/torch-mlir/libtorch
432432}
433433
434- function build_torch_mlir () {
434+ function build_torch_mlir_ext () {
435435 # Disable LTC build for releases
436436 export TORCH_MLIR_ENABLE_LTC=0
437437 local torch_version=" $1 "
@@ -470,7 +470,9 @@ function run_audit_wheel() {
470470 rm " $generic_wheel "
471471}
472472
473- function build_torch_mlir_core() {
473+ function build_torch_mlir() {
474+ # Disable LTC build for releases
475+ export TORCH_MLIR_ENABLE_LTC=0
474476 python -m pip install --no-cache-dir -r /main_checkout/torch-mlir/build-requirements.txt
475477 CMAKE_GENERATOR=Ninja \
476478 TORCH_MLIR_PYTHON_PACKAGE_VERSION=${TORCH_MLIR_PYTHON_PACKAGE_VERSION} \
0 commit comments