mirror of https://github.com/llvm/torch-mlir
Disable pytorch build from source for out of tree.
parent
a1cd142340
commit
947715b68f
|
@ -33,9 +33,9 @@ jobs:
|
||||||
# Exclude llvm in-tree and pytorch source
|
# Exclude llvm in-tree and pytorch source
|
||||||
- llvm-build: in-tree
|
- llvm-build: in-tree
|
||||||
torch-binary: OFF
|
torch-binary: OFF
|
||||||
# Exclude llvm out-of-tree and pytorch binary
|
# Exclude llvm out-of-tree and pytorch source
|
||||||
- llvm-build: out-of-tree
|
- llvm-build: out-of-tree
|
||||||
torch-binary: ON
|
torch-binary: OFF
|
||||||
# Exclude macos-arm64 and llvm out-of-tree altogether
|
# Exclude macos-arm64 and llvm out-of-tree altogether
|
||||||
- os-arch: macos-arm64
|
- os-arch: macos-arm64
|
||||||
llvm-build: out-of-tree
|
llvm-build: out-of-tree
|
||||||
|
|
|
@ -367,13 +367,11 @@ function build_out_of_tree() {
|
||||||
local torch_version="$3"
|
local torch_version="$3"
|
||||||
echo ":::: Build out-of-tree Torch from binary: $torch_from_bin with Python: $python_version ($torch_version)"
|
echo ":::: Build out-of-tree Torch from binary: $torch_from_bin with Python: $python_version ($torch_version)"
|
||||||
|
|
||||||
# Disabled due to link errors on undefined c10 and other core torch symbols.
|
local enable_ltc="ON"
|
||||||
enable_ltc="OFF"
|
if [[ "${torch_version}" == "stable" ]]
|
||||||
# local enable_ltc="ON"
|
then
|
||||||
# if [[ "${torch_version}" == "stable" ]]
|
enable_ltc="OFF"
|
||||||
# then
|
fi
|
||||||
# enable_ltc="OFF"
|
|
||||||
# fi
|
|
||||||
|
|
||||||
if [ ! -d "/main_checkout/torch-mlir/llvm-build/lib/cmake/mlir/" ]
|
if [ ! -d "/main_checkout/torch-mlir/llvm-build/lib/cmake/mlir/" ]
|
||||||
then
|
then
|
||||||
|
|
|
@ -8,6 +8,7 @@ add_library(TorchMLIRJITIRImporter STATIC
|
||||||
ivalue_importer.cpp
|
ivalue_importer.cpp
|
||||||
torch_to_mlir_utils.cpp
|
torch_to_mlir_utils.cpp
|
||||||
)
|
)
|
||||||
|
message(STATUS "Linking TorchMLIRJITImporter with ${TORCH_LIBRARIES}")
|
||||||
target_link_libraries(TorchMLIRJITIRImporter
|
target_link_libraries(TorchMLIRJITIRImporter
|
||||||
TorchMLIRAggregateCAPI
|
TorchMLIRAggregateCAPI
|
||||||
${TORCH_LIBRARIES}
|
${TORCH_LIBRARIES}
|
||||||
|
|
Loading…
Reference in New Issue