diff --git a/Detectors/ITSMFT/ITS/tracking/GPU/hip/CMakeLists.txt b/Detectors/ITSMFT/ITS/tracking/GPU/hip/CMakeLists.txt index 0e48a83930de7..8fccb7f2a87d9 100644 --- a/Detectors/ITSMFT/ITS/tracking/GPU/hip/CMakeLists.txt +++ b/Detectors/ITSMFT/ITS/tracking/GPU/hip/CMakeLists.txt @@ -27,7 +27,7 @@ if(HIP_ENABLED) install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${baseTargetName} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) - # set(CMAKE_HIP_FLAGS "${CMAKE_HIP_FLAGS} ${O2_HIP_CMAKE_CXX_FLAGS} -fgpu-rdc") + set(CMAKE_HIP_FLAGS "${CMAKE_HIP_FLAGS} ${O2_HIP_CMAKE_CXX_FLAGS} -fgpu-rdc") message(STATUS "Building ITS HIP tracker") o2_add_library(ITStrackingHIP SOURCES ClusterLinesGPU.hip diff --git a/GPU/GPUTracking/Base/cuda/CMakeLists.txt b/GPU/GPUTracking/Base/cuda/CMakeLists.txt index 00697cbfa4a71..ed719de239103 100644 --- a/GPU/GPUTracking/Base/cuda/CMakeLists.txt +++ b/GPU/GPUTracking/Base/cuda/CMakeLists.txt @@ -136,7 +136,7 @@ if(ALIGPU_BUILD_TYPE STREQUAL "Standalone") endif() target_link_libraries(${targetName} PRIVATE cuda cudart nvrtc) -set_target_cuda_arch() +set_target_cuda_arch(${targetName}) if(OpenMP_CXX_FOUND) # Must be private, depending libraries might be compiled by compiler not understanding -fopenmp diff --git a/GPU/GPUbenchmark/hip/CMakeLists.txt b/GPU/GPUbenchmark/hip/CMakeLists.txt index 376f8c366d9d6..717b6e28fac24 100644 --- a/GPU/GPUbenchmark/hip/CMakeLists.txt +++ b/GPU/GPUbenchmark/hip/CMakeLists.txt @@ -31,6 +31,12 @@ o2_add_executable(gpu-memory-benchmark-hip Boost::program_options ROOT::Tree TARGETVARNAME targetName) +# >:-) +include_directories(${Boost_INCLUDE_DIRS}) +add_executable(alternative-gpu-memory-benchmark-hip benchmark.hip Kernels.hip) +target_link_libraries(alternative-gpu-memory-benchmark-hip Boost::program_options ROOT::Tree) +install(TARGETS alternative-gpu-memory-benchmark-hip RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) + if(O2_HIP_CMAKE_LINK_FLAGS) # Need to add gpu target also to link flags due to gpu-rdc option target_link_options(${targetName} PUBLIC ${O2_HIP_CMAKE_LINK_FLAGS})