Skip to content

Commit 2f875fe

Browse files
committed
reload dockers
1 parent 249c26a commit 2f875fe

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

devops/scripts/install_drivers.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,16 @@ InstallIGFX () {
168168
fi
169169
}
170170

171+
InstallOpenCL () {
172+
echo "Installing Intel OpenCL..."
173+
apt-get update && apt-get install -y ca-certificates gpg
174+
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \
175+
| gpg --dearmor | tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
176+
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | tee /etc/apt/sources.list.d/oneAPI.list
177+
apt-get update
178+
apt-get install -y intel-oneapi-runtime-opencl intel-oneapi-base-toolkit
179+
}
180+
171181
InstallCPURT () {
172182
echo "Installing Intel OpenCL CPU Runtime..."
173183
echo "CPU Runtime version $CPU_TAG"
@@ -234,9 +244,11 @@ while [ "${1:-}" != "" ]; do
234244
InstallTBB
235245
InstallCPURT
236246
InstallFPGAEmu
247+
InstallOpenCL
237248
;;
238249
"--igfx")
239250
InstallIGFX
251+
InstallOpenCL
240252
;;
241253
"--cpu")
242254
InstallTBB

0 commit comments

Comments
 (0)