Skip to content

Commit 48fba29

Browse files
committed
add gitlab ci yml scripts for lanl systems
and for jlse if it one day supportx external mirroring Signed-off-by: Howard Pritchard <hppritcha@gmail.com>
1 parent c40537c commit 48fba29

File tree

3 files changed

+234
-0
lines changed

3 files changed

+234
-0
lines changed

.ci/lanl/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
ECP-CI at OLCF
2+
--------------
3+
#[![pipeline status](https://code.ornl.gov/ecpcitest/ompi-x/naughtont3-ompi/badges/olcf-ecp-ci/pipeline.svg)](https://code.ornl.gov/ecpcitest/ompi-x/naughtont3-ompi/-/commits/olcf-ecp-ci)
4+
5+
CI Tests that run on LANL resources.
6+
7+
Brief summary:
8+
- OMPI GitHub mirrored at LANL GitLab
9+
- Builds source tree
10+
- autogen, configure, make install, make check, make examples
11+
- Runs tests in batch allocation with single node
12+
- The CI status/results are reported back to GitHub via a python script (`build-status.py`)
13+
- See also: https://ecp-ci.gitlab.io/docs/guides/build-status-gitlab.html
14+
- Note: The `BUILDSTATUS_TOKEN` is defined in GitLab and contains a
15+
personal access token (`repo:status`) for the upstream GitHub user.
16+

.ci/lanl/gitlab-ci-darwin.yml

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
stages:
2+
- build
3+
- test
4+
5+
build:intel:
6+
stage: build
7+
tags: [darwin-slurm]
8+
script:
9+
- module load intel
10+
- git submodule update --init
11+
- ./autogen.pl
12+
- ./configure CC=icc FC=ifort CXX=icpc --prefix=$PWD/install_test --with-libevent=internal
13+
- make -j 8 install
14+
- make check
15+
- export PATH=$PWD/install_test/bin:$PATH
16+
- cd examples
17+
- make
18+
variables:
19+
SCHEDULER_PARAMETERS: "-pskylake-gold -t 1:00:00 -N 1 --ntasks-per-node=16"
20+
artifacts:
21+
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
22+
untracked: true
23+
paths:
24+
- examples
25+
- install_test
26+
expire_in: 1 week
27+
28+
build:gnu:
29+
stage: build
30+
tags: [darwin-slurm]
31+
script:
32+
- module load gcc
33+
- git submodule update --init
34+
- ./autogen.pl
35+
- ./configure --prefix=$PWD/install_test --with-libevent=internal
36+
- make -j 8 install
37+
- make check
38+
- export PATH=$PWD/install_test/bin:$PATH
39+
- cd examples
40+
- make
41+
variables:
42+
SCHEDULER_PARAMETERS: "-pskylake-gold -t 1:00:00 -N 1 --ntasks-per-node=16"
43+
artifacts:
44+
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
45+
untracked: true
46+
paths:
47+
- examples
48+
- install_test
49+
expire_in: 1 week
50+
51+
test:intel:
52+
stage: test
53+
tags: [darwin-slurm]
54+
dependencies:
55+
- build:intel
56+
needs: ["build:intel"]
57+
script:
58+
- pwd
59+
- ls
60+
- module load intel
61+
- export PATH=$PWD/install_test/bin:$PATH
62+
- which mpirun
63+
- cd examples
64+
- mpirun -np 4 hostname
65+
- mpirun -np 4 ./hello_c
66+
- mpirun -np 4 ./ring_c
67+
- mpirun -np 4 ./hello_mpifh
68+
- mpirun -np 4 ./ring_mpifh
69+
- mpirun -np 4 ./hello_usempi
70+
- mpirun -np 4 ./ring_usempi
71+
- mpirun -np 4 ./hello_usempif08
72+
- mpirun -np 4 ./ring_usempif08
73+
- mpirun -np 4 ./connectivity_c
74+
variables:
75+
SCHEDULER_PARAMETERS: "-pskylake-gold -t 1:00:00 -N 1 --ntasks-per-node=16"
76+
artifacts:
77+
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
78+
expire_in: 1 week
79+
80+
test:gnu:
81+
stage: test
82+
tags: [dawrin-slurm]
83+
dependencies:
84+
- build:gnu
85+
needs: ["build:gnu"]
86+
script:
87+
- pwd
88+
- ls
89+
- module load gcc
90+
- export PATH=$PWD/install_test/bin:$PATH
91+
- which mpirun
92+
- cd examples
93+
- mpirun -np 4 hostname
94+
- mpirun -np 4 ./hello_c
95+
- mpirun -np 4 ./ring_c
96+
- mpirun -np 4 ./hello_mpifh
97+
- mpirun -np 4 ./ring_mpifh
98+
- mpirun -np 4 ./hello_usempi
99+
- mpirun -np 4 ./ring_usempi
100+
- mpirun -np 4 ./hello_usempif08
101+
- mpirun -np 4 ./ring_usempif08
102+
- mpirun -np 4 ./connectivity_c
103+
variables:
104+
SCHEDULER_PARAMETERS: "-pskylake-gold -t 1:00:00 -N 1 --ntasks-per-node=16"
105+
artifacts:
106+
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
107+
expire_in: 1 week
108+
109+

.ci/lanl/gitlab-ci-jlse.yml

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
stages:
2+
- build
3+
- test
4+
5+
build:intel:
6+
stage: build
7+
tags: [jlselogin3_shell]
8+
script:
9+
- module load intel
10+
- git submodule update --init
11+
- ./autogen.pl
12+
- ./configure CC=icc FC=ifort CXX=icpc --prefix=$PWD/install_test --with-libevent=internal
13+
- make -j 8 install
14+
- make check
15+
- export PATH=$PWD/install_test/bin:$PATH
16+
- cd examples
17+
- make
18+
artifacts:
19+
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME_intel"
20+
untracked: true
21+
paths:
22+
- examples
23+
- install_test
24+
expire_in: 1 week
25+
only: [merge_requests]
26+
27+
build:gnu:
28+
stage: build
29+
tags: [jlselogin3_shell]
30+
script:
31+
- module load gcc
32+
- git submodule update --init
33+
- ./autogen.pl
34+
- ./configure --prefix=$PWD/install_test --with-libevent=internal
35+
- make -j 8 install
36+
- make check
37+
- export PATH=$PWD/install_test/bin:$PATH
38+
- cd examples
39+
- make
40+
artifacts:
41+
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
42+
untracked: true
43+
paths:
44+
- examples
45+
- install_test
46+
expire_in: 1 week
47+
only: [merge_requests]
48+
49+
test:intel:
50+
stage: test
51+
tags:
52+
- jlselogin3_batch-03
53+
dependencies:
54+
- build:intel
55+
needs: ["build:intel"]
56+
script:
57+
- pwd
58+
- ls
59+
- module load intel
60+
- export PATH=$PWD/install_test/bin:$PATH
61+
- which mpirun
62+
- cd examples
63+
- mpirun -np 4 hostname
64+
- mpirun -np 4 ./hello_c
65+
- mpirun -np 4 ./ring_c
66+
- mpirun -np 4 ./hello_mpifh
67+
- mpirun -np 4 ./ring_mpifh
68+
- mpirun -np 4 ./hello_usempi
69+
- mpirun -np 4 ./ring_usempi
70+
- mpirun -np 4 ./hello_usempif08
71+
- mpirun -np 4 ./ring_usempif08
72+
- mpirun -np 4 ./connectivity_c
73+
variables:
74+
JLSE_SCHEDULER_PARAMETERS: "-qiris -t 1:00:00 -n 1"
75+
artifacts:
76+
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
77+
expire_in: 1 week
78+
only: [merge_requests]
79+
80+
test:gnu:
81+
stage: test
82+
tags:
83+
- jlselogin3_batch-03
84+
dependencies:
85+
- build:gnu
86+
needs: ["build:gnu"]
87+
script:
88+
- pwd
89+
- ls
90+
- module load gcc
91+
- export PATH=$PWD/install_test/bin:$PATH
92+
- which mpirun
93+
- cd examples
94+
- mpirun -np 4 hostname
95+
- mpirun -np 4 ./hello_c
96+
- mpirun -np 4 ./ring_c
97+
- mpirun -np 4 ./hello_mpifh
98+
- mpirun -np 4 ./ring_mpifh
99+
- mpirun -np 4 ./hello_usempi
100+
- mpirun -np 4 ./ring_usempi
101+
- mpirun -np 4 ./hello_usempif08
102+
- mpirun -np 4 ./ring_usempif08
103+
- mpirun -np 4 ./connectivity_c
104+
variables:
105+
JLSE_SCHEDULER_PARAMETERS: "-qiris -t 1:00:00 -n 1"
106+
artifacts:
107+
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
108+
expire_in: 1 week
109+
only: [merge_requests]

0 commit comments

Comments
 (0)