-
Notifications
You must be signed in to change notification settings - Fork 16
118 lines (93 loc) · 3.39 KB
/
autotest.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
name: Demo simulation test
on:
push:
branches: [ stable , dev ]
pull_request:
branches: [ stable , dev ]
jobs:
new_namelist_input_10k:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install dependencies
run: sudo apt-get install -y wget gfortran gcc g++; gcc --version; g++ --version; gfortran --version;
- name: configure
run: >
./configure --with-par=b1m --enable-simd=sse --enable-mcmodel=large --disable-mpi --disable-gpu;
- name: make
run: make clean; make;
- name: prepare simulation
run: >
mkdir autotest;
cp -p ./build/nbody6++.sse ./autotest/;
cp -p ./examples/input_files/N100k.inp ./autotest/;
cp -p ./examples/input_files/dat.10 ./autotest/;
cd autotest;
sed -r 's/\bN=[0-9]*/N=10000/g' N100k.inp | sed -r 's/\bTCRIT=[0-9]*/TCRIT=1/g' > N10k_1nbtime.inp ;
pwd; ls -alh;
- name: simulation
run: >
ulimit -s unlimited;
cd autotest;
export OMP_NUM_THREADS=$((`grep -c processor /proc/cpuinfo` < 32 ? `grep -c processor /proc/cpuinfo` : 32));
export execname=`ls nbody6++*`;
./$execname < N10k_1nbtime.inp;
old_input_transform_1k:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install dependencies
run: sudo apt-get install -y wget gfortran gcc g++; gcc --version; g++ --version; gfortran --version;
- name: configure
run: >
./configure --with-par=b1m --enable-simd=sse --enable-mcmodel=large --disable-mpi --disable-gpu;
- name: make
run: make clean; make;
- name: prepare simulation
run: >
mkdir autotest;
cp -p ./build/nbody6++.sse ./autotest/;
cp -p ./examples/input_files/@input-transform ./autotest/;
cd autotest;
wget https://github.com/wukai-meow/garage/raw/main/Nbody6ppGPU-inputfile/kai_1k_no_dat-10/1k.inp;
mv 1k.inp 1k.inp.old;
bash @input-transform 1k;
pwd; ls -alh;
- name: simulation
run: >
ulimit -s unlimited;
cd autotest;
export OMP_NUM_THREADS=$((`grep -c processor /proc/cpuinfo` < 32 ? `grep -c processor /proc/cpuinfo` : 32));
export execname=`ls nbody6++*`;
./$execname < 1k.inp.new;
gcc9_old_1k:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install dependencies
run: sudo apt-get install -y wget gcc-9 g++-9 gfortran-9;
- name: configure
run: >
export CC=gcc-9;
export CXX=g++-9;
export FC=gfortran-9;
./configure --with-par=b1m --enable-simd=sse --enable-mcmodel=large --disable-mpi --disable-gpu;
- name: make
run: make clean; make;
- name: prepare simulation
run: >
mkdir autotest;
cp -p ./build/nbody6++.sse ./autotest/;
cp -p ./examples/input_files/@input-transform ./autotest/;
cd autotest;
wget https://github.com/wukai-meow/garage/raw/main/Nbody6ppGPU-inputfile/kai_1k_no_dat-10/1k.inp;
mv 1k.inp 1k.inp.old;
bash @input-transform 1k;
pwd; ls -alh;
- name: simulation
run: >
ulimit -s unlimited;
cd autotest;
export OMP_NUM_THREADS=$((`grep -c processor /proc/cpuinfo` < 32 ? `grep -c processor /proc/cpuinfo` : 32));
export execname=`ls nbody6++*`;
./$execname < 1k.inp.new;