gpu: improve demo run instructions

Signed-off-by: Tuomas Katila <tuomas.katila@intel.com>
This commit is contained in:
Tuomas Katila 2022-10-05 15:35:29 +03:00
parent 8426fb975f
commit 63cbe808a7

View File

@ -224,9 +224,32 @@ master
## Testing and Demos
We can test the plugin is working by deploying an OpenCL image and running `clinfo`.
The sample [intel-opencl-icd](../../demo/intel-opencl-icd/) OpenCL image can be built
using `make intel-opencl-icd` and must be made available in the cluster.
We can test the plugin is working by deploying an [OpenCL image](../../demo/intel-opencl-icd/) that is running `clinfo`.
1. Make the image available to the cluster:
Build image:
```bash
$ make intel-opencl-icd
```
Tag and push the `intel-opencl-icd` image to a repository available in the cluster. And modify the `intelgpu-job.yaml`'s image location accordingly:
```bash
$ docker tag intel/intel-opencl-icd:devel <repository>/intel/intel-opencl-icd:latest
$ docker push <repository>/intel/intel-opencl-icd:latest
$ vi ${INTEL_DEVICE_PLUGINS_SRC}/demo/intelgpu-job.yaml
```
If you are running the demo on a single node cluster, you can push the image to the CRI's repository. For example, docker to containerd:
```bash
$ IMAGE_NAME=opencl-icd.tar
$ docker save -o $IMAGE_NAME intel/intel-opencl-icd:devel
$ ctr -n=k8s.io images import $IMAGE_NAME
$ rm $IMAGE_NAME
```
1. Create a job:
@ -235,7 +258,7 @@ using `make intel-opencl-icd` and must be made available in the cluster.
job.batch/intelgpu-demo-job created
```
2. Review the job's logs:
1. Review the job's logs:
```bash
$ kubectl get pods | fgrep intelgpu