Skip to content

Commit

Permalink
First attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderKalistratov committed Jul 24, 2024
1 parent f90053f commit 74c2aa9
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
16 changes: 8 additions & 8 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 @@ -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 Down Expand Up @@ -615,10 +615,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
16 changes: 8 additions & 8 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,15 +18,15 @@ build:
requirements:
build:
- conda-forge::{{ compiler('cxx') }}
- conda-forge::{{ compiler('dpcpp') }} =2024.1 # [not osx]
- 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 }}
- 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 }}
- conda-forge::dpcpp-cpp-rt {{ dpcpp_version }}
- tbb-devel >=2021.6.0
- level-zero-devel
Expand All @@ -37,8 +37,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 74c2aa9

Please sign in to comment.