From 46bb8e1bed45ec4bc2c61b38b5c026258dfc7895 Mon Sep 17 00:00:00 2001 From: Cory Bloor Date: Mon, 15 Apr 2024 15:15:49 -0600 Subject: [PATCH] Add hip::host to roc::rocrand interface libraries (#470) The HIP headers are included in rocrand.h and the HIP library should therefore be included in the roc::rocrand interface libraries. --- library/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt index b97c095f..a89b5cb9 100644 --- a/library/CMakeLists.txt +++ b/library/CMakeLists.txt @@ -120,6 +120,7 @@ if(HIP_COMPILER STREQUAL "nvcc") set(CUDA_HOST_COMPILER ${CMAKE_CXX_COMPILER}) else() target_link_libraries(rocrand PRIVATE hip::device) + target_link_libraries(rocrand PUBLIC hip::host) endif() if(NOT WIN32)