Skip to content

Commit

Permalink
Update ln command
Browse files Browse the repository at this point in the history
  • Loading branch information
rjanalik committed Oct 22, 2024
1 parent 6396c31 commit e1dde5d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/Dockerfile.mpi-osu_bw
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ RUN apt-get update \
&& env DEBIAN_FRONTEND=noninteractive TZ=Europe/Zurich apt-get -yqq install --no-install-recommends build-essential

# Fix error in ./configure: cannot link with -lcuda
RUN (test -f /usr/local/cuda/lib64/stubs/libcuda.so && ln -s /usr/local/cuda/lib64/stubs/libcuda.so /usr/local/cuda/lib64/libcuda.so) || true
RUN TARGET=/usr/local/cuda/lib64/stubs/libcuda.so; \
LINK_NAME=/usr/local/cuda/lib64/libcuda.so; \
if test -f $TARGET && test ! -f $LINK_NAME; \
then \
ln -s $TARGET $LINK_NAME; \
fi

ARG TARGET
RUN spack-install-helper \
Expand Down

0 comments on commit e1dde5d

Please sign in to comment.