aboutsummaryrefslogtreecommitdiff
path: root/Jenkinsfile
blob: 5708addcfc6414129b1e083f04ca11943229c761 (plain)
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
pipeline {
    agent {
        label "purdue-cluster"
        }

    stages {
        parallel (
        "4.2 Tests" : {
        stage('4.2-simulator-build'){
            steps {
                sh 'source /home/tgrogers-raid/a/common/gpgpu-sim-setup/4.2_env_setup.sh &&\
                source `pwd`/setup_environment && \
                make -j'
            }
        }
        stage('4.2-simulations-build'){
            steps{
                sh 'source /home/tgrogers-raid/a/common/gpgpu-sim-setup/4.2_env_setup.sh &&\
                source `pwd`/setup_environment && \
                rm -rf gpgpu-sim_simulations && \
                git clone [email protected]:TimRogersGroup/gpgpu-sim_simulations.git && \
                cd gpgpu-sim_simulations && \
                git checkout purdue-cluster && \
                source ./benchmarks/src/setup_environment && \
                make -j -C ./benchmarks/src all'
            }
        }
        stage('4.2-rodinia-regress'){
            steps {
                sh 'source /home/tgrogers-raid/a/common/gpgpu-sim-setup/4.2_env_setup.sh &&\
                source `pwd`/setup_environment && \
                ./gpgpu-sim_simulations/util/job_launching/run_simulations.py -N regress && \
                ./gpgpu-sim_simulations/util/job_launching/monitor_func_test.py -v -N regress'
            }
        }
        }

        "8.0 Tests" : {
        stage('8.0-simulator-build'){
            steps {
                sh 'source /home/tgrogers-raid/a/common/gpgpu-sim-setup/8.0_env_setup.sh &&\
                source `pwd`/setup_environment && \
                make -j'
            }
        }
        stage('8.0-simulations-build'){
            steps{
                sh 'source /home/tgrogers-raid/a/common/gpgpu-sim-setup/8.0_env_setup.sh &&\
                source `pwd`/setup_environment && \
                rm -rf gpgpu-sim_simulations && \
                git clone [email protected]:TimRogersGroup/gpgpu-sim_simulations.git && \
                cd gpgpu-sim_simulations && \
                git checkout purdue-cluster && \
                source ./benchmarks/src/setup_environment && \
                make -j -C ./benchmarks/src all'
            }
        }
        stage('8.0-rodinia-regress'){
            steps {
                sh 'source /home/tgrogers-raid/a/common/gpgpu-sim-setup/8.0_env_setup.sh &&\
                source `pwd`/setup_environment && \
                ./gpgpu-sim_simulations/util/job_launching/run_simulations.py -N regress && \
                ./gpgpu-sim_simulations/util/job_launching/monitor_func_test.py -v -N regress'
            }
        }
        }

        )
    }
    post {
        always{
            emailext body: "See ${BUILD_URL}",
                recipientProviders: [[$class: 'CulpritsRecipientProvider'],
                    [$class: 'RequesterRecipientProvider']],
                subject: "[AALP Jenkins] Build #${BUILD_NUMBER} - ${currentBuild.result}",
                to: '[email protected]'

        }
    }
}