Warning, /acts/Traccc/examples/run/alpaka/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) 2023-2025 CERN for the benefit of the ACTS project
0004 #
0005 # Mozilla Public License Version 2.0
0006
0007 # Project include(s).
0008 include(traccc-alpaka-functions)
0009
0010 set(EXTRA_LIBS)
0011
0012 if(alpaka_ACC_GPU_CUDA_ENABLE)
0013 list(APPEND EXTRA_LIBS vecmem::cuda)
0014 elseif(alpaka_ACC_GPU_HIP_ENABLE)
0015 find_package(HIPToolkit REQUIRED)
0016 list(APPEND EXTRA_LIBS HIP::hiprt vecmem::hip)
0017 elseif(alpaka_ACC_SYCL_ENABLE)
0018 list(APPEND EXTRA_LIBS vecmem::sycl)
0019 endif()
0020
0021 set(LIBRARIES
0022 vecmem::core
0023 traccc::io
0024 traccc::performance
0025 traccc::core
0026 traccc::device_common
0027 traccc::alpaka
0028 traccc::options
0029 traccc_examples_common
0030 ${EXTRA_LIBS}
0031 )
0032 set(DETRAY detray::io detray::detectors)
0033
0034 traccc_add_executable( seq_example_alpaka "apps/seq_example_alpaka.cpp"
0035 LINK_LIBRARIES ${LIBRARIES} ${DETRAY}
0036 )
0037 traccc_add_executable( seeding_example_alpaka "apps/seeding_example_alpaka.cpp"
0038 LINK_LIBRARIES ${LIBRARIES}
0039 )
0040
0041 #
0042 # Set up the "throughput applications".
0043 #
0044 traccc_add_library( traccc_examples_alpaka examples_alpaka SHARED
0045 "include/traccc/examples/alpaka/full_chain_algorithm.hpp"
0046 "src/full_chain_algorithm.cpp"
0047 )
0048 target_link_libraries(
0049 traccc_examples_alpaka
0050 PUBLIC
0051 vecmem::core
0052 detray::core
0053 detray::detectors
0054 traccc::core
0055 traccc::device_common
0056 traccc::alpaka
0057 traccc_examples_common
0058 ${EXTRA_LIBS}
0059 )
0060
0061 traccc_add_executable( throughput_st_alpaka "apps/throughput_st.cpp"
0062 LINK_LIBRARIES ${LIBRARIES} ${DETRAY} traccc_examples_alpaka
0063 )
0064
0065 traccc_add_executable( throughput_mt_alpaka "apps/throughput_mt.cpp"
0066 LINK_LIBRARIES TBB::tbb ${LIBRARIES} ${DETRAY} traccc_examples_alpaka
0067 )
0068
0069 add_test(
0070 NAME throughput_st_alpaka
0071 COMMAND
0072 traccc_throughput_st_alpaka --finding-run-smoother=none
0073 --read-bfield-from-file --cold-run-events=1 --processed-events=1
0074 )
0075
0076 add_test(
0077 NAME throughput_mt_alpaka
0078 COMMAND
0079 traccc_throughput_mt_alpaka --finding-run-smoother=none
0080 --read-bfield-from-file --cold-run-events=1 --processed-events=1
0081 )