Skip to content

Commit

Permalink
fix creation of /opt/rocm soft link
Browse files Browse the repository at this point in the history
  • Loading branch information
David Salinas committed Mar 31, 2020
1 parent 8dbc967 commit 6b02174
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
11 changes: 8 additions & 3 deletions docker/dockerfile-build-ubuntu-16.04
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,15 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
cmake \
libnuma-dev \
rocm-utils \
rocminfo \
hsa-rocr-dev \
hsa-ext-rocr-dev && \
rocminfo && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

RUN ln -sd `realpath /opt/rocm-*` /opt/rocm
RUN chmod -R 777 /opt/rocm

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends curl && \
curl -sL http://${REPO_RADEON}/rocm/apt/debian/rocm.gpg.key | apt-key add - && \
echo deb [arch=amd64] http://${REPO_RADEON}/rocm/apt/debian/ xenial main | tee /etc/apt/sources.list.d/rocm.list && \
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
hsa-rocr-dev hsa-ext-rocr-dev
3 changes: 3 additions & 0 deletions packaging/debian/postinst.in
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@ SOFTLINKS=(

do_softlinks() {

ln -sd `realpath /opt/rocm-*` $ROCM_PATH

mkdir -p "$ROCM_PATH/lib"
mkdir -p "$ROCM_PATH/lib/cmake"
mkdir -p "$ROCM_PATH/bin"
mkdir -p "$ROCM_PATH/include"

if [ -L "$ROCM_PATH/hcc" ] ; then
rm -f "$ROCM_PATH/hcc"
Expand Down

0 comments on commit 6b02174

Please sign in to comment.