Back to home page

EIC code displayed by LXR

 
 

    


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

0001 # TRACCC library, part of the ACTS project (R&D line)
0002 #
0003 # (c) 2021-2024 CERN for the benefit of the ACTS project
0004 #
0005 # Mozilla Public License Version 2.0
0006 
0007 enable_language(CUDA)
0008 
0009 include(traccc-compiler-options-cuda)
0010 
0011 find_package(CUDAToolkit REQUIRED)
0012 
0013 add_library(traccc_tests_cuda_main STATIC cuda_main.cpp)
0014 
0015 target_link_libraries(traccc_tests_cuda_main PRIVATE CUDA::cudart GTest::gtest)
0016 
0017 # Set up Thrust specifically for the CUDA unit tests.
0018 thrust_create_target( traccc_test_cuda_thrust
0019   HOST CPP
0020   DEVICE CUDA
0021 )
0022 
0023 traccc_add_test(
0024     cuda
0025 
0026     # Define the sources for the test.
0027     test_ambiguity_resolution.cpp
0028     test_basic.cu
0029     test_barrier.cu
0030     test_cca.cpp
0031     test_ckf_combinatorics_telescope.cpp
0032     test_ckf_toy_detector.cpp
0033     test_copy.cu
0034     test_kalman_fitter_telescope.cpp
0035     test_clusterization.cpp
0036     test_copy.cu
0037     test_grid2.cpp
0038     test_grid2.cu
0039     test_spacepoint_formation.cpp
0040     test_thrust.cu
0041     test_sync.cu
0042     test_array_wrapper.cu
0043     test_mutex.cu
0044     test_unique_lock.cu
0045     test_sanity_contiguous_on.cu
0046     test_sanity_ordered_on.cu
0047     test_sort.cu
0048 
0049     LINK_LIBRARIES
0050     CUDA::cudart
0051     traccc_test_cuda_thrust
0052     GTest::gtest
0053     vecmem::cuda
0054     detray::core
0055     detray::io
0056     detray::test_common
0057     traccc::core
0058     traccc::device_common
0059     traccc::cuda_utils
0060     traccc::cuda
0061     traccc::performance
0062     traccc::io
0063     traccc::simulation
0064     traccc_tests_cuda_main
0065     traccc_tests_common
0066 )
0067 
0068 # For CUDA 11 turn on separable compilation. This is necessary for using
0069 # Thrust 2.1.0.
0070 if(
0071     ("${CMAKE_CUDA_COMPILER_ID}" STREQUAL "NVIDIA")
0072     AND ("${CMAKE_CUDA_COMPILER_VERSION}" VERSION_LESS "12.0")
0073 )
0074     set_target_properties(
0075         traccc_test_cuda
0076         PROPERTIES CUDA_SEPARABLE_COMPILATION ON
0077     )
0078 endif()