@@ -21,22 +21,23 @@ jobs:
2121 matrix :
2222 include :
2323 - config : portBLAS
24- domain : blas
25- build_options : -DREF_BLAS_ROOT=${PWD}/lapack/install -DENABLE_PORTBLAS_BACKEND=ON -DENABLE_MKLCPU_BACKEND=OFF -DPORTBLAS_TUNING_TARGET=INTEL_CPU
24+ options : -DTARGET_DOMAINS= blas -DREF_BLAS_ROOT=${PWD}/lapack/install -DENABLE_PORTBLAS_BACKEND=ON -DENABLE_MKLCPU_BACKEND=OFF -DPORTBLAS_TUNING_TARGET=INTEL_CPU
25+ tests : ' .* '
2626 - config : portFFT
27- domain : dft
28- build_options : -DENABLE_PORTFFT_BACKEND=ON -DENABLE_MKLCPU_BACKEND=OFF -DCMAKE_CXX_FLAGS="-fsycl -fsycl-targets=spir64"
29- test_options : -R 'DFT/CT/.*ComputeTests_in_place_COMPLEX.COMPLEX_SINGLE_in_place_buffer.sizes_8_batches_1*'
27+ options : -DENABLE_PORTFFT_BACKEND=ON -DENABLE_MKLCPU_BACKEND=OFF -DTARGET_DOMAINS=dft -DCMAKE_CXX_FLAGS="-fsycl -fsycl-targets=spir64"
28+ tests : ' DFT/CT/.*ComputeTests_in_place_COMPLEX.COMPLEX_SINGLE_in_place_buffer.sizes_8_batches_1*'
3029 - config : MKL BLAS
31- domain : blas
32- build_options : -DREF_BLAS_ROOT=${PWD}/lapack/install
30+ options : -DTARGET_DOMAINS= blas -DREF_BLAS_ROOT=${PWD}/lapack/install
31+ tests : ' .* '
3332 - config : MKL DFT
34- domain : dft
33+ options : -DTARGET_DOMAINS=dft
34+ tests : ' .*'
3535 - config : MKL LAPACK
36- domain : lapack
37- build_options : -DREF_LAPACK_ROOT=${PWD}/lapack/install
36+ options : -DTARGET_DOMAINS= lapack -DREF_LAPACK_ROOT=${PWD}/lapack/install
37+ tests : ' .* '
3838 - config : MKL RNG
39- domain : rng
39+ options : -DTARGET_DOMAINS=rng
40+ tests : ' .*'
4041 name : unit tests ${{ matrix.config }} CPU
4142 steps :
4243 - uses : actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
@@ -57,44 +58,18 @@ jobs:
5758 # 64 bit int
5859 cmake ${SHARED_OPT} -DBUILD_INDEX64=on -B lapack/build64
5960 cmake --build lapack/build64 ${PARALLEL} --target install
60- - name : Test if the changes affect this domain
61- id : test_domain
62- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
63- with :
64- script : |
65- function matchesPattern(filePaths) {
66- console.log('files:', filePaths)
67- // These directories contain domain specific code
68- const dirs = '(tests/unit_tests|examples|src|include/oneapi/mkl)'
69- const domains = '(blas|lapack|rng|dft)'
70- const domain = '${{ matrix.domain }}'
71- // matches changes to the domain of interest or non domain-specific code
72- const re = new RegExp(`^(${dirs}/${domain}|(?!${dirs}/${domains}))`);
73- return filePaths.some(filePath => re.test(filePath));
74- }
75- const pr = context.payload.pull_request
76- const compare = await github.rest.repos.compareCommits({
77- owner: context.repo.owner,
78- repo: context.repo.repo,
79- base: pr.base.sha,
80- head: pr.head.sha
81- });
82- return matchesPattern(compare.data.files.map((f) => f.filename));
8361 - name : Install oneapi
84- if : steps.test_domain.outputs.result == 'true'
8562 uses : rscohn2/setup-oneapi@2ad0cf6b74bc2426bdcee825cf88f9db719dd727 # v0.1.0
8663 with :
8764 components : |
886589669067 - name : Configure/Build for a domain
91- if : steps.test_domain.outputs.result == 'true'
9268 run : |
9369 source /opt/intel/oneapi/setvars.sh
94- cmake -DTARGET_DOMAINS=${{ matrix.domain }} - DENABLE_MKLGPU_BACKEND=off -DCMAKE_VERBOSE_MAKEFILE=on ${{ matrix.build_options }} -B build
70+ cmake -DENABLE_MKLGPU_BACKEND=off -DCMAKE_VERBOSE_MAKEFILE=on ${{ matrix.options }} -B build
9571 cmake --build build ${PARALLEL}
9672 - name : Run tests
97- if : steps.test_domain.outputs.result == 'true'
9873 run : |
9974 source /opt/intel/oneapi/setvars.sh
100- ctest --test-dir build ${{ matrix.test_options }}
75+ ctest --test-dir build -R ${{ matrix.tests }}
0 commit comments