Commit c9c9dd7b authored by Michael Kuron's avatar Michael Kuron 💡

fix HIP build inside Docker container without GPU

parent 99f9aa07
Pipeline #3675 failed with stages
in 75 minutes and 27 seconds
......@@ -189,7 +189,7 @@ rocm-maxset:
stage: build
image: gitlab.icp.uni-stuttgart.de:4567/espressomd/docker/rocm:latest
script:
- export myconfig=maxset make_check=false
- export myconfig=maxset make_check=false HIP_PLATFORM=hcc HCC_AMDGPU_TARGET=gfx900
- bash maintainer/CI/build_cmake.sh
tags:
- docker
......
......@@ -185,7 +185,7 @@ if (WITH_CUDA)
find_package(HIP MODULE)
message(STATUS "Found HIP compiler: ${HIP_HIPCC_EXECUTABLE}")
set(CUDA 1)
list(APPEND HIP_HCC_FLAGS "-DAMDGPU_TARGETS=gfx900 -Wno-macro-redefined")
list(APPEND HIP_HCC_FLAGS "-Wno-macro-redefined")
HIP_INCLUDE_DIRECTORIES("${CMAKE_BINARY_DIR}/src/core" "${CMAKE_SOURCE_DIR}/src/core")
function(cuda_include_directories)
HIP_INCLUDE_DIRECTORIES(${ARGV})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment