Skip to content

Commit

Permalink
Fix broken Dockerfile due to change in oneCCL deps paths (#3492)
Browse files Browse the repository at this point in the history
Signed-off-by: Francisco M Casares <francisco.m.casares@intel.com>
  • Loading branch information
francares committed Mar 29, 2022
1 parent 4b8cc49 commit 12f9f9a
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions Dockerfile.test.cpu
Expand Up @@ -102,19 +102,7 @@ RUN if [[ ${MPI_KIND} == "OpenMPI" ]]; then \
wget --progress=dot:mega -O /tmp/oneccl.tar.gz https://github.com/oneapi-src/oneCCL/archive/${CCL_PACKAGE}.tar.gz && \
cd /tmp && tar -zxf oneccl.tar.gz && \
mkdir oneCCL-${CCL_PACKAGE}/build && cd oneCCL-${CCL_PACKAGE}/build && cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/oneccl -DCMAKE_BUILD_TYPE=Release && make -j install && \
cp /tmp/oneCCL-${CCL_PACKAGE}/mpi/include/*.h /usr/local/oneccl/include && \
cp /tmp/oneCCL-${CCL_PACKAGE}/mpi/bin/mpicc /usr/local/oneccl/bin && \
chmod +x /usr/local/oneccl/bin/mpicc && \
cp /tmp/oneCCL-${CCL_PACKAGE}/mpi/bin/mpicxx /usr/local/oneccl/bin && \
chmod +x /usr/local/oneccl/bin/mpicxx && \
cp /tmp/oneCCL-${CCL_PACKAGE}/mpi/bin/mpigcc /usr/local/oneccl/bin && \
chmod +x /usr/local/oneccl/bin/mpigcc && \
cp /tmp/oneCCL-${CCL_PACKAGE}/mpi/bin/mpigxx /usr/local/oneccl/bin && \
chmod +x /usr/local/oneccl/bin/mpigxx && \
cp /tmp/oneCCL-${CCL_PACKAGE}/mpi/lib/libmpicxx.so /usr/local/oneccl/lib && \
chmod +x /usr/local/oneccl/lib/libmpicxx.so && \
cp /tmp/oneCCL-${CCL_PACKAGE}/mpi/lib/libmpifort.so /usr/local/oneccl/lib && \
chmod +x /usr/local/oneccl/lib/libmpifort.so && \
rm /tmp/oneccl.tar.gz && rm -Rf /tmp/oneCCL-${CCL_PACKAGE} && \
sed -i 's/if \[ -z \"\${I_MPI_ROOT}\" \]/if [ -z \"${I_MPI_ROOT:-}\" ]/g' /usr/local/oneccl/env/setvars.sh && \
sed -i 's/ \$1/ \${1:-}/g' /usr/local/oneccl/env/setvars.sh && \
echo ". /usr/local/oneccl/env/setvars.sh" > /oneccl_env && \
Expand Down

0 comments on commit 12f9f9a

Please sign in to comment.