forked from quantumz-io/oneSolver
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
50 lines (46 loc) · 1.2 KB
/
.gitlab-ci.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
image: intel/oneapi-hpckit:latest
stages:
- build
- test
- profile
onesolver-build:
stage: build
tags:
- oneapi
before_script:
- apt-get install -y libboost-all-dev > /dev/null
script:
- mkdir build
- cd build
- cmake ..
- cmake --build .
artifacts:
paths:
- ./build/src/one-solver-anneal
- ./build/src/one-solver-exhaustive
- ./build/tests/main-test
onesolver-test:
stage: test
tags:
- oneapi
before_script:
- apt-get install -y libboost-all-dev > /dev/null
script:
- ./build/tests/main-test
dependencies:
- onesolver-build
onesolver-benchmark:
stage: profile
tags:
- oneapi
before_script:
- apt-get install -y libboost-all-dev > /dev/null
script:
- cd ./benchmarks/exhaustive_search
- for i in `seq 18 25`; do ../../build/src/one-solver-exhaustive --input examples/mvp$i.qubo --output ret$i.cpu.csv --device=cpu | tee -a results.txt ; done
- for i in `seq 18 21`; do ../../build/src/one-solver-exhaustive --input examples/mvp$i.qubo --output ret$i.gpu.csv --device=gpu | tee -a results.txt ; done
artifacts:
paths:
- ./benchmarks/exhaustive_search/results.txt
dependencies:
- onesolver-build