mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00
demo: add intel-opencl-icd
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
This commit is contained in:
parent
ae99465f9f
commit
c064bfc4f1
1
.github/workflows/ci.yaml
vendored
1
.github/workflows/ci.yaml
vendored
@ -114,6 +114,7 @@ jobs:
|
||||
# Demo images
|
||||
- crypto-perf
|
||||
- dsa-accel-config-demo
|
||||
- intel-opencl-icd
|
||||
- opae-nlb-demo
|
||||
- openssl-qat-engine
|
||||
- sgx-sdk-demo
|
||||
|
@ -212,6 +212,8 @@ master
|
||||
### Testing the plugin
|
||||
|
||||
We can test the plugin is working by deploying an OpenCL image and running `clinfo`.
|
||||
The sample OpenCL image can be built using `make intel-opencl-icd` and must be made
|
||||
available in the cluster.
|
||||
|
||||
1. Create a job:
|
||||
|
||||
@ -220,7 +222,7 @@ We can test the plugin is working by deploying an OpenCL image and running `clin
|
||||
job.batch/intelgpu-demo-job created
|
||||
```
|
||||
|
||||
1. Review the job's logs:
|
||||
2. Review the job's logs:
|
||||
|
||||
```bash
|
||||
$ kubectl get pods | fgrep intelgpu
|
||||
|
15
demo/intel-opencl-icd/Dockerfile
Normal file
15
demo/intel-opencl-icd/Dockerfile
Normal file
@ -0,0 +1,15 @@
|
||||
FROM ubuntu:20.04
|
||||
|
||||
ARG APT="env DEBIAN_FRONTEND=noninteractive apt"
|
||||
|
||||
RUN ${APT} update && ${APT} install -y curl gpg-agent \
|
||||
&& echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/graphics/ubuntu focal main' | \
|
||||
tee -a /etc/apt/sources.list.d/intel.list \
|
||||
&& curl -s https://repositories.intel.com/graphics/intel-graphics.key | \
|
||||
gpg --dearmor --output /usr/share/keyrings/intel-graphics.gpg \
|
||||
&& ${APT} update \
|
||||
&& ${APT} install -y --no-install-recommends \
|
||||
intel-opencl-icd \
|
||||
clinfo \
|
||||
&& ${APT} remove -y curl gpg-agent \
|
||||
&& ${APT} autoremove -y
|
@ -14,7 +14,7 @@ spec:
|
||||
containers:
|
||||
-
|
||||
name: intelgpu-demo-job-1
|
||||
image: intelopencl/intel-opencl:ubuntu-20.10-ppa
|
||||
image: intel/intel-opencl-icd:devel
|
||||
imagePullPolicy: IfNotPresent
|
||||
command: [ "clinfo" ]
|
||||
resources:
|
||||
|
Loading…
Reference in New Issue
Block a user