Skip to content

Commit

Permalink
Merge pull request #155 from vbedida79/patch-101023-1
Browse files Browse the repository at this point in the history
tests_l2: Added gpu hwinfo workload
  • Loading branch information
uMartinXu authored Oct 10, 2023
2 parents 5e05bf9 + df63ae1 commit f6265cd
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
40 changes: 40 additions & 0 deletions tests/l2/dgpu/hwinfo_build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Copyright (c) 2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
name: intel-dgpu-hwinfo
namespace: intel-dgpu
spec: {}
---
apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
name: intel-dgpu-hwinfo
namespace: intel-dgpu
spec:
triggers:
- type: "ConfigChange"
- type: "ImageChange"
runPolicy: "Serial"
source:
type: Dockerfile
dockerfile: |
ARG BUILDER=registry.access.redhat.com/ubi9-minimal:latest
FROM ${BUILDER}
RUN microdnf -y update && \
rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
microdnf install -y hwinfo
ENTRYPOINT ["hwinfo"]
strategy:
type: Docker
noCache: true
dockerStrategy:
buildArgs:
- name: "BUILDER"
value: "registry.access.redhat.com/ubi9-minimal:latest"
output:
to:
kind: ImageStreamTag
name: intel-dgpu-hwinfo:latest
22 changes: 22 additions & 0 deletions tests/l2/dgpu/hwinfo_job.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright (c) 2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

apiVersion: batch/v1
kind: Job
metadata:
name: intel-dgpu-hwinfo
namespace: intel-dgpu
spec:
template:
metadata:
spec:
restartPolicy: Never
containers:
- name: hwinfo-pod
image: image-registry.openshift-image-registry.svc:5000/intel-dgpu/intel-dgpu-hwinfo:latest
command: ["hwinfo"]
args: ["--display"]
resources:
limits:
gpu.intel.com/i915: 1
imagePullPolicy: IfNotPresent

0 comments on commit f6265cd

Please sign in to comment.