Skip to content
Snippets Groups Projects
Commit 2f893ee1 authored by Yifan Zhao's avatar Yifan Zhao
Browse files

Fixed approxhpvm.py introduced in last merge

parent 993f7de7
No related branches found
No related tags found
No related merge requests found
include(../cmake/TestFile.cmake) # Generation of `.test` files in CMake include(../cmake/TestFile.cmake) # Generation of `.test` files in CMake
# approxhpvm.py, clang and clang++ are used to compile benchmarks # clang and clang++ are used to compile benchmarks
# in `benchmarks` and `dnn_benchmarks/hpvm-c`. # in `benchmarks` and `dnn_benchmarks/hpvm-c`.
set(APPROXHPVM_PY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/approxhpvm.py)
set(CLANG_C ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/clang) set(CLANG_C ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/clang)
set(CLANG_CXX ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/clang++) set(CLANG_CXX ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/clang++)
......
...@@ -27,9 +27,9 @@ function(add_hpvm_benchmark ...@@ -27,9 +27,9 @@ function(add_hpvm_benchmark
endif() endif()
add_custom_command( add_custom_command(
OUTPUT ${output_bin_path} OUTPUT ${output_bin_path}
COMMAND ${APPROXHPVM_PY} ${all_flags} -x${language_mode} COMMAND hpvm-clang ${all_flags} -x${language_mode}
${bitcodes_arg} -- ${main_src_path} ${output_bin_path} ${bitcodes_arg} -- ${main_src_path} ${output_bin_path}
DEPENDS ${main_src_path} ${util_bitcodes} approxhpvm.py DEPENDS ${main_src_path} ${util_bitcodes} hpvm-clang
) )
add_custom_target(${target_name} DEPENDS ${output_bin_path}) add_custom_target(${target_name} DEPENDS ${output_bin_path})
endfunction(add_hpvm_benchmark) endfunction(add_hpvm_benchmark)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment