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 {
2727 Etor<"UNKNOWN", "The backend is not recognized">,
2828 Etor<"CUDA", "The backend is CUDA">,
2929 Etor<"AMDGPU", "The backend is AMDGPU">,
30+ Etor<"LEVEL_ZERO", "The backend is Level Zero">,
3031 Etor<"HOST", "The backend is the host">,
3132 ];
3233}
Original file line number Diff line number Diff line change @@ -231,6 +231,8 @@ constexpr ol_platform_backend_t pluginNameToBackend(StringRef Name) {
231231 return OL_PLATFORM_BACKEND_AMDGPU;
232232 } else if (Name == " cuda" ) {
233233 return OL_PLATFORM_BACKEND_CUDA;
234+ } else if (Name == " level_zero" ) {
235+ return OL_PLATFORM_BACKEND_LEVEL_ZERO;
234236 } else {
235237 return OL_PLATFORM_BACKEND_UNKNOWN;
236238 }
You can’t perform that action at this time.
0 commit comments