Skip to content

Commit

Permalink
disable eager compile in inference
Browse files Browse the repository at this point in the history
  • Loading branch information
JiabinYang committed Jan 4, 2023
1 parent d4a22b4 commit a60eb1f
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 45 deletions.
90 changes: 46 additions & 44 deletions paddle/fluid/eager/tests/performance_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,46 +1,48 @@
cc_library(
performance_benchmark_utils
SRCS benchmark_utils.cc
DEPS ${eager_deps}
${fluid_deps}
${generated_deps}
eager_scale
scale_node
scale_op
matmul_v2_op
dygraph_function
eager_prim_api)
if(NOT (NOT WITH_PYTHON AND ON_INFER))
cc_library(
performance_benchmark_utils
SRCS benchmark_utils.cc
DEPS ${eager_deps}
${fluid_deps}
${generated_deps}
eager_scale
scale_node
scale_op
matmul_v2_op
dygraph_function
eager_prim_api)

cc_test_old(
test_egr_performance_benchmark_eager_cpu
SRCS
benchmark_eager_cpu.cc
DEPS
performance_benchmark_utils
${eager_deps}
${fluid_deps})
cc_test_old(
test_egr_performance_benchmark_fluid_cpu
SRCS
benchmark_fluid_cpu.cc
DEPS
performance_benchmark_utils
${eager_deps}
${fluid_deps})
cc_test_old(
test_egr_performance_benchmark_eager_cpu
SRCS
benchmark_eager_cpu.cc
DEPS
performance_benchmark_utils
${eager_deps}
${fluid_deps})
cc_test_old(
test_egr_performance_benchmark_fluid_cpu
SRCS
benchmark_fluid_cpu.cc
DEPS
performance_benchmark_utils
${eager_deps}
${fluid_deps})

cc_test_old(
test_egr_performance_benchmark_eager_cuda
SRCS
benchmark_eager_cuda.cc
DEPS
performance_benchmark_utils
${eager_deps}
${fluid_deps})
cc_test_old(
test_egr_performance_benchmark_fluid_cuda
SRCS
benchmark_fluid_cuda.cc
DEPS
performance_benchmark_utils
${eager_deps}
${fluid_deps})
cc_test_old(
test_egr_performance_benchmark_eager_cuda
SRCS
benchmark_eager_cuda.cc
DEPS
performance_benchmark_utils
${eager_deps}
${fluid_deps})
cc_test_old(
test_egr_performance_benchmark_fluid_cuda
SRCS
benchmark_fluid_cuda.cc
DEPS
performance_benchmark_utils
${eager_deps}
${fluid_deps})
endif()
2 changes: 1 addition & 1 deletion paddle/fluid/prim/api/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ else()
cc_library(
prim_api
SRCS all.cc
DEPS static_utils static_prim_api eager_prim_api)
DEPS static_utils static_prim_api)
endif()

0 comments on commit a60eb1f

Please sign in to comment.