Skip to content
Snippets Groups Projects
Commit 36c115fc authored by zhanghb97's avatar zhanghb97
Browse files

[DL] Link MLIR C runner utils library to support memrefCopy.

parent 91b79029
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,7 @@ include_directories(${BUDDY_SOURCE_DIR}/lib) # For template inclusion model.
# MLIR binary directory.
set(LLVM_MLIR_BINARY_DIR ${BUDDY_OPT_BUILD_DIR}/../llvm/build/bin)
set(LLVM_MLIR_LIBRARY_DIR ${BUDDY_OPT_BUILD_DIR}/../llvm/build/lib)
# Helper functions.
include(buddy-benchmark.cmake)
......
......@@ -9,9 +9,8 @@ add_buddy_model_benchmark(inception-v3-benchmark
--convert-vector-to-scf
--convert-scf-to-std
--func-bufferize
--tensor-constant-bufferize
--arith-bufferize
--tensor-bufferize
--std-bufferize
--finalizing-bufferize
--lower-affine
--convert-vector-to-llvm
......
......@@ -9,9 +9,8 @@ add_buddy_model_benchmark(mobilenet-benchmark
--convert-vector-to-scf
--convert-scf-to-std
--func-bufferize
--tensor-constant-bufferize
--arith-bufferize
--tensor-bufferize
--std-bufferize
--finalizing-bufferize
--lower-affine
--convert-vector-to-llvm
......
......@@ -9,9 +9,8 @@ add_buddy_model_benchmark(mobilenet-v3-benchmark
--convert-vector-to-scf
--convert-scf-to-std
--func-bufferize
--tensor-constant-bufferize
--arith-bufferize
--tensor-bufferize
--std-bufferize
--finalizing-bufferize
--lower-affine
--convert-vector-to-llvm
......
......@@ -9,9 +9,8 @@ add_buddy_model_benchmark(resnet_v2_50-benchmark
--convert-vector-to-scf
--convert-scf-to-std
--func-bufferize
--tensor-constant-bufferize
--arith-bufferize
--tensor-bufferize
--std-bufferize
--finalizing-bufferize
--lower-affine
--convert-vector-to-llvm
......
......@@ -40,10 +40,12 @@ function(add_buddy_model_benchmark name)
add_executable(${name} ${ARGS_SOURCE})
# Link libraries
target_link_directories(${name} PRIVATE ${LLVM_MLIR_LIBRARY_DIR})
target_link_libraries(${name}
${ARGS_LIBRARY}
GoogleBenchmark
Container
mlir_c_runner_utils
)
if (${ARGS_OpenCV})
target_link_libraries(${name} ${ARGS_LIBRARY} ${OpenCV_LIBS})
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment