|
1 | | -# Copyright 2019-2020 CERN and copyright holders of ALICE O2. |
2 | | -# See https://alice-o2.web.cern.ch/copyright for details of the copyright holders. |
| 1 | +# Copyright 2019-2020 CERN and copyright holders of ALICE O2. See |
| 2 | +# https://alice-o2.web.cern.ch/copyright for details of the copyright holders. |
3 | 3 | # All rights not expressly granted are reserved. |
4 | 4 | # |
5 | | -# This software is distributed under the terms of the GNU General Public |
6 | | -# License v3 (GPL Version 3), copied verbatim in the file "COPYING". |
| 5 | +# This software is distributed under the terms of the GNU General Public License |
| 6 | +# v3 (GPL Version 3), copied verbatim in the file "COPYING". |
7 | 7 | # |
8 | 8 | # In applying this license CERN does not waive the privileges and immunities |
9 | | -# granted to it by virtue of its status as an Intergovernmental Organization |
10 | | -# or submit itself to any jurisdiction. |
| 9 | +# granted to it by virtue of its status as an Intergovernmental Organization or |
| 10 | +# submit itself to any jurisdiction. |
11 | 11 |
|
12 | 12 | # CUDA |
13 | 13 | if(CUDA_ENABLED) |
14 | | -find_package(CUDAToolkit) |
15 | | -message(STATUS "Building ITS CUDA tracker") |
16 | | -# add_compile_options(-O0 -g -lineinfo -fPIC) |
17 | | -# add_compile_definitions(ITS_MEASURE_GPU_TIME) |
18 | | -o2_add_library(ITStrackingCUDA |
19 | | - SOURCES ClusterLinesGPU.cu |
20 | | - TrackerTraitsGPU.cxx |
21 | | - TimeFrameGPU.cu |
22 | | - TracerGPU.cu |
23 | | - TrackingKernels.cu |
24 | | - VertexingKernels.cu |
25 | | - VertexerTraitsGPU.cxx |
26 | | - PUBLIC_INCLUDE_DIRECTORIES ../ |
27 | | - PUBLIC_LINK_LIBRARIES O2::ITStracking |
28 | | - O2::SimConfig |
29 | | - O2::SimulationDataFormat |
30 | | - O2::ReconstructionDataFormats |
31 | | - O2::GPUCommon |
32 | | - PRIVATE_LINK_LIBRARIES O2::GPUTrackingCUDAExternalProvider |
33 | | - TARGETVARNAME targetName) |
| 14 | + find_package(CUDAToolkit) |
| 15 | + message(STATUS "Building ITS CUDA tracker") |
| 16 | + add_compile_options(-lineinfo) |
| 17 | + # add_compile_options(-O0 -g -lineinfo -fPIC) |
| 18 | + add_compile_definitions(ITS_MEASURE_GPU_TIME) |
| 19 | + o2_add_library( |
| 20 | + ITStrackingCUDA |
| 21 | + SOURCES ClusterLinesGPU.cu |
| 22 | + TrackerTraitsGPU.cxx |
| 23 | + TimeFrameGPU.cu |
| 24 | + TracerGPU.cu |
| 25 | + TrackingKernels.cu |
| 26 | + VertexingKernels.cu |
| 27 | + VertexerTraitsGPU.cxx |
| 28 | + PUBLIC_INCLUDE_DIRECTORIES ../ |
| 29 | + PUBLIC_LINK_LIBRARIES |
| 30 | + O2::ITStracking |
| 31 | + O2::SimConfig |
| 32 | + O2::SimulationDataFormat |
| 33 | + O2::ReconstructionDataFormats |
| 34 | + O2::GPUCommon |
| 35 | + PRIVATE_LINK_LIBRARIES |
| 36 | + O2::GPUTrackingCUDAExternalProvider |
| 37 | + TARGETVARNAME targetName) |
34 | 38 |
|
35 | | -set_property(TARGET ${targetName} PROPERTY CUDA_SEPARABLE_COMPILATION ON) |
36 | | -target_compile_definitions(${targetName} PRIVATE $<TARGET_PROPERTY:O2::ITStracking,COMPILE_DEFINITIONS>) |
37 | | -set_target_cuda_arch(${targetName}) |
| 39 | + set_property(TARGET ${targetName} PROPERTY CUDA_SEPARABLE_COMPILATION ON) |
| 40 | + target_compile_definitions( |
| 41 | + ${targetName} |
| 42 | + PRIVATE $<TARGET_PROPERTY:O2::ITStracking,COMPILE_DEFINITIONS>) |
| 43 | + set_target_cuda_arch(${targetName}) |
38 | 44 |
|
39 | 45 | endif() |
0 commit comments