add PIM accelerator
This commit is contained in:
44
src/PIM/Compiler/CMakeLists.txt
Normal file
44
src/PIM/Compiler/CMakeLists.txt
Normal file
@@ -0,0 +1,44 @@
|
||||
get_property(OMLibs GLOBAL PROPERTY ONNX_MLIR_LIBS)
|
||||
|
||||
add_onnx_mlir_library(OMPimCompilerOptions
|
||||
PimCompilerOptions.cpp
|
||||
|
||||
EXCLUDE_FROM_OM_LIBS
|
||||
|
||||
INCLUDE_DIRS PRIVATE
|
||||
${PIM_SRC_ROOT}
|
||||
${PIM_BIN_ROOT}
|
||||
${PIM_ONNX_MLIR_SRC_ROOT}
|
||||
${PIM_ONNX_MLIR_BIN_ROOT}
|
||||
|
||||
LINK_LIBS PUBLIC
|
||||
${OMLibs}
|
||||
OMCompilerOptions
|
||||
|
||||
ACCEL_INCLUDE_DIRS PRIVATE
|
||||
${PIM_ONNX_MLIR_SRC_ROOT}
|
||||
${PIM_ONNX_MLIR_BIN_ROOT}
|
||||
)
|
||||
|
||||
add_onnx_mlir_library(OMPimCompilerUtils
|
||||
PimCompilerUtils.cpp
|
||||
PimCodeGen.cpp
|
||||
|
||||
EXCLUDE_FROM_OM_LIBS
|
||||
|
||||
INCLUDE_DIRS PRIVATE
|
||||
${PIM_SRC_ROOT}
|
||||
${PIM_BIN_ROOT}
|
||||
${PIM_ONNX_MLIR_SRC_ROOT}
|
||||
${PIM_ONNX_MLIR_BIN_ROOT}
|
||||
|
||||
LINK_LIBS PUBLIC
|
||||
${OMLibs}
|
||||
OMCompilerUtils
|
||||
OMPimCompilerOptions
|
||||
OMCompilerPasses
|
||||
|
||||
ACCEL_INCLUDE_DIRS PRIVATE
|
||||
${PIM_ONNX_MLIR_SRC_ROOT}
|
||||
${PIM_ONNX_MLIR_BIN_ROOT}
|
||||
)
|
||||
Reference in New Issue
Block a user