Skip to content

Commit

Permalink
Merge pull request #21 from converged-computing/test/hpc-toolkit-spack
Browse files Browse the repository at this point in the history
test basic hpctoolkit with spack
  • Loading branch information
vsoch committed Sep 3, 2023
2 parents 3c68515 + 167cdba commit 931b71d
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker-builds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
["quicksilver", "ghcr.io/converged-computing/metric-quicksilver:latest"],
["ovis-hpc", "ghcr.io/converged-computing/metric-ovis-hpc:latest"],
["kripke", "ghcr.io/converged-computing/metric-kripke:latest"],
["hpctoolkit-spack", "ghcr.io/converged-computing/metric-hpctoolkit-spack:latest"],
["hpctoolkit", "ghcr.io/converged-computing/metric-hpctoolkit:latest"],
["bdas", "ghcr.io/converged-computing/metric-bdas:latest"],
["laghos", "ghcr.io/converged-computing/metric-laghos:latest"],
Expand Down
33 changes: 33 additions & 0 deletions hpctoolkit-spack/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
FROM ubuntu

# see http://hpctoolkit.org/software-instructions.html
RUN apt-get update && apt-get install -y \
openssh-client openssh-server \
git \
file \
build-essential \
gfortran \
bzip2 \
g++ gcc \
diffutils \
python3-dev \
curl \
wget

RUN git clone --depth 1 https://github.com/spack/spack.git && \
git clone https://gitlab.com/hpctoolkit/hpctoolkit.git && \
cp hpctoolkit/spack/packages.yaml spack/etc/spack/

ENV PATH=/spack/bin:$PATH
RUN spack config update packages -y && \
spack compiler find
COPY ./compilers.yaml /root/.spack/linux/compilers.yaml
RUN spack install hpctoolkit

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
14 changes: 14 additions & 0 deletions hpctoolkit-spack/compilers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
compilers:
- compiler:
spec: gcc@=11.4.0
paths:
cc: /usr/bin/gcc
cxx: /usr/bin/g++
f77: /usr/bin/f77
fc: /usr/bin/f77
flags: {}
operating_system: ubuntu22.04
target: x86_64
modules: []
environment: {}
extra_rpaths: []

0 comments on commit 931b71d

Please sign in to comment.