Skip to content

Commit

Permalink
Make hipcc part of install prereqs and cleanup commented line (#3469)
Browse files Browse the repository at this point in the history
  • Loading branch information
TedThemistokleous committed Sep 25, 2024
1 parent 9f01876 commit 2c2085d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
4 changes: 0 additions & 4 deletions hip-clang.docker
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --allow-
wget \
rocm-device-libs \
hip-dev \
hipcc \
libnuma-dev \
miopen-hip \
rocblas \
Expand All @@ -45,9 +44,6 @@ RUN ldconfig
# Workaround broken miopen cmake files
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 -e '/if(WIN32)/, /endif()/d' /opt/rocm/lib/cmake/hip/hip-config.cmake && sed -i -n 5p /opt/rocm/lib/cmake/hip/hip-config.cmake

ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8

Expand Down
3 changes: 0 additions & 3 deletions tools/docker/sles.docker
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ RUN echo "/opt/rocm/lib" > /etc/ld.so.conf.d/rocm.conf
RUN echo "/opt/rocm/llvm/lib" > /etc/ld.so.conf.d/rocm-llvm.conf
RUN ldconfig

# Workaround for broken hip-clang
RUN sed -i '/if(WIN32)/, /endif()/d' /opt/rocm/lib/cmake/hip/hip-config.cmake || true

ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8

Expand Down
2 changes: 2 additions & 0 deletions tools/install_prereqs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export LANG=C.UTF-8

source /etc/os-release

# hipcc added as workaround for broken hip-dev package
if [[ ("${ID}" == "sles") ]]; then
zypper -n --gpg-auto-import-keys install -y \
cmake \
Expand Down Expand Up @@ -60,6 +61,7 @@ else
libgfortran5 \
hipblas-dev \
hipblaslt-dev \
hipcc \
rocm-cmake \
rocm-llvm-dev \
libtbb-dev
Expand Down

0 comments on commit 2c2085d

Please sign in to comment.