1515 # (to be used in any subsequent compilation and run jobs on said image)
1616 runs-on : ubuntu-latest
1717 container : ursg/vlasiator_ci:20230220_1
18-
18+
1919 steps :
2020 - name : Setup libraries dir
2121 run : |
@@ -25,26 +25,20 @@ jobs:
2525 cd library-build
2626 - name : Build phiprof
2727 run : |
28- git clone https://github.com/fmihpc/phiprof/
28+ git clone https://github.com/fmihpc/phiprof/
2929 cd phiprof/src
3030 make -j 4 CCC=mpic++
3131 cp ../include/* $GITHUB_WORKSPACE/libraries/include
3232 cp ../lib/* $GITHUB_WORKSPACE/libraries/lib
3333 cd ../..
3434 - name : Build VLSV
3535 run : |
36- git clone https://github.com/fmihpc/vlsv.git
36+ git clone https://github.com/fmihpc/vlsv.git
3737 cd vlsv
3838 make
3939 cp libvlsv.a $GITHUB_WORKSPACE/libraries/lib
4040 cp *.h $GITHUB_WORKSPACE/libraries/include
4141 cd ..
42- - name : Download vectorclass
43- run : |
44- git clone https://github.com/vectorclass/version1
45- git clone https://github.com/vectorclass/add-on
46- cp add-on/vector3d/vector3d.h version1/
47- cp version1/*.h $GITHUB_WORKSPACE/libraries/include
4842 - name : Build papi
4943 run : |
5044 git clone https://github.com/icl-utk-edu/papi
8377 steps :
8478 - name : Submit library job
8579 run : |
86- srun --interactive -p arriesgado-jammy -J vlasiator-libs --pty -t 01:00:00 bash -lc 'module load openmpi; cp ~/vlasiator/build_libraries.sh .; ./build_libraries.sh arriesgado'
80+ srun --interactive -p arriesgado-jammy -J vlasiator-libs -n 1 -c 4 - -pty -t 01:00:00 bash -lc 'module load openmpi; cp ~/vlasiator/build_libraries.sh .; ./build_libraries.sh arriesgado'
8781 - name : Build libraries tar
8882 run : tar -czvf libraries-arriesgado.tar.gz libraries-arriesgado/
8983 - name : Upload libraries as artifact
10296
10397 steps :
10498 - name : Checkout source
105- uses : actions/checkout@v3
106- with :
99+ uses : actions/checkout@v3
100+ with :
107101 submodules : true
108102 - name : Download libraries
109103 uses : actions/download-artifact@v3
@@ -119,17 +113,22 @@ jobs:
119113 # - name: Compile vlasiator (Release build)
120114 # run: |
121115 # srun -M carrington --job-name release_compile --interactive --nodes=1 -n 1 -c 16 --mem=40G -p short -t 0:10:0 bash -c 'module purge; module load GCC/11.2.0; module load OpenMPI/4.1.1-GCC-11.2.0 ; module load PMIx/4.1.0-GCCcore-11.2.0; module load PAPI/6.0.0.1-GCCcore-11.2.0; export VLASIATOR_ARCH=carrington_gcc_openmpi; make clean; make -j 16'
122-
123-
116+
117+
124118 build_testpackage :
125119 # Build Vlasiator with testpackage flags, on the carrington cluster
126120 # (for subsequent running of the integration test package)
127121 runs-on : carrington
128122
129123 steps :
124+ - name : Clean workspace
125+ run : |
126+ rm -rf libraries library-build testpackage
127+ rm -f libraries.tar.zst dtestpackage_check_description.txt testpackage-output.tar.gz metrics.txt stdout.txt stderr.txt testpackage_output_variables.txt
128+ rm -f *.xml
130129 - name : Checkout source
131130 uses : actions/checkout@v3
132- with :
131+ with :
133132 submodules : true
134133 - name : Make clean
135134 run : VLASIATOR_ARCH=carrington_gcc_openmpi make clean
@@ -159,8 +158,8 @@ jobs:
159158
160159 steps :
161160 - name : Checkout source
162- uses : actions/checkout@v3
163- with :
161+ uses : actions/checkout@v3
162+ with :
164163 submodules : true
165164 - name : Download libraries
166165 uses : actions/download-artifact@v3
@@ -174,7 +173,7 @@ jobs:
174173 run : VLASIATOR_ARCH=arriesgado make clean
175174 - name : Compile vlasiator (RISC-V)
176175 run : |
177- srun --interactive -p arriesgado-jammy -J vlasiator_build --pty -t 01:00:00 bash -lc 'module load boost papi openmpi; export VLASIATOR_ARCH=arriesgado; make -j4'
176+ srun --interactive -p arriesgado-jammy -J vlasiator_build -n 1 -c 4 - -pty -t 01:00:00 bash -lc 'module load boost papi openmpi; export VLASIATOR_ARCH=arriesgado; make -j4'
178177 - name : Upload riscv binary
179178 uses : actions/upload-artifact@v3
180179 with :
@@ -185,11 +184,16 @@ jobs:
185184 build_tools :
186185 # Build vlsvdiff and vlsvextract for testpackage use
187186 runs-on : carrington
188-
187+
189188 steps :
189+ - name : Clean workspace
190+ run : |
191+ rm -rf libraries library-build testpackage
192+ rm -f libraries.tar.zst dtestpackage_check_description.txt testpackage-output.tar.gz metrics.txt stdout.txt stderr.txt testpackage_output_variables.txt
193+ rm -f *.xml
190194 - name : Checkout source
191- uses : actions/checkout@v3
192- with :
195+ uses : actions/checkout@v3
196+ with :
193197 submodules : true
194198 - uses : ursg/gcc-problem-matcher@master
195199 - name : Make clean
@@ -216,7 +220,7 @@ jobs:
216220 steps :
217221 - name : Checkout source
218222 uses : actions/checkout@v3
219- with :
223+ with :
220224 submodules : true
221225 - name : Download testpackage binary
222226 uses : actions/download-artifact@v3
@@ -256,10 +260,10 @@ jobs:
256260 # Build IonosphereSolverTests miniApp (currently broken)
257261 runs-on : carrington
258262 # container: ursg/vlasiator_ci:20230220_1
259- needs : build_libraries
263+ needs : [ build_libraries]
260264 steps :
261265 - name : Checkout source
262- uses : actions/checkout@v3
266+ uses : actions/checkout@v3
263267 with :
264268 submodules : true
265269 # - name: Download libraries
@@ -283,4 +287,3 @@ jobs:
283287 mini-apps/ionosphereSolverTests/differentialFlux
284288 mini-apps/ionosphereSolverTests/sigmaProfiles
285289 if-no-files-found : error
286-
0 commit comments