mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00
demo: drop ubuntu-demo-opencl image
The version of the compute-runtime project installed in ubuntu-demo-opencl is not working with the most recent GPUs anymore. Instead of updating it, move to use pre-built images. This is inlined with our goal to speed-up CI by skipping unnecessary demo images. Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
This commit is contained in:
parent
e0b3cf1654
commit
00a59e8f7d
1
.github/workflows/ci.yaml
vendored
1
.github/workflows/ci.yaml
vendored
@ -85,7 +85,6 @@ jobs:
|
|||||||
- openssl-qat-engine
|
- openssl-qat-engine
|
||||||
- sgx-sdk-demo
|
- sgx-sdk-demo
|
||||||
- sgx-aesmd-demo
|
- sgx-aesmd-demo
|
||||||
- ubuntu-demo-opencl
|
|
||||||
- ubuntu-demo-openvino
|
- ubuntu-demo-openvino
|
||||||
builder: [buildah, docker]
|
builder: [buildah, docker]
|
||||||
steps:
|
steps:
|
||||||
|
@ -14,9 +14,9 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
-
|
-
|
||||||
name: intelgpu-demo-job-1
|
name: intelgpu-demo-job-1
|
||||||
image: intel/ubuntu-demo-opencl:devel
|
image: intelopencl/intel-opencl:ubuntu-20.10-ppa
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command: [ "/run-opencl-example.sh", "/root/6-1/fft" ]
|
command: [ "clinfo" ]
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
gpu.intel.com/i915: 1
|
gpu.intel.com/i915: 1
|
||||||
|
@ -1,24 +0,0 @@
|
|||||||
FROM ubuntu:bionic
|
|
||||||
|
|
||||||
COPY run-opencl-example.sh /
|
|
||||||
COPY fft.patch /
|
|
||||||
COPY expected.pgm /
|
|
||||||
|
|
||||||
RUN apt-get update && \
|
|
||||||
apt-get upgrade -y && \
|
|
||||||
apt-get install -y locales git ocl-icd-opencl-dev build-essential \
|
|
||||||
clinfo jq uprightdiff wget unzip && \
|
|
||||||
sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
|
|
||||||
echo 'LANG="en_US.UTF-8"'>/etc/default/locale && \
|
|
||||||
dpkg-reconfigure --frontend=noninteractive locales && \
|
|
||||||
update-locale LANG=en_US.UTF-8 && \
|
|
||||||
cd /root && wget https://github.com/intel/compute-runtime/releases/download/18.26.10987/intel-opencl_18.26.10987_amd64.deb && \
|
|
||||||
dpkg -i /root/*.deb && \
|
|
||||||
ldconfig && \
|
|
||||||
wget https://us.fixstars.com/dl/opencl/samples.zip && \
|
|
||||||
unzip samples.zip && \
|
|
||||||
cd 6-1/fft && \
|
|
||||||
patch -p0 < /fft.patch && \
|
|
||||||
gcc -g fft.cpp -o fft -lOpenCL -lm
|
|
||||||
|
|
||||||
ENV LANG en_US.UTF-8
|
|
Binary file not shown.
@ -1,21 +0,0 @@
|
|||||||
--- /root/copy/6-1/fft/fft.cpp 2010-03-30 18:00:34.000000000 +0000
|
|
||||||
+++ fft.cpp 2018-07-05 11:57:54.888088750 +0000
|
|
||||||
@@ -32,14 +32,14 @@
|
|
||||||
case 1:
|
|
||||||
gws[0] = x;
|
|
||||||
gws[1] = 1;
|
|
||||||
- lws[0] = 1;
|
|
||||||
- lws[1] = 1;
|
|
||||||
+ lws[0] = 16;
|
|
||||||
+ lws[1] = 16;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
gws[0] = x;
|
|
||||||
gws[1] = y;
|
|
||||||
- lws[0] = 1;
|
|
||||||
- lws[1] = 1;
|
|
||||||
+ lws[0] = 16;
|
|
||||||
+ lws[1] = 16;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
|||||||
#!/bin/sh -xe
|
|
||||||
|
|
||||||
WORK_DIR=$1
|
|
||||||
|
|
||||||
cd $WORK_DIR
|
|
||||||
|
|
||||||
./fft
|
|
||||||
|
|
||||||
uprightdiff --format json output.pgm /expected.pgm diff.pgm > diff.json
|
|
||||||
|
|
||||||
MODIFIED_AREA=`cat diff.json | jq '.modifiedArea'`
|
|
||||||
|
|
||||||
if [ $MODIFIED_AREA -gt 10 ]; then
|
|
||||||
echo "The image difference with expected result is too big: ${MODIFIED_AREA} pixels"
|
|
||||||
exit 255
|
|
||||||
fi
|
|
||||||
echo "Success"
|
|
Loading…
Reference in New Issue
Block a user