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
|
||||
- llvm-build: in-tree
|
||||
torch-binary: OFF
|
||||
# Exclude llvm out-of-tree and pytorch binary
|
||||
# Exclude llvm out-of-tree and pytorch source
|
||||
- llvm-build: out-of-tree
|
||||
torch-binary: ON
|
||||
torch-binary: OFF
|
||||
# Exclude macos-arm64 and llvm out-of-tree altogether
|
||||
- os-arch: macos-arm64
|
||||
llvm-build: out-of-tree
|
||||
|
|
|
@ -367,13 +367,11 @@ function build_out_of_tree() {
|
|||
local torch_version="$3"
|
||||
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.
|
||||
enable_ltc="OFF"
|
||||
# local enable_ltc="ON"
|
||||
# if [[ "${torch_version}" == "stable" ]]
|
||||
# then
|
||||
# enable_ltc="OFF"
|
||||
# fi
|
||||
local enable_ltc="ON"
|
||||
if [[ "${torch_version}" == "stable" ]]
|
||||
then
|
||||
enable_ltc="OFF"
|
||||
fi
|
||||
|
||||
if [ ! -d "/main_checkout/torch-mlir/llvm-build/lib/cmake/mlir/" ]
|
||||
then
|
||||
|
|
|
@ -8,6 +8,7 @@ add_library(TorchMLIRJITIRImporter STATIC
|
|||
ivalue_importer.cpp
|
||||
torch_to_mlir_utils.cpp
|
||||
)
|
||||
message(STATUS "Linking TorchMLIRJITImporter with ${TORCH_LIBRARIES}")
|
||||
target_link_libraries(TorchMLIRJITIRImporter
|
||||
TorchMLIRAggregateCAPI
|
||||
${TORCH_LIBRARIES}
|
||||
|
|
Loading…
Reference in New Issue