-
Notifications
You must be signed in to change notification settings - Fork 37
/
Jenkinsfile
47 lines (45 loc) · 1.39 KB
/
Jenkinsfile
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
// SPDX-FileCopyrightText: 2023 Intel Corporation
//
// SPDX-License-Identifier: MIT
def SAMPLES_REPO = "https://github.com/oneapi-src/oneAPI-samples.git"
def SAMPLES_TAG = "2023.2.0"
pipeline {
agent { docker { image 'intel/oneapi-hpckit' } }
stages {
stage('checkout samples') {
steps {
dir("oneAPI-samples") {
checkout scm: [$class: 'GitSCM',
userRemoteConfigs: [[url: "${SAMPLES_REPO}"]],
branches: [[name: "${SAMPLES_TAG}"]]],
poll: false
}
}
}
stage ('build') {
parallel {
stage('build DPC++') {
steps {
dir ("oneAPI-samples/DirectProgramming/C++SYCL/DenseLinearAlgebra/vector-add") {
sh "mkdir build && cd build && cmake .. && make cpu-gpu && ./vector-add-buffers"
}
}
}
stage('build C++') {
steps {
dir ("oneAPI-samples/DirectProgramming/C++/CompilerInfrastructure/Intrinsics") {
sh "make && make run && make clean && make CC='icx -msse3' && make run"
}
}
}
stage('build Fortran') {
steps {
dir ("oneAPI-samples/DirectProgramming/Fortran/CombinationalLogic/openmp-primes") {
sh "make && make run && make clean && make FC=ifx && make run"
}
}
}
}
}
}
}