File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ def ol_platform_backend_t : Enum {
27
27
Etor<"UNKNOWN", "The backend is not recognized">,
28
28
Etor<"CUDA", "The backend is CUDA">,
29
29
Etor<"AMDGPU", "The backend is AMDGPU">,
30
+ Etor<"LEVEL_ZERO", "The backend is Level Zero">,
30
31
Etor<"HOST", "The backend is the host">,
31
32
];
32
33
}
Original file line number Diff line number Diff line change @@ -231,6 +231,8 @@ constexpr ol_platform_backend_t pluginNameToBackend(StringRef Name) {
231
231
return OL_PLATFORM_BACKEND_AMDGPU;
232
232
} else if (Name == " cuda" ) {
233
233
return OL_PLATFORM_BACKEND_CUDA;
234
+ } else if (Name == " level_zero" ) {
235
+ return OL_PLATFORM_BACKEND_LEVEL_ZERO;
234
236
} else {
235
237
return OL_PLATFORM_BACKEND_UNKNOWN;
236
238
}
You can’t perform that action at this time.
0 commit comments