Skip to content

Commit

Permalink
Fix build with test (PaddlePaddle#283)
Browse files Browse the repository at this point in the history
* ci WITH_TESTING

* restore

* fix build with test on

* up x
  • Loading branch information
gglin001 authored Nov 11, 2021
1 parent 0f1e08d commit 6edd4b8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions paddle/fluid/operators/jit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ if(WITH_XBYAK)
endif()

if(WITH_IPU)
list(APPEND JIT_KERNEL_DEPS ipu_backend)
set(JIT_IPU_DEPS ipu_backend)
elseif(WITH_IPU)
set(JIT_IPU_DEPS "")
endif()

cc_library(jit_kernel_helper INTERFACE SRCS ${jit_kernel_cc_srcs} DEPS jit_kernel_base ${JIT_KERNEL_DEPS})
cc_test(jit_kernel_test SRCS test.cc DEPS jit_kernel_helper)
cc_library(jit_kernel_helper INTERFACE SRCS ${jit_kernel_cc_srcs} DEPS jit_kernel_base ${JIT_KERNEL_DEPS} ${JIT_IPU_DEPS})
cc_test(jit_kernel_test SRCS test.cc DEPS jit_kernel_helper ${JIT_IPU_DEPS})
if(NOT WIN32)
cc_binary(jit_kernel_benchmark SRCS benchmark.cc DEPS jit_kernel_helper device_tracer tensor)
endif()
Expand Down

0 comments on commit 6edd4b8

Please sign in to comment.