CMakeLists.txt 588 B

1234567891011
  1. # TODO: Add support for other compilers
  2. if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  3. # Increase the inlining threshold only for those functions marked with an
  4. # inline hint. This is typically far more realistic to significantly increase
  5. # in a large code-base than -inline-threshold as that has a larger scope.
  6. list(APPEND CERES_BENCHMARK_FLAGS "-mllvm" "-inlinehint-threshold=1000000")
  7. endif()
  8. add_executable(autodiff_benchmarks autodiff_benchmarks.cc)
  9. add_dependencies_to_benchmark(autodiff_benchmarks)
  10. target_compile_options(autodiff_benchmarks PRIVATE ${CERES_BENCHMARK_FLAGS})