mirror of https://github.com/llvm/torch-mlir
parent
30df2ec71b
commit
614b889dc6
|
@ -53,12 +53,10 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
|
||||||
include(AddMLIR)
|
include(AddMLIR)
|
||||||
include(HandleLLVMOptions)
|
include(HandleLLVMOptions)
|
||||||
|
|
||||||
include(AddMLIRPython)
|
|
||||||
declare_mlir_python_sources(MLIRPythonSources)
|
|
||||||
|
|
||||||
# Don't try to compile the python extensions at the moment. We need
|
# Don't try to compile the python extensions at the moment. We need
|
||||||
# to import lots of dependencies from AddMLIRPython to make this work.
|
# to import lots of dependencies from AddMLIRPython to make this work.
|
||||||
set(MLIR_ENABLE_BINDINGS_PYTHON 0)
|
set(MLIR_ENABLE_BINDINGS_PYTHON 1)
|
||||||
|
option(TORCH_MLIR_ENABLE_JIT_IR_IMPORTER "Enables JIT IR Importer" ON)
|
||||||
|
|
||||||
set(TORCH-MLIR_BUILT_STANDALONE 1)
|
set(TORCH-MLIR_BUILT_STANDALONE 1)
|
||||||
set(BACKEND_PACKAGE_STRING "LLVM ${LLVM_PACKAGE_VERSION}")
|
set(BACKEND_PACKAGE_STRING "LLVM ${LLVM_PACKAGE_VERSION}")
|
||||||
|
|
|
@ -6,6 +6,7 @@ add_mlir_public_c_api_library(TorchMLIRCAPI
|
||||||
ADDITIONAL_HEADER_DIRS
|
ADDITIONAL_HEADER_DIRS
|
||||||
${PROJECT_SOURCE_DIR}/include/torch-mlir-c/
|
${PROJECT_SOURCE_DIR}/include/torch-mlir-c/
|
||||||
|
|
||||||
|
ENABLE_AGGREGATION
|
||||||
LINK_COMPONENTS
|
LINK_COMPONENTS
|
||||||
Core
|
Core
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ declare_mlir_python_extension(TorchMLIRPythonExtensions.Main
|
||||||
MODULE_NAME _torchMlir
|
MODULE_NAME _torchMlir
|
||||||
ADD_TO_PARENT TorchMLIRPythonExtensions
|
ADD_TO_PARENT TorchMLIRPythonExtensions
|
||||||
SOURCES
|
SOURCES
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/TorchMLIRModule.cpp
|
TorchMLIRModule.cpp
|
||||||
EMBED_CAPI_LINK_LIBS
|
EMBED_CAPI_LINK_LIBS
|
||||||
TorchMLIRCAPI
|
TorchMLIRCAPI
|
||||||
PRIVATE_LINK_LIBS
|
PRIVATE_LINK_LIBS
|
||||||
|
|
Loading…
Reference in New Issue