Warning, /acts/Plugins/Cuda/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # Set up the "CUDA 1" plugin.
0002 find_library(CUDART_LIBRARY cudart ${CMAKE_CUDA_IMPLICIT_LINK_DIRECTORIES})
0003
0004 add_library(ActsPluginCuda SHARED src/Seeding/Kernels.cu)
0005 target_include_directories(
0006 ActsPluginCuda
0007 PUBLIC
0008 $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
0009 $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
0010 ${CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES}
0011 )
0012 target_link_libraries(ActsPluginCuda PUBLIC ActsCore ${CUDART_LIBRARY})
0013
0014 # Set up the "CUDA 2" plugin.
0015 add_library(
0016 ActsPluginCuda2
0017 STATIC
0018 include/Acts/Plugins/Cuda/Seeding2/Details/CountDublets.hpp
0019 include/Acts/Plugins/Cuda/Seeding2/Details/FindDublets.hpp
0020 include/Acts/Plugins/Cuda/Seeding2/Details/FindTriplets.hpp
0021 include/Acts/Plugins/Cuda/Seeding2/Details/Types.hpp
0022 include/Acts/Plugins/Cuda/Seeding2/SeedFinder.hpp
0023 include/Acts/Plugins/Cuda/Seeding2/SeedFinder.ipp
0024 include/Acts/Plugins/Cuda/Seeding2/TripletFilterConfig.hpp
0025 include/Acts/Plugins/Cuda/Utilities/Arrays.hpp
0026 include/Acts/Plugins/Cuda/Utilities/Info.hpp
0027 include/Acts/Plugins/Cuda/Utilities/MemoryManager.hpp
0028 include/Acts/Plugins/Cuda/Utilities/StreamWrapper.hpp
0029 src/Seeding2/CountDublets.cu
0030 src/Seeding2/FindDublets.cu
0031 src/Seeding2/FindTriplets.cu
0032 src/Utilities/Arrays.cu
0033 src/Utilities/ErrorCheck.cuh
0034 src/Utilities/ErrorCheck.cu
0035 src/Utilities/Info.cu
0036 src/Utilities/MatrixMacros.hpp
0037 src/Utilities/MemoryManager.cu
0038 src/Utilities/StreamHandlers.cuh
0039 src/Utilities/StreamWrapper.cu
0040 )
0041 target_include_directories(
0042 ActsPluginCuda2
0043 PUBLIC
0044 $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
0045 $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
0046 )
0047 target_link_libraries(ActsPluginCuda2 PUBLIC ActsCore)
0048 set_target_properties(
0049 ActsPluginCuda2
0050 PROPERTIES CUDA_SEPARABLE_COMPILATION ON POSITION_INDEPENDENT_CODE ON
0051 )
0052
0053 # Install all CUDA plugins.
0054 install(
0055 TARGETS ActsPluginCuda ActsPluginCuda2
0056 EXPORT ActsPluginCudaTargets
0057 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
0058 )
0059 install(DIRECTORY include/Acts DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})