Skip to content

Commit

Permalink
shm=256m
Browse files Browse the repository at this point in the history
  • Loading branch information
edoapra committed Mar 19, 2022
1 parent 1e7f4cb commit d84745f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/nwchem-dev.gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
uses: docker/build-push-action@v2
with:
push: ${{ github.actor == github.repository_owner }}
shm-size: 256m
context: ${{ matrix.folder }}
platforms: ${{ matrix.archs }}
tags: ghcr.io/${{ github.actor }}/${{ matrix.folder }}:latest
Expand All @@ -63,7 +64,7 @@ jobs:
umask -S
svn export https://github.com/nwchemgit/nwchem/trunk/QA >& svnout.log
cd QA
docker run --rm \
docker run --shm-size 256m --rm \
-e NWCHEM_EXECUTABLE=/opt/nwchem/bin/nwchem --entrypoint='/opt/nwchem/QA/runtests.mpi.unix' \
-v `pwd`:/opt/nwchem/QA ghcr.io/${{ github.actor }}/${{ matrix.folder }} \
procs 2 tce_n2
14 changes: 6 additions & 8 deletions nwchem-dev.gpu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ ARG NWCHEM_MODULES="tce" \
IPCCSD=Y \
CUDA_VERSION_MAJOR=11 \
CUDA_VERSION_MINOR=6 \
# PATH=/usr/bin:/bin:/usr/sbin:/sbin:/opt/nwchem/bin \
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/cuda-"$CUDA_VERSION_MAJOR"."$CUDA_VERSION_MINOR"/bin:/opt/nwchem/bin \
LD_LIBRARY_PATH=/usr/local/cuda-"$CUDA_VERSION_MAJOR"."$CUDA_VERSION_MINOR"/lib64 \
TCE_CUDA=Y \
Expand Down Expand Up @@ -86,18 +85,17 @@ RUN apt-get update \
# && make nwchem_config && make FDEBUG="-O1 -g -fbacktrace" FOPTIMIZE="-O2 -g -fbacktrace" V=-1 -j3 \
# && ../contrib/getmem.nwchem 1000 || true \
&& make nwchem_config && make CUDA=nvcc FDEBUG="-O1 -g -fbacktrace" FOPTIMIZE="-O2 -g -fbacktrace" V=-1 -j3 \
&& cd tools/build ;make clean; make CFLAGS="-O1 -g" -j2 \
&& cd $NWCHEM_TOP/src \
&& CUDA=nvcc ../contrib/getmem.nwchem 1000 || true \
&& ldd ../bin/LINUX64/nwchem \
# QA tests
# && cd .. \
# && if [[ $NWCHEM_TARGET == "LINUX64" ]]; then SKIP_CACHE=1 OMPI_ALLOW_RUN_AS_ROOT=1 OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 \
# NWCHEM_EXECUTABLE=`pwd`/bin/$NWCHEM_TARGET/nwchem ./travis/run_qas.sh ; fi \
# && cd src \
&& cd .. \
&& if [[ $NWCHEM_TARGET == "LINUX64" ]]; then SKIP_CACHE=1 OMPI_ALLOW_RUN_AS_ROOT=1 OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 \
NWCHEM_EXECUTABLE=`pwd`/bin/$NWCHEM_TARGET/nwchem ./travis/run_qas.sh ; fi \
&& cd src \
#clean unnecessary source to reduce docker size
# && rm -rf tce tools nwdft NWints geom symmetry util nwxc ddscf lapack blas rism argos peigs rmdft gradients symmetry property smd lucia dplot propery hessian ccsd mp2_grad moints cafe analyz dimqm /opt/nwchem/lib libext/scalapack libext/openblas develop ../QA ../contrib ../examples ../.git ../travis ../web nwpw/nwpwlib/nwpwxc rdmft ../doc libext/libxc/libxc* /tmp/libext || true \
# && strip ../bin/$NWCHEM_TARGET/nwchem \
&& rm -rf tce tools nwdft NWints geom symmetry util nwxc ddscf lapack blas rism argos peigs rmdft gradients symmetry property smd lucia dplot propery hessian ccsd mp2_grad moints cafe analyz dimqm /opt/nwchem/lib libext/scalapack libext/openblas develop ../QA ../contrib ../examples ../.git ../travis ../web nwpw/nwpwlib/nwpwxc rdmft ../doc libext/libxc/libxc* /tmp/libext || true \
&& strip ../bin/$NWCHEM_TARGET/nwchem \
&& ln -sf ../bin/$NWCHEM_TARGET/nwchem ../bin/nwchem \
#clean unnecessary packages
&& DEBIAN_FRONTEND=noninteractive apt-get -y install localepurge \
Expand Down

0 comments on commit d84745f

Please sign in to comment.