Skip to content

Commit

Permalink
Updating intel packages to 2024.2 (#394)
Browse files Browse the repository at this point in the history
* Update Intel packages to version 2024.2
* Use `dpcpp` from `https://software.repos.intel.com/python/conda/`
* Re-enable offload tests for linux
* Replace `mambabuild` with `conda-build`
  • Loading branch information
AlexanderKalistratov authored Jul 25, 2024
1 parent f90053f commit 8373d7b
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 25 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,10 @@ jobs:
./vcvars.ps1
popd
cd numba_mlir
conda create -y -n test-env python=${{ matrix.python }} "dpcpp_win-64=2024.1" --file ../scripts/numba-mlir.env -c conda-forge
conda create -y -n test-env python=${{ matrix.python }} --file ../scripts/numba-mlir.env -c conda-forge
conda info
conda activate test-env
conda install --file ../scripts/mkl.env -c https://software.repos.intel.com/python/conda/
conda install dpcpp_win-64=2024.2 --file ../scripts/mkl.env -c https://software.repos.intel.com/python/conda/
echo "Conda prefix: $env:CONDA_PREFIX"
echo "Patch broken Windows MKLConfig.cmake"
cp "$env:GITHUB_WORKSPACE/numba_mlir/conda-recipe/MKLConfig.cmake" "$env:CONDA_PREFIX/Library/lib/cmake/mkl" -Force
Expand Down Expand Up @@ -277,10 +277,10 @@ jobs:

run: |
cd numba_mlir_wheels
conda create -y -n wheels-test-env python=${{ matrix.python }} "dpcpp_win-64=2024.1" --file ../scripts/numba-mlir.env -c conda-forge
conda create -y -n wheels-test-env python=${{ matrix.python }} --file ../scripts/numba-mlir.env -c conda-forge
conda info
conda activate wheels-test-env
conda install --file ../scripts/mkl.env -c https://software.repos.intel.com/python/conda/
conda install dpcpp_win-64=2024.2 --file ../scripts/mkl.env -c https://software.repos.intel.com/python/conda/
conda list
ls .
ls *.whl | Foreach-Object { pip install $_.FullName }
Expand Down Expand Up @@ -358,7 +358,7 @@ jobs:
$env:CXX="cl.exe"
$env:CC="cl.exe"
$env:VSCMD_DEBUG = 3
conda mambabuild --output-folder=. ../numba_mlir/conda-recipe --python=${{ matrix.python }} -c conda-forge -c numba -c https://software.repos.intel.com/python/conda/ --override-channels
conda build --output-folder=. ../numba_mlir/conda-recipe --python=${{ matrix.python }} -c https://software.repos.intel.com/python/conda/ -c conda-forge -c numba --override-channels
cd win-64
ls .
popd
Expand Down Expand Up @@ -540,10 +540,10 @@ jobs:

run: |
cd numba_mlir
conda create -y -n test-env python=${{ matrix.python }} "dpcpp_linux-64=2024.1" --file ../scripts/numba-mlir.env -c conda-forge
conda create -y -n test-env python=${{ matrix.python }} --file ../scripts/numba-mlir.env -c conda-forge
conda info
source $CONDA/bin/activate test-env
conda install --file ../scripts/mkl.env -c https://software.repos.intel.com/python/conda/
conda install dpcpp_linux-64=2024.2 --file ../scripts/mkl.env -c https://software.repos.intel.com/python/conda/
conda install gxx_linux-64 -c conda-forge
conda list
python -c "import numba; print('numba', numba.__version__)"
Expand All @@ -568,7 +568,6 @@ jobs:
- name: Run offload tests
if: false # Re-enable after packages update to 2024.2
shell: bash -l {0}

run: |
Expand Down Expand Up @@ -615,10 +614,10 @@ jobs:

run: |
cd numba_mlir_wheels
conda create -y -n wheels-test-env python=${{ matrix.python }} "dpcpp_linux-64=2024.1" --file ../scripts/numba-mlir.env -c conda-forge
conda create -y -n wheels-test-env python=${{ matrix.python }} --file ../scripts/numba-mlir.env -c conda-forge
conda info
source $CONDA/bin/activate wheels-test-env
conda install --file ../scripts/mkl.env -c https://software.repos.intel.com/python/conda/
conda install dpcpp_linux-64=2024.2 --file ../scripts/mkl.env -c https://software.repos.intel.com/python/conda/
conda list
pip install *.whl
python $GITHUB_WORKSPACE/numba_mlir/conda-recipe/run_package_tests.py verbose smoke
Expand Down Expand Up @@ -680,7 +679,8 @@ jobs:
export LLVM_PATH=/home/runner/work/llvm-mlir/_mlir_install
export LEVEL_ZERO_VERSION_CHECK_OFF=1
export NUMBA_MLIR_USE_SYCL=ON
conda mambabuild --output-folder=. ../numba_mlir/conda-recipe --python=${{ matrix.python }} -c conda-forge -c numba -c https://software.repos.intel.com/python/conda/ --override-channels || exit 1
# conda build --output-folder=. ../numba_mlir/conda-recipe --python=${{ matrix.python }} -c conda-forge -c numba -c https://software.repos.intel.com/python/conda/ || exit 1
conda build --output-folder=. ../numba_mlir/conda-recipe --python=${{ matrix.python }} -c https://software.repos.intel.com/python/conda/ -c conda-forge -c numba --override-channels || exit 1
cd linux-64
ls -l --block-size=M
popd
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ ninja install
Building and testing Python package
```Bash
cd numba_mlir
conda create -n test-env python=3.11 dpcpp_linux-64=2024.2 --file ../scripts/numba-mlir.env -c conda-forge
conda create -n test-env python=3.11 --file ../scripts/numba-mlir.env -c conda-forge
conda activate test-env
conda install --file ../scripts/mkl.env -c https://software.repos.intel.com/python/conda/
conda install dpcpp_linux-64=2024.2 --file ../scripts/mkl.env -c https://software.repos.intel.com/python/conda/
export LLVM_PATH=<...>/llvm-install
export NUMBA_MLIR_USE_SYCL=ON # Optional
python setup.py develop
Expand Down
2 changes: 1 addition & 1 deletion numba_mlir/conda-recipe/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ cxx_compiler:
numpy:
- 1.23
pin_run_as_build:
https://software.repos.intel.com/python/conda/::dpcpp-cpp-rt: x.x
mkl: x.x
mkl-dpcpp: x.x
conda-forge::dpcpp-cpp-rt: x.x
19 changes: 10 additions & 9 deletions numba_mlir/conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% set dpcpp_version = ">=2024.1" %}
{% set dpcpp_version = ">=2024.2" %}

package:
name: numba-mlir
Expand All @@ -18,16 +18,17 @@ build:
requirements:
build:
- conda-forge::{{ compiler('cxx') }}
- conda-forge::{{ compiler('dpcpp') }} =2024.1 # [not osx]
- https://software.repos.intel.com/python/conda/::dpcpp-cpp-rt {{ dpcpp_version }}
- https://software.repos.intel.com/python/conda/::{{ compiler('dpcpp') }} =2024.2 # [not osx]
- sysroot_linux-64 >=2.17 # [linux]
- cmake >=3.23
- ninja
host:
- intel::mkl-devel {{ dpcpp_version }}
- intel::mkl-devel-dpcpp {{ dpcpp_version }}
- intel::mkl {{ dpcpp_version }}
- intel::mkl-dpcpp {{ dpcpp_version }}
- conda-forge::dpcpp-cpp-rt {{ dpcpp_version }}
- https://software.repos.intel.com/python/conda/::mkl-devel {{ dpcpp_version }}
- https://software.repos.intel.com/python/conda/::mkl-devel-dpcpp {{ dpcpp_version }}
- https://software.repos.intel.com/python/conda/::mkl {{ dpcpp_version }}
- https://software.repos.intel.com/python/conda/::mkl-dpcpp {{ dpcpp_version }}
- https://software.repos.intel.com/python/conda/::dpcpp-cpp-rt {{ dpcpp_version }}
- tbb-devel >=2021.6.0
- level-zero-devel
- numba >=0.59.1, <0.60
Expand All @@ -37,8 +38,8 @@ requirements:
- wheel
- zlib
run:
- intel::mkl
- intel::mkl-dpcpp {{ dpcpp_version }}
- https://software.repos.intel.com/python/conda/::mkl
- https://software.repos.intel.com/python/conda/::mkl-dpcpp {{ dpcpp_version }}
- numba >=0.59.1, <0.60
- packaging
- python
Expand Down
2 changes: 1 addition & 1 deletion scripts/bench-env-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dependencies:
- asv=0.6
- numba-mlir
- dpctl
- dpcpp_linux-64 = 2024.1
- dpcpp_linux-64 = 2024.2
- icc_rt
- https://software.repos.intel.com/python/conda/::numpy
- py-cpuinfo
Expand Down
2 changes: 1 addition & 1 deletion scripts/mkl.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mkl
mkl-devel
mkl-devel-dpcpp=2024.1
mkl-devel-dpcpp=2024.2

0 comments on commit 8373d7b

Please sign in to comment.