-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathopencl-enum-mcdm.yml
More file actions
25 lines (24 loc) · 917 Bytes
/
opencl-enum-mcdm.yml
File metadata and controls
25 lines (24 loc) · 917 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Example Job for running the OpenCL enumopencl sample program inside a container
#
# This version of the Job requests a compute-only device from the MCDM device plugin. For a version that
# requests a display device from the WDDM device plugin, see the file `opencl-enum-wddm.yml`
#
# NOTE: this Job will only work when the device allocated by the MCDM device plugin is is a GPU that supports
# OpenCL, otherwise the DLL files required by `enumopencl.exe` won't exist and the Pod will fail to start.
apiVersion: batch/v1
kind: Job
metadata:
name: example-opencl-enum-mcdm
spec:
template:
spec:
containers:
- name: example-opencl-enum-mcdm
image: "index.docker.io/tensorworks/example-opencl-enum:0.0.1"
resources:
limits:
directx.microsoft.com/compute: 1
nodeSelector:
"kubernetes.io/os": windows
restartPolicy: Never
backoffLimit: 0