|
14 | 14 | TEST_ENV_NAME: test_dpctl
|
15 | 15 | VER_SCRIPT1: "import json; f = open('ver.json', 'r'); j = json.load(f); f.close(); d = j['dpctl'][0];"
|
16 | 16 | VER_SCRIPT2: "print('='.join((d[s] for s in ('version', 'build'))))"
|
17 |
| - VER_SCRIPT3: "print(' '.join(d['depends']))" |
| 17 | + VER_SCRIPT3: "print(' '.join(map(lambda s: chr(34) + s + chr(34), [comp for comp in d['depends'] if 'dpcpp' in comp])))" |
18 | 18 | INTEL_CHANNEL: "https://software.repos.intel.com/python/conda/"
|
19 | 19 |
|
20 | 20 | jobs:
|
@@ -364,7 +364,11 @@ jobs:
|
364 | 364 | shell: pwsh
|
365 | 365 | run: |
|
366 | 366 | $script_path="$env:CONDA_PREFIX\Scripts\set-intel-ocl-icd-registry.ps1"
|
367 |
| - &$script_path |
| 367 | + if (Test-Path $script_path) { |
| 368 | + &$script_path |
| 369 | + } else { |
| 370 | + Write-Warning "File $script_path was NOT found!" |
| 371 | + } |
368 | 372 | # Check the variable assisting OpenCL CPU driver to find TBB DLLs which are not located where it expects them by default
|
369 | 373 | $cl_cfg="$env:CONDA_PREFIX\Library\lib\cl.cfg"
|
370 | 374 | Get-Content -Tail 5 -Path $cl_cfg
|
@@ -547,14 +551,32 @@ jobs:
|
547 | 551 | run: |
|
548 | 552 | CHANNELS="${{ env.CHANNELS }}"
|
549 | 553 | . $CONDA/etc/profile.d/conda.sh
|
550 |
| - export DPCTL_DEPENDS=$(python -c "${VER_SCRIPT1} ${VER_SCRIPT3}") |
| 554 | + DPCTL_DEPENDS=$(python -c "${VER_SCRIPT1} ${VER_SCRIPT3}") |
551 | 555 | echo "Dpctl dependencies: ${DPCTL_DEPENDS}"
|
552 |
| - conda create -n ${{ env.EXAMPLES_ENV_NAME }} -y pytest python=${{ matrix.python }} setuptools"<72.2.0" $DPCTL_DEPENDS $CHANNELS |
553 |
| - conda install -n ${{ env.EXAMPLES_ENV_NAME }} -y cmake $DPCTL_DEPENDS $CHANNELS || exit 1 |
554 |
| - conda install -n ${{ env.EXAMPLES_ENV_NAME }} -y ninja $DPCTL_DEPENDS $CHANNELS || exit 1 |
555 |
| - conda install -n ${{ env.EXAMPLES_ENV_NAME }} -y pybind11 cython scikit-build $DPCTL_DEPENDS $CHANNELS || exit 1 |
556 |
| - conda install -n ${{ env.EXAMPLES_ENV_NAME }} -y mkl-dpcpp mkl-devel-dpcpp dpcpp_cpp_rt $DPCTL_DEPENDS $CHANNELS || exit 1 |
557 |
| - conda create -y -n ${{ env.BUILD_ENV_NAME }} $CHANNELS gcc_linux-64 gxx_linux-64 ${{ env.DPCPP_CMPLR }} $DPCTL_DEPENDS sysroot_linux-64">=2.28" |
| 556 | + conda create -n ${{ env.EXAMPLES_ENV_NAME }} -y \ |
| 557 | + pytest python=${{ matrix.python }} "setuptools<72.2.0" \ |
| 558 | + "${DPCTL_DEPENDS}" $CHANNELS |
| 559 | + echo "Environment created" |
| 560 | + conda install -n ${{ env.EXAMPLES_ENV_NAME }} -y \ |
| 561 | + cmake "${DPCTL_DEPENDS}" \ |
| 562 | + $CHANNELS || exit 1 |
| 563 | + echo "Cmake installed" |
| 564 | + conda install -n ${{ env.EXAMPLES_ENV_NAME }} -y ninja \ |
| 565 | + "${DPCTL_DEPENDS}" \ |
| 566 | + $CHANNELS || exit 1 |
| 567 | + echo "Ninja installed" |
| 568 | + conda install -n ${{ env.EXAMPLES_ENV_NAME }} -y pybind11 \ |
| 569 | + cython scikit-build "${DPCTL_DEPENDS}" \ |
| 570 | + $CHANNELS || exit 1 |
| 571 | + echo "scikit-build installed" |
| 572 | + conda install -n ${{ env.EXAMPLES_ENV_NAME }} -y mkl-dpcpp \ |
| 573 | + mkl-devel-dpcpp dpcpp_cpp_rt "${DPCTL_DEPENDS}" \ |
| 574 | + $CHANNELS || exit 1 |
| 575 | + echo "IPL installed" |
| 576 | + conda create -y -n ${{ env.BUILD_ENV_NAME }} $CHANNELS gcc_linux-64 gxx_linux-64 \ |
| 577 | + ${{ env.DPCPP_CMPLR }} "${DPCTL_DEPENDS}" \ |
| 578 | + "sysroot_linux-64>=2.28" |
| 579 | + echo "Compiler installed" |
558 | 580 | - name: Install dpctl
|
559 | 581 | shell: bash -l {0}
|
560 | 582 | run: |
|
|
0 commit comments