Skip to content

Commit

Permalink
[enhancement] interface with compressed artifacts uxlfoundation/oneDA…
Browse files Browse the repository at this point in the history
…L#2938 (#2093)

* Update ci.yml

* Update activate_components.bat

* Update ci.yml

* Update ci.yml
  • Loading branch information
icfaust authored Oct 17, 2024
1 parent 6099c0d commit 48cf043
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 20 deletions.
8 changes: 3 additions & 5 deletions .github/scripts/activate_components.bat
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,13 @@ rem See the License for the specific language governing permissions and
rem limitations under the License.
rem ============================================================================

rem %1 - dpcpp compiler version
rem %2 - tbb version
rem %3 - dpcpp activate flag
rem %1 - dpcpp activate flag

rem prepare vc
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall" x64
rem prepare icx only if no parameter is given.
if "%3"=="" call .\oneapi\compiler\%1\env\vars.bat
if "%1"=="" call .\oneapi\compiler\latest\env\vars.bat
rem prepare tbb
call .\oneapi\tbb\%2\env\vars.bat
call .\oneapi\tbb\latest\env\vars.bat
rem prepare oneDAL
call .\__release_win\daal\latest\env\vars.bat
27 changes: 12 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ concurrency:
cancel-in-progress: true

env:
TBB_VERSION: 2021.13
DPCPP_VERSION: 2024.2
DPCTL_VERSION: 0.17.0
DPNP_VERSION: 0.15.0
DPCTL_PY_VERSIONS: '3.9\|3.11'
Expand Down Expand Up @@ -168,19 +166,18 @@ jobs:
github-token: ${{ github.token }}
repository: oneapi-src/oneDAL
run-id: ${{ steps.get-run-id.outputs.run-id }}
path: .\__release_win
- name: Download DPCPP compiler artifact
path: ./__release_win
- name: Download Intel BaseKit artifact
uses: actions/download-artifact@v4
with:
name: icx_compiler
name: intel_oneapi_basekit
github-token: ${{ github.token }}
repository: oneapi-src/oneDAL
run-id: ${{ steps.get-run-id.outputs.run-id }}
path: .
- name: Unzip Compiler
- name: Decompress Intel BaseKit
shell: cmd
run: |
tar -xvzf icx.zip
tar -xvzf oneapi.tar.gz
echo "Unzip complete"
- name: Set Environment Variables
id: set-env
Expand Down Expand Up @@ -219,22 +216,22 @@ jobs:
shell: cmd
run: |
call .\venv\Scripts\activate.bat
call .\oneapi\compiler\${{ env.DPCPP_VERSION }}\env\vars.bat
call .\oneapi\compiler\${{ env.DPCPP_VERSION }}\bin\sycl-ls.exe
call .\oneapi\setvars.bat
call .\oneapi\compiler\latest\bin\sycl-ls.exe
bash .ci/scripts/describe_system.sh
- name: Build daal4py/sklearnex
shell: cmd
run: |
call .\venv\Scripts\activate.bat
call .\.github\scripts\activate_components.bat ${{ env.DPCPP_VERSION }} ${{ env.TBB_VERSION }} ${{ steps.set-env.outputs.DPCFLAG }}
call .\.github\scripts\activate_components.bat ${{ steps.set-env.outputs.DPCFLAG }}
set PREFIX=.
set PYTHON=python
call .\conda-recipe\bld.bat
- name: Install testing requirements
shell: cmd
run: |
call .\venv\Scripts\activate.bat
call .\.github\scripts\activate_components.bat ${{ env.DPCPP_VERSION }} ${{ env.TBB_VERSION }} ${{ steps.set-env.outputs.DPCFLAG }}
call .\.github\scripts\activate_components.bat ${{ steps.set-env.outputs.DPCFLAG }}
bash .ci/scripts/setup_sklearn.sh ${{ matrix.SKLEARN_VERSION }}
pip install --upgrade -r requirements-test.txt
for /f "delims=" %%c in ('python .ci\scripts\get_compatible_scipy_version.py ${{ matrix.SKLEARN_VERSION }}') do set SCIPY_VERSION=%%c
Expand All @@ -245,20 +242,20 @@ jobs:
shell: cmd
run: |
call .\venv\Scripts\activate.bat
call .\.github\scripts\activate_components.bat ${{ env.DPCPP_VERSION }} ${{ env.TBB_VERSION }} ${{ steps.set-env.outputs.DPCFLAG }}
call .\.github\scripts\activate_components.bat ${{ steps.set-env.outputs.DPCFLAG }}
set PYTHON=python
cd ..
call scikit-learn-intelex\conda-recipe\run_test.bat scikit-learn-intelex
- name: Sklearn testing
shell: cmd
run: |
call .\venv\Scripts\activate.bat
call .\.github\scripts\activate_components.bat ${{ env.DPCPP_VERSION }} ${{ env.TBB_VERSION }} ${{ steps.set-env.outputs.DPCFLAG }}
call .\.github\scripts\activate_components.bat ${{ steps.set-env.outputs.DPCFLAG }}
bash .ci/scripts/run_sklearn_tests.sh
- name: Sklearn testing [preview]
shell: cmd
run: |
call .\venv\Scripts\activate.bat
call .\.github\scripts\activate_components.bat ${{ env.DPCPP_VERSION }} ${{ env.TBB_VERSION }} ${{ steps.set-env.outputs.DPCFLAG }}
call .\.github\scripts\activate_components.bat ${{ steps.set-env.outputs.DPCFLAG }}
set SKLEARNEX_PREVIEW=YES
bash .ci/scripts/run_sklearn_tests.sh

0 comments on commit 48cf043

Please sign in to comment.