forked from nwchemgit/nwchem
-
Notifications
You must be signed in to change notification settings - Fork 2
150 lines (146 loc) · 4.88 KB
/
github_actions_archs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
name: NWChem_CI_archs
on:
push:
paths-ignore:
- .gitlab-ci.yml
pull_request:
release:
schedule:
- cron: '0 0 * * SUN'
repository_dispatch:
types: [backend_automation]
workflow_dispatch:
jobs:
build_archs:
if: |
github.event_name == 'schedule' ||
(!contains(github.event.head_commit.message, 'ci skip') && (contains(github.event.head_commit.message, 'do_extra_archs')||github.event_name == 'workflow_dispatch'))
runs-on: ubuntu-latest
strategy:
matrix:
include:
- arch: aarch64
distro_short: ubuntu
distro: ubuntu20.04
ftarget: " TARGET=ARMV8"
blas: "build_openblas"
scalapack: "off"
nwchem_modules: "tinyqmpw"
mpi_impl: "openmpi"
fc: "gfortran"
- arch: aarch64
distro_short: ubuntu
distro: ubuntu20.04
ftarget: " TARGET=ARMV8"
blas: "build_openblas"
scalapack: "off"
nwchem_modules: "tinyqmpw"
mpi_impl: "mpich"
fc: "nvfortran"
- arch: ppc64le
distro_short: ubuntu
distro: ubuntu20.04
blas: "build_openblas"
scalapack: "on"
ftarget: " TARGET=POWER8"
nwchem_modules: "tinyqmpw"
mpi_impl: "openmpi"
fc: "gfortran"
fail-fast: false
steps:
- name: Setup cache
id: setup-cache
uses: actions/cache@v3
with:
path: |
~/cache
key: ${{ runner.os }}-${{ matrix.mpi_impl}}-${{ matrix.distro}}-${{ matrix.arch}}-nwchem-v009
- uses: actions/checkout@v4
name: Checkout
with:
fetch-depth: 40
- name: tools_checkout
run: |
ls -l
cd src/tools
./get-tools-github
cd ..
make USE_INTERNALBLAS=y nwchem_config NWCHEM_MODULES="${{ matrix.nwchem_modules }}"
- name: reconfig when needed
if: steps.setup-cache.outputs.cache-hit != 'true'
run: |
cd src
make USE_INTERNALBLAS=y nwchem_config NWCHEM_MODULES="nwdft driver solvation"
- uses: uraimo/run-on-arch-action@v2
name: Build and Test NWChem
id: build
with:
arch: ${{ matrix.arch }}
distro: ${{ matrix.distro }}
# Not required, but speeds up builds
githubToken: ${{ github.token }}
# Create cached/volume directories on host
setup: |
mkdir -p ~/cache
# Mount the ~/cache directory as ..nwchem/cache in the container
dockerRunArgs: |
--volume "${HOME}/cache:/home/runner/work/nwchem/nwchem/cache"
#environment
env: |
FORCETARGET: ${{ matrix.ftarget }}
COMEX_MAX_NB_OUTSTANDING: 4
SIMINT_MAXAM: 4
MPI_IMPL: ${{ matrix.mpi_impl }}
ARMCI_NETWORK: MPI-TS
FC: ${{ matrix.fc }}
DISTR: ${{ matrix.distro_short }}
BLAS_ENV: ${{ matrix.blas }}
SCALAPACK_ENV: ${{ matrix.scalapack }}
DEBIAN_FRONTEND: noninteractive
shell: /bin/sh
install: |
case "${{ matrix.distro }}" in
ubuntu*|jessie|stretch|buster)
apt-get update -q -y
ln -fs /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
export DEBIAN_FRONTEND=noninteractive
apt-get install -y tzdata apt-utils
dpkg-reconfigure --frontend noninteractive tzdata
DEBIAN_FRONTEND=noninteractive apt-get install -q -y sudo git gfortran curl wget unzip perl rsync python3-dev python-dev cmake libnuma1
;;
fedora*)
dnf -y update
dnf -y install git which sudo curl wget unzip openblas-serial64 perl python3-devel gcc-gfortran unzip cmake patch time
;;
esac
run: |
pwd
df
ls -lrt
uname -a
lscpu
./travis/build_env.sh
echo ' done build_env '
mkdir -p cache/libext/lib || true
mkdir -p src/libext/lib || true
ls -Rl src/libext || true
ls -lRrt cache
df cache
rsync -av cache/libext/lib/* src/libext/lib/. || true
echo "cache fetched"
ls -Rl cache/libext/lib/ ||true
./travis/compile_nwchem.sh
echo ' done compiling'
rsync -av src/libext/lib/* cache/libext/lib/. || true
echo "cache stored"
ls -l cache/libext/lib/
./travis/run_qas.sh
- name: Cache check
run: |
pwd
echo HOME is $HOME || true
ls -l ~/ || true
ls -Rl ~/cache || true
ls -l ~/ || true
ls -l ~/work/ || true
ls -l ~/work/nwchem || true