Skip to content

Commit

Permalink
move dpc portions to scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
icfaust committed Aug 1, 2024
1 parent 33414fa commit adfd4ca
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 16 deletions.
21 changes: 21 additions & 0 deletions .ci/scripts/collect_opencl_rt.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#===============================================================================
# Copyright contributors to the oneDAL project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#===============================================================================

echo "Download intel opencl runtime"
wget -q -O opencl_installer.exe https://registrationcenter-download.intel.com/akdlm/IRC_NAS/d9883ab0-0e26-47fd-9612-950b95460d72/w_opencl_runtime_p_2024.2.0.980.exe
echo "Unpacking opencl runtime installer"
Start-Process ".\opencl_installer.exe" -ArgumentList "--s --x --f ocl" -Wait
Move-Item -Path ".\ocl\w_opencl_runtime_p_2024.2.0.980.msi" -Destination ".\opencl_rt.msi"
24 changes: 24 additions & 0 deletions .ci/scripts/install_dpc.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#===============================================================================
# Copyright contributors to the oneDAL project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#===============================================================================
echo "Download intel DPC++ compiler"
(new-object System.Net.WebClient).DownloadFile("https://registrationcenter-download.intel.com/akdlm/IRC_NAS/7991e201-ca0f-4689-bdb6-1ed73a8246fd/w_dpcpp-cpp-compiler_p_2024.2.0.491_offline.exe", "dpcpp_installer.exe")
# wget -q -O dpcpp_installer.exe
echo "Unpacking DPC++ installer"
Start-Process ".\dpcpp_installer.exe" -ArgumentList "--s --x --f oneAPI" -Wait
echo "Installing DPC++ compiler"
Start-Process ".\oneAPI\bootstrapper.exe" -ArgumentList "-s --eula=accept --install-dir=dpcpp" -Wait
# This can take 20 minutes...
echo "DPC++ install complete"
18 changes: 2 additions & 16 deletions .github/workflows/nightly-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,28 +69,14 @@ jobs:
repository: oneapi-src/oneDAL
- name: Install DPC++
run: |
# DPC++ installation will be stored to speed up testing CI (due to install time)
$env:PATH="C:\msys64\usr\bin;$env:PATH"
echo $env:PATH=C:\msys64\usr\bin;$env:PATH >> $env.GITHUB_ENV
pip install cpufeature
pacman -S -y --noconfirm zip dos2unix tree wget gcc
echo "Download intel DPC++ compiler"
wget -q -O dpcpp_installer.exe https://registrationcenter-download.intel.com/akdlm/IRC_NAS/7991e201-ca0f-4689-bdb6-1ed73a8246fd/w_dpcpp-cpp-compiler_p_2024.2.0.491_offline.exe
echo "Unpacking DPC++ installer"
Start-Process ".\dpcpp_installer.exe" -ArgumentList "--s --x --f oneAPI" -Wait
echo "Installing DPC++ compiler"
Start-Process ".\oneAPI\bootstrapper.exe" -ArgumentList "-s --eula=accept --install-dir=dpcpp" -Wait
# This can take 20 minutes...
echo "DPC++ install complete"
& .ci/scripts/install_dpc.ps1
- name: Prepare Intel OpenCL CPU runtime
run: |
# Store the unpacked runtime to centralize and reduce external downloads
$env:PATH="C:\msys64\usr\bin;$env:PATH"
echo "Download intel opencl runtime"
wget -q -O opencl_installer.exe https://registrationcenter-download.intel.com/akdlm/IRC_NAS/d9883ab0-0e26-47fd-9612-950b95460d72/w_opencl_runtime_p_2024.2.0.980.exe
echo "Unpacking opencl runtime installer"
Start-Process ".\opencl_installer.exe" -ArgumentList "--s --x --f ocl" -Wait
Move-Item -Path ".\ocl\w_opencl_runtime_p_2024.2.0.980.msi" -Destination ".\opencl_rt.msi"
& .ci/scripts/collect_opencl_rt.ps1
- name: System Info
run: |
echo "source dpcpp"
Expand Down

0 comments on commit adfd4ca

Please sign in to comment.