|
15 | 15 | matrix: |
16 | 16 | python: ["3.9", "3.10", "3.11", "3.12"] |
17 | 17 | numpy_version: ["numpy'<2'", "numpy'>=2'"] |
| 18 | + |
18 | 19 | env: |
19 | 20 | ONEAPI_ROOT: /opt/intel/oneapi |
20 | 21 |
|
| 22 | + defaults: |
| 23 | + run: |
| 24 | + shell: bash -el {0} |
| 25 | + |
21 | 26 | steps: |
22 | 27 | - name: Cancel Previous Runs |
23 | 28 | uses: styfle/cancel-workflow-action@0.12.1 |
@@ -50,28 +55,23 @@ jobs: |
50 | 55 | fetch-depth: 0 |
51 | 56 |
|
52 | 57 | - name: Install mkl_fft dependencies |
53 | | - shell: bash -l {0} |
54 | 58 | run: | |
55 | 59 | pip install cython setuptools">=77" |
56 | 60 | pip install ${{ matrix.numpy_version }} |
57 | 61 |
|
58 | 62 | - name: List oneAPI folder content |
59 | | - shell: bash -l {0} |
60 | | - run: ls /opt/intel/oneapi/compiler |
| 63 | + run: ls ${{ env.ONEAPI_ROOT }}/compiler |
61 | 64 |
|
62 | 65 | - name: Build mkl_fft |
63 | | - shell: bash -l {0} |
64 | 66 | run: | |
65 | | - source /opt/intel/oneapi/setvars.sh |
| 67 | + source ${{ env.ONEAPI_ROOT }}/setvars.sh |
66 | 68 | echo $CMPLR_ROOT |
67 | 69 | export CC=$CMPLR_ROOT/bin/icx |
68 | | - export CXX=$CMPLR_ROOT/bin/icpx |
69 | 70 | export CFLAGS="${CFLAGS} -fno-fast-math -O2" |
70 | 71 | pip install -e . --no-build-isolation --no-deps --verbose |
71 | 72 |
|
72 | 73 | - name: Run mkl_fft tests |
73 | | - shell: bash -l {0} |
74 | 74 | run: | |
75 | | - source /opt/intel/oneapi/setvars.sh |
76 | | - pip install pytest scipy mkl-service |
| 75 | + source ${{ env.ONEAPI_ROOT }}/setvars.sh |
| 76 | + pip install scipy mkl-service pytest |
77 | 77 | pytest -s -v --pyargs mkl_fft |
0 commit comments