Skip to content

Commit

Permalink
replace if with HIP_PLATFORM being set already as workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
Ted Themistokleous committed Sep 18, 2024
1 parent af25026 commit 6f82c0c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions hip-clang.docker
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --allow-
wget \
rocm-device-libs \
hip-dev \
rocm-smi-lib \
rocm-dev \
hipify-clang \
hip-runtime-amd \
libnuma-dev \
miopen-hip \
rocblas \
Expand All @@ -49,7 +45,8 @@ RUN ldconfig
RUN sed -i 's,;/usr/lib/x86_64-linux-gnu/librt.so,,g' /opt/rocm/lib/cmake/miopen/miopen-targets.cmake

# Workaround for broken hip-clang
RUN sed -i '/if(WIN32)/, /endif()/d' /opt/rocm/lib/cmake/hip/hip-config.cmake
RUN sed -i '/if(WIN32)/, /endif()'/'set(HIP_PLATFORM, \"amd\")' /opt/rocm/lib/cmake/hip/hip-config.cmake



ENV LC_ALL=C.UTF-8
Expand Down

0 comments on commit 6f82c0c

Please sign in to comment.