Back to home page

EIC code displayed by LXR

 
 

    


Warning, /acts/Detray/tests/tools/src/cuda/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # This file is part of the ACTS project.
0002 #
0003 # Copyright (C) 2016 CERN for the benefit of the ACTS project
0004 #
0005 # This Source Code Form is subject to the terms of the Mozilla Public
0006 # License, v. 2.0. If a copy of the MPL was not distributed with this
0007 # file, You can obtain one at https://mozilla.org/MPL/2.0/.
0008 
0009 message(STATUS "Building detray CUDA command line tools")
0010 
0011 # Enable CUDA as a language.
0012 enable_language(CUDA)
0013 
0014 include(CMakeFindDependencyMacro)
0015 
0016 find_dependency(Boost COMPONENTS program_options REQUIRED)
0017 
0018 if(DETRAY_BUILD_TESTING)
0019     # Build the navigation validation executable.
0020     detray_add_executable(navigation_validation_cuda
0021                         "navigation_validation_cuda.cpp"
0022                         LINK_LIBRARIES GTest::gtest GTest::gtest_main
0023                         Boost::program_options detray::test_cuda detray::tools
0024     )
0025 
0026     # Build the material cuda validation executable.
0027     detray_add_executable(material_validation_cuda
0028                         "material_validation_cuda.cpp"
0029                         LINK_LIBRARIES GTest::gtest GTest::gtest_main
0030                         Boost::program_options detray::test_cuda detray::tools
0031     )
0032 endif()
0033 
0034 if(DETRAY_BUILD_BENCHMARKS)
0035     # Build benchmarks for multiple algebra plugins
0036     # Currently vc and smatrix is not supported on device
0037     set(algebra_plugins "array")
0038     if(DETRAY_EIGEN_PLUGIN)
0039         list(APPEND algebra_plugins "eigen")
0040     endif()
0041 
0042     foreach(algebra ${algebra_plugins})
0043         detray_add_executable(propagation_benchmark_cuda_${algebra}
0044         "propagation_benchmark_cuda.cpp"
0045         LINK_LIBRARIES detray::benchmark_cuda_${algebra} vecmem::cuda detray::tools detray::test_common
0046         )
0047     endforeach()
0048 endif()