Skip to content

Commit f33deb7

Browse files
Merge branch 'dev' into adjust_blocks_sysboundaries_setup
2 parents ab3db57 + d1f82b7 commit f33deb7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+342
-283
lines changed

.github/workflows/github-ci.yml

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
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
@@ -83,7 +77,7 @@ jobs:
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
@@ -102,8 +96,8 @@ jobs:
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-

.gitmodules

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@
22
path = submodules/fsgrid
33
url = git@github.com:fmihpc/fsgrid.git
44

5-
65
[submodule "submodules/dccrg"]
76
path = submodules/dccrg
8-
url = https://github.com/fmihpc/dccrg.git
7+
url = git@github.com:fmihpc/dccrg.git
8+
branch = vlasiator-version
9+
10+
[submodule "submodules/vectorclass"]
11+
path = submodules/vectorclass
12+
url = https://github.com/vectorclass/version2
13+
14+
[submodule "submodules/vectorclass-addon"]
15+
path = submodules/vectorclass-addon
16+
url = https://github.com/vectorclass/add-on

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
exclude: Doxyfile|libraries|Makefile|README|INSTALL|testpackage|doc|\.txt|\.tex|\.cfg|\.vtk|\.yml|\.clang-format|\.m$|\.sh|\.py
1+
exclude: Doxyfile|libraries|Makefile|README|INSTALL|testpackage|doc|\.txt|\.tex|\.cfg|\.vtk|\.clang-format|\.m$|\.sh|\.py
22

33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks

MAKE/Makefile.Freezer

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ LNK = mpic++
1313
ifeq ($(DISTRIBUTION_FP_PRECISION),SPF)
1414
#Single-precision
1515
VECTORCLASS = VEC8F_AGNER
16-
INC_VECTORCLASS = -I$(LIBRARY_PREFIX)/vectorclass
16+
INC_VECTORCLASS = -I ./submodules/vectorclass/ -I ./submodules/vectorclass-addon/vector3d/
1717
# VECTORCLASS = VEC8F_FALLBACK
1818
# INC_VECTORCLASS = -I$(LIBRARY_PREFIX)/../vlasiator/vlasovsolver
1919
else
2020
#Double-precision
2121
VECTORCLASS = VEC4D_AGNER
22-
INC_VECTORCLASS = -I$(LIBRARY_PREFIX)/vectorclass
22+
INC_VECTORCLASS = -I ./submodules/vectorclass/ -I ./submodules/vectorclass-addon/vector3d/
2323
# VECTORCLASS = VEC4D_FALLBACK
2424
# INC_VECTORCLASS = -I$(LIBRARY_PREFIX)/../vlasiator/vlasovsolver
2525
endif

MAKE/Makefile.carrington_gcc_openmpi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,5 +115,5 @@ LIB_PAPI = -lpapi
115115
INC_EIGEN = -isystem $(LIBRARY_PREFIX)/ -isystem $(LIBRARY_PREFIX)/Eigen/
116116
INC_FSGRID = -I./submodules/fsgrid/
117117
INC_DCCRG = -I./submodules/dccrg/
118-
INC_VECTORCLASS = -isystem $(LIBRARY_PREFIX)/vectorclass/
118+
INC_VECTORCLASS = -I ./submodules/vectorclass/ -I ./submodules/vectorclass-addon/vector3d/
119119

MAKE/Makefile.cubbli20

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ LIB_JEMALLOC = #-L$(LIBRARY_PREFIX)/lib -ljemalloc
5353

5454
ifeq ($(DISTRIBUTION_FP_PRECISION),SPF)
5555
#Single-precision
56-
INC_VECTORCLASS = -I$(LIBRARY_PREFIX)/version1
56+
INC_VECTORCLASS = -I ./submodules/vectorclass/ -I ./submodules/vectorclass-addon/vector3d/
5757
VECTORCLASS = VEC4F_FALLBACK
5858
else
5959
#Double-precision
60-
INC_VECTORCLASS = -I$(LIBRARY_PREFIX)/version1
60+
INC_VECTORCLASS = -I ./submodules/vectorclass/ -I ./submodules/vectorclass-addon/vector3d/
6161
VECTORCLASS = VEC4D_FALLBACK
6262
endif
6363

MAKE/Makefile.docker

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,5 @@ LIB_PAPI = -L$(LIBRARY_PREFIX)/papi/lib -lpapi
8989

9090
INC_EIGEN = -I/usr/include/eigen3
9191
INC_DCCRG = -I./submodules/dccrg
92-
INC_VECTORCLASS = -I$(LIBRARY_PREFIX)/vectorclass
92+
INC_VECTORCLASS = -I ./submodules/vectorclass/ -I ./submodules/vectorclass-addon/vector3d/
9393
INC_FSGRID = -I./submodules/fsgrid

MAKE/Makefile.github_actions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,4 @@ LIB_PROFILE = -I $(LIBRARY_PREFIX)/include ${GITHUB_WORKSPACE}/libraries/lib/lib
8484
INC_PROFILE =
8585
INC_TOPO =
8686

87+
INC_VECTORCLASS = -I ./submodules/vectorclass/ -I ./submodules/vectorclass-addon/vector3d/

MAKE/Makefile.hawk_gcc_mpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ LNK = mpicxx
2222
ifeq ($(DISTRIBUTION_FP_PRECISION),SPF)
2323
#Single-precision
2424
VECTORCLASS = VEC8F_AGNER
25-
INC_VECTORCLASS = -I$(LIBRARY_PREFIX)/vectorclass-version1
25+
INC_VECTORCLASS = -I ./submodules/vectorclass/ -I ./submodules/vectorclass-addon/vector3d/
2626
# VECTORCLASS = VEC8F_FALLBACK
2727
# INC_VECTORCLASS = -I$(HOME)/vlasiator/vlasovsolver
2828
else
2929
#Double-precision
3030
VECTORCLASS = VEC4D_AGNER
31-
INC_VECTORCLASS = -I$(LIBRARY_PREFIX)/vectorclass-version1
31+
INC_VECTORCLASS = -I ./submodules/vectorclass/ -I ./submodules/vectorclass-addon/vector3d/
3232
# VECTORCLASS = VEC4D_FALLBACK
3333
# VECTORCLASS = VEC8D_FALLBACK
3434
# INC_VECTORCLASS = -I$(HOME)/vlasiator/vlasovsolver
@@ -103,5 +103,5 @@ LIB_PAPI = -L/opt/hlrs/spack/rev-004_2020-06-17/papi/c048e224f-gcc-9.2.0-hxfnx7k
103103
INC_EIGEN = -I$(LIBRARY_PREFIX)/
104104
INC_DCCRG = -I./submodules/dccrg
105105
INC_FSGRID = -I./submodules/fsgrid
106-
INC_VECTORCLASS = -I$(LIBRARY_PREFIX)/vectorclass-version1
106+
INC_VECTORCLASS = -I ./submodules/vectorclass/ -I ./submodules/vectorclass-addon/vector3d/
107107

MAKE/Makefile.hawk_gcc_openmpi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ LIB_PAPI = -L/opt/hlrs/spack/rev-004_2020-06-17/papi/c048e224f-gcc-9.2.0-hxfnx7k
8585
INC_EIGEN = -I$(LIBRARY_PREFIX)/
8686
INC_DCCRG = -I./submodules/dccrg
8787
INC_FSGRID = -I./submodules/fsgrid
88-
INC_VECTORCLASS = -I$(LIBRARY_PREFIX)/vectorclass-version1
88+
INC_VECTORCLASS = -I ./submodules/vectorclass/ -I ./submodules/vectorclass-addon/vector3d/
8989

9090

9191

0 commit comments

Comments
 (0)