Skip to content

Commit

Permalink
add (but do not build) HACC it is for powerpc only (#7)
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Co-authored-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch and vsoch committed Aug 11, 2023
1 parent 008f87b commit 3bb367e
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions hacc/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
ARG tag=latest
FROM ubuntu:${tag}
ENV DEBIAN_FRONTEND=noninteractive

## IMPORTANT: this is built for powerPC and we don't currently run it.

RUN apt-get update && \
apt-get install -y fftw3-dev fftw3 pdsh libfabric-dev libfabric1 \
openssh-client openssh-server \
dnsutils telnet strace cmake git g++ \
mpich unzip bzip2

# Run command is usually:
# see https://asc.llnl.gov/sites/asc/files/2020-09/coral-hacc-benchmark-summary-v1.7.pdf
# hacc_tpm indat cmbM000.tf m000 INIT ALL_TO_ALL -w -R -N 512 -t GEOMETRY
# Geometry example for small: np = ng = 160, physical box = 126, -t 1x1x1
# hacc_tpm indat cmbM000.tf m000 INIT ALL_TO_ALL -w -R -N 512 -t np = ng = 160, physical box = 126, -t 1x1x1

# install hacc
WORKDIR /opt/
RUN wget https://asc.llnl.gov/sites/asc/files/2020-09/HACC_1_7.zip && \
unzip HACC_1_7.zip && \
rm -rf __MACOSX/ && \
bzip2 -d HACC_1_7.tar.bz2 && \
tar -xvf HACC_1_7.tar

# Hack for ssh for now...
RUN echo " LogLevel ERROR" >> /etc/ssh/ssh_config && \
echo " StrictHostKeyChecking no" >> /etc/ssh/ssh_config && \
echo " UserKnownHostsFile=/dev/null" >> /etc/ssh/ssh_config && \
cd /root && \
mkdir -p /run/sshd && \
ssh-keygen -t rsa -N "" -f /root/.ssh/id_rsa && chmod og+rX . && \
cd .ssh && cat id_rsa.pub > authorized_keys && chmod 644 authorized_keys

EXPOSE 22
WORKDIR /opt/HACC_1_7

0 comments on commit 3bb367e

Please sign in to comment.