forked from intel/scikit-learn-intelex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
63 lines (59 loc) · 2.47 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
jobs:
- job: DPCPP
pool:
vmImage: 'ubuntu-18.04'
steps:
- script: |
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
echo "deb https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
sudo add-apt-repository -y "deb https://apt.repos.intel.com/oneapi all main"
sudo add-apt-repository -y ppa:intel-opencl/intel-opencl
sudo apt-get update
sudo apt-get install \
intel-oneapi-common-vars \
intel-oneapi-common-licensing \
intel-oneapi-tbb-devel \
intel-oneapi-daal-devel \
intel-oneapi-dpcpp-compiler \
intel-oneapi-dev-utilities \
intel-oneapi-libdpstd-devel \
cmake \
opencl-headers \
libze-loader \
libze-intel-gpu
sudo bash -c 'echo libintelocl.so > /etc/OpenCL/vendors/intel-cpu.icd'
sudo mv -f /opt/intel/inteloneapi/compiler/latest/linux/lib/oclfpga /opt/intel/inteloneapi/compiler/latest/linux/lib/oclfpga_
displayName: 'apt-get'
- script: |
git clone https://github.com/oneapi-src/level-zero.git
cd level-zero
mkdir build
cd build
cmake ..
cmake --build . --config Release
cmake --build . --config Release --target package
sudo cmake --build . --config Release --target install
displayName: Build L0 (Workaround for Beta06)
- script: conda create -q -y -n CB python=3.7 conda-build conda-verify
displayName: Create Anaconda environment
- script: |
export DPCPP_VAR=/opt/intel/inteloneapi/compiler/latest/env/vars.sh
export DAALROOT=/opt/intel/inteloneapi/daal/latest
. /usr/share/miniconda/etc/profile.d/conda.sh
conda activate CB
conda build --override-channels -c conda-forge -c intel conda-recipe
displayName: conda build
- job: Windows
pool:
vmImage: 'vs2017-win2016'
steps:
- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
displayName: Add conda to PATH
- script: conda create -q -y -n CB python=3.7 conda-build conda-verify
displayName: Create Anaconda environment
- script: |
call activate CB
conda build --override-channels -c conda-forge -c intel --output-folder=. conda-recipe
displayName: conda build