Skip to content

Commit

Permalink
change path to the default hiprand and rocrand header files
Browse files Browse the repository at this point in the history
  • Loading branch information
Pengfei Ding committed Nov 29, 2024
1 parent 10c1a34 commit f325168
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FastCaloSimAnalyzer/FastCaloGpu/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ if(RNDGEN_CPU)
else()
if(USE_HIP)
if ( ${HIP_TARGET} STREQUAL "AMD" )
target_include_directories(${FastCaloGpu_LIB} PRIVATE ${ROCM_PATH}/hiprand/include )
target_include_directories(${FastCaloGpu_LIB} PRIVATE ${ROCM_PATH}/rocrand/include )
target_include_directories(${FastCaloGpu_LIB} PRIVATE ${ROCM_PATH}/include/hiprand )
target_include_directories(${FastCaloGpu_LIB} PRIVATE ${ROCM_PATH}/include/rocrand )
target_link_libraries(${FastCaloGpu_LIB} PUBLIC ${ROCM_PATH}/lib/libhiprand.so)
elseif( ${HIP_TARGET} STREQUAL "NVIDIA" )
target_link_libraries(${FastCaloGpu_LIB} PUBLIC ${CUDA_curand_LIBRARY} ${CUDA_nvToolsExt_LIBRARY})
Expand Down

0 comments on commit f325168

Please sign in to comment.