Skip to content

Commit a148bd5

Browse files
committed
add a comment why the stubs are added in the dockerfile
1 parent fe99f27 commit a148bd5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/software/communication/mpich.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ They are explicit and building manually the necessary packages, however for prod
8787
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends build-essential ca-certificates automake autoconf libtool make gdb strace wget python3 git gfortran \
8888
&& rm -rf /var/lib/apt/lists/*
8989

90+
# When building on a machine without a GPU,
91+
# during the build process on Daint the GPU driver and libraries are not imported into the build process
9092
RUN echo '/usr/local/cuda/lib64/stubs' > /etc/ld.so.conf.d/cuda_stubs.conf && ldconfig
9193

9294
RUN git clone https://github.com/hpc/xpmem \
@@ -130,6 +132,7 @@ They are explicit and building manually the necessary packages, however for prod
130132
&& cd .. \
131133
&& rm -rf osu-micro-benchmarks-v${osu_version} osu-micro-benchmarks-v${osu_version}.tar.gz
132134

135+
# Get rid of the stubs libraries, because at runtime the CUDA driver and libraries will be available
133136
RUN rm /etc/ld.so.conf.d/cuda_stubs.conf && ldconfig
134137
```
135138

0 commit comments

Comments
 (0)