Skip to content

Commit f6265cd

Browse files
authored
Merge pull request #155 from vbedida79/patch-101023-1
tests_l2: Added gpu hwinfo workload
2 parents 5e05bf9 + df63ae1 commit f6265cd

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

tests/l2/dgpu/hwinfo_build.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Copyright (c) 2023 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
apiVersion: image.openshift.io/v1
5+
kind: ImageStream
6+
metadata:
7+
name: intel-dgpu-hwinfo
8+
namespace: intel-dgpu
9+
spec: {}
10+
---
11+
apiVersion: build.openshift.io/v1
12+
kind: BuildConfig
13+
metadata:
14+
name: intel-dgpu-hwinfo
15+
namespace: intel-dgpu
16+
spec:
17+
triggers:
18+
- type: "ConfigChange"
19+
- type: "ImageChange"
20+
runPolicy: "Serial"
21+
source:
22+
type: Dockerfile
23+
dockerfile: |
24+
ARG BUILDER=registry.access.redhat.com/ubi9-minimal:latest
25+
FROM ${BUILDER}
26+
RUN microdnf -y update && \
27+
rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
28+
microdnf install -y hwinfo
29+
ENTRYPOINT ["hwinfo"]
30+
strategy:
31+
type: Docker
32+
noCache: true
33+
dockerStrategy:
34+
buildArgs:
35+
- name: "BUILDER"
36+
value: "registry.access.redhat.com/ubi9-minimal:latest"
37+
output:
38+
to:
39+
kind: ImageStreamTag
40+
name: intel-dgpu-hwinfo:latest

tests/l2/dgpu/hwinfo_job.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright (c) 2023 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
apiVersion: batch/v1
5+
kind: Job
6+
metadata:
7+
name: intel-dgpu-hwinfo
8+
namespace: intel-dgpu
9+
spec:
10+
template:
11+
metadata:
12+
spec:
13+
restartPolicy: Never
14+
containers:
15+
- name: hwinfo-pod
16+
image: image-registry.openshift-image-registry.svc:5000/intel-dgpu/intel-dgpu-hwinfo:latest
17+
command: ["hwinfo"]
18+
args: ["--display"]
19+
resources:
20+
limits:
21+
gpu.intel.com/i915: 1
22+
imagePullPolicy: IfNotPresent

0 commit comments

Comments
 (0)