Skip to content
Snippets Groups Projects
Commit 431bd434 authored by Christoph Alt's avatar Christoph Alt
Browse files

also loading hip runtime libs and link them

parent 1522c8fd
No related branches found
No related tags found
No related merge requests found
Pipeline #78065 failed
......@@ -686,9 +686,11 @@ if ( WALBERLA_BUILD_WITH_HIP )
if( CMAKE_HIP_COMPILER )
enable_language(HIP)
find_package(hip REQUIRED)
# since waLBerla also supports CUDA we only use HIP on an AMD platform
add_compile_definitions(__HIP_PLATFORM_AMD__)
# include_directories(${HSA_HEADER})
list (APPEND SERVICE_LIBS hip::host)
else()
message( FATAL_ERROR "HIP could not be found. Either make HIP available or disable WALBERLA_BUILD_WITH_HIP!" )
endif ( )
......
......@@ -51,6 +51,13 @@ if (WALBERLA_BUILD_WITH_CUDA)
)
endif (WALBERLA_BUILD_WITH_CUDA)
if (WALBERLA_BUILD_WITH_HIP)
target_link_libraries( walberla_gpu
Public
hip::host
)
endif (WALBERLA_BUILD_WITH_HIP)
add_subdirectory( sweeps )
add_subdirectory( communication )
add_subdirectory( lbm )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment