Skip to content

Commit

Permalink
Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mconcas committed Sep 8, 2023
1 parent 90137ca commit a2175f9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Detectors/ITSMFT/ITS/tracking/GPU/hip/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion GPU/GPUTracking/Base/cuda/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions GPU/GPUbenchmark/hip/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit a2175f9

Please sign in to comment.