Skip to content

Commit

Permalink
cinn(cmake): fix cmake error in dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
6clc committed Dec 5, 2023
1 parent d514d69 commit f9d1b83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/ir/pir/cinn/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if(WITH_GPU)
string(REGEX REPLACE ".py" "" cinn_pir_test_name ${cinn_pir_test_name})
string(FIND "${cinn_pir_test_name}" "symbolic" index_of_substr)

message(${index_of_substr} "liuchao liuchao" ${cinn_pir_test_name})
message(${index_of_substr} ${cinn_pir_test_name})
if(index_of_substr EQUAL -1)
add_test(
NAME ${cinn_pir_test_name}
Expand All @@ -27,7 +27,7 @@ if(WITH_GPU)
${CMAKE_COMMAND} -E env
PYTHONPATH=${CMAKE_BINARY_DIR}:${CMAKE_BINARY_DIR}/python/:$ENV{PYTHONPATH}
FLAGS_cinn_bucket_compile=True FLAGS_enable_pir_api=1
FLAGS_prim_all=True ${PYTHON_EXECUTABLE}
${PYTHON_EXECUTABLE}
${CMAKE_CURRENT_SOURCE_DIR}/${cinn_pir_test_name}.py
WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
endif()
Expand Down

0 comments on commit f9d1b83

Please sign in to comment.