1616 strategy :
1717 fail-fast : false
1818 matrix :
19- config_set : [BaseMPI, ReverseMPI, ForwardMPI, BaseNoMPI, ReverseNoMPI, ForwardNoMPI]
19+ config_set : [BaseMPI, ReverseMPI, ForwardMPI, BaseNoMPI, ReverseNoMPI, ForwardNoMPI, BaseOMP ]
2020 include :
2121 - config_set : BaseMPI
2222 flags : ' -Denable-pywrapper=true -Denable-tests=true --werror'
3030 flags : ' -Denable-autodiff=true -Denable-normal=false -Dwith-mpi=disabled -Denable-pywrapper=true -Denable-tests=true --werror'
3131 - config_set : ForwardNoMPI
3232 flags : ' -Denable-directdiff=true -Denable-normal=false -Dwith-mpi=disabled -Denable-tests=true --werror'
33+ - config_set : BaseOMP
34+ flags : ' -Dwith-omp=true -Denable-mixedprec=true -Denable-tecio=false --werror'
3335 runs-on : ubuntu-latest
3436 steps :
3537 - name : Cache Object Files
5456 strategy :
5557 fail-fast : false
5658 matrix :
57- testscript : ['tutorials.py', 'parallel_regression.py', 'parallel_regression_AD.py', 'serial_regression.py', 'serial_regression_AD.py']
59+ testscript : ['tutorials.py', 'parallel_regression.py', 'parallel_regression_AD.py', 'serial_regression.py', 'serial_regression_AD.py', 'hybrid_regression.py' ]
5860 include :
5961 - testscript : ' tutorials.py'
6062 tag : MPI
@@ -66,31 +68,22 @@ jobs:
6668 tag : NoMPI
6769 - testscript : ' serial_regression_AD.py'
6870 tag : NoMPI
71+ - testscript : ' hybrid_regression.py'
72+ tag : OMP
6973 steps :
70- - name : Download Base
71- uses : actions/download-artifact@v1
72- with :
73- name : ${{format('Base{0}', matrix.tag)}}
74- - name : Download Reverse
75- uses : actions/download-artifact@v1
76- with :
77- name : ${{format('Reverse{0}', matrix.tag)}}
78- - name : Download Forward
79- uses : actions/download-artifact@v1
80- with :
81- name : ${{format('Forward{0}', matrix.tag)}}
74+ - name : Download All artifact
75+ uses : actions/download-artifact@v2
8276 - name : Move Binaries
8377 run : |
8478 mkdir -p install/bin
85- cp -r ${{format('Base{0}', matrix.tag)}}/. install/bin/
86- cp -r ${{format('Reverse{0}', matrix.tag)}}/. install/bin/
87- cp -r ${{format('Forward{0}', matrix.tag)}}/. install/bin/
88- chmod a+x install/bin/*
79+ if [ -d "${{format('Base{0}', matrix.tag)}}" ]; then cp -r ${{format('Base{0}', matrix.tag)}}/. install/bin/; fi
80+ if [ -d "${{format('Reverse{0}', matrix.tag)}}" ]; then cp -r ${{format('Reverse{0}', matrix.tag)}}/. install/bin/; fi
81+ if [ -d "${{format('Forward{0}', matrix.tag)}}" ]; then cp -r ${{format('Forward{0}', matrix.tag)}}/. install/bin/; fi
82+ chmod a+x install/bin/*
8983 - name : Run Tests in Container
9084 uses : docker://su2code/test-su2:20200303
9185 with :
9286 args : -b ${{github.ref}} -t develop -c develop -s ${{matrix.testscript}}
93-
9487 unit_tests :
9588 runs-on : ubuntu-latest
9689 name : Unit Tests
@@ -125,7 +118,7 @@ jobs:
125118 cp -r ${{format('Base{0}', matrix.tag)}}/. install/bin/
126119 cp -r ${{format('Reverse{0}', matrix.tag)}}/. install/bin/
127120 cp -r ${{format('Forward{0}', matrix.tag)}}/. install/bin/
128- chmod a+x install/bin/*
121+ chmod a+x install/bin/*
129122 - name : Run Unit Tests
130123 uses : docker://su2code/test-su2:20191031
131124 with :
0 commit comments