From 6d6a7b711dbc55c49370b8ddbcc9db6e81a6ac27 Mon Sep 17 00:00:00 2001 From: Robert Cohn Date: Thu, 30 May 2024 09:05:34 -0400 Subject: [PATCH] testing for portblas portfft (#495) Co-authored-by: Romain Biessy --- .github/workflows/pr.yml | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 072ee836c..7c22d384f 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -14,13 +14,31 @@ env: PARALLEL: -j 2 jobs: - mkl: - runs-on: intel-ubuntu-latest + unit-tests: + runs-on: ubuntu-latest # One runner for each domain strategy: matrix: - domain: [blas, dft, lapack, rng] - name: MKL ${{ matrix.domain }} CPU + include: + - config: portBLAS + options: -DTARGET_DOMAINS=blas -DREF_BLAS_ROOT=${PWD}/lapack/install -DENABLE_PORTBLAS_BACKEND=ON -DENABLE_MKLCPU_BACKEND=OFF -DPORTBLAS_TUNING_TARGET=INTEL_CPU + tests: '.*' + - config: portFFT + options: -DENABLE_PORTFFT_BACKEND=ON -DENABLE_MKLCPU_BACKEND=OFF -DTARGET_DOMAINS=dft -DCMAKE_CXX_FLAGS="-fsycl -fsycl-targets=spir64" + tests: 'DFT/CT/.*ComputeTests_in_place_COMPLEX.COMPLEX_SINGLE_in_place_buffer.sizes_8_batches_1*' + - config: MKL BLAS + options: -DTARGET_DOMAINS=blas -DREF_BLAS_ROOT=${PWD}/lapack/install + tests: '.*' + - config: MKL DFT + options: -DTARGET_DOMAINS=dft + tests: '.*' + - config: MKL LAPACK + options: -DTARGET_DOMAINS=lapack -DREF_LAPACK_ROOT=${PWD}/lapack/install + tests: '.*' + - config: MKL RNG + options: -DTARGET_DOMAINS=rng + tests: '.*' + name: unit tests ${{ matrix.config }} CPU steps: - uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 - name: Restore netlib from cache @@ -49,10 +67,9 @@ jobs: - name: Configure/Build for a domain run: | source /opt/intel/oneapi/setvars.sh - cmake -DREF_BLAS_ROOT=${PWD}/lapack/install -DREF_LAPACK_ROOT=${PWD}/lapack/install -DENABLE_MKLGPU_BACKEND=off -DTARGET_DOMAINS=${{ matrix.domain }} -DCMAKE_VERBOSE_MAKEFILE=on -B build + cmake -DENABLE_MKLGPU_BACKEND=off -DCMAKE_VERBOSE_MAKEFILE=on ${{ matrix.options }} -B build cmake --build build ${PARALLEL} - name: Run tests run: | source /opt/intel/oneapi/setvars.sh - # Run tests, skip GPU tests - ctest --test-dir build -j 1 -E 'ct$' + ctest --test-dir build -R ${{ matrix.tests }}