Skip to content

Commit 803dcce

Browse files
authored
Merge pull request #1575 from kbenzie/benie/native-cpu-adapter-registry
[Loader] Add Native CPU to adapter registry
2 parents 23b8630 + 66a2b06 commit 803dcce

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

source/loader/ur_adapter_registry.hpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,13 @@ class AdapterRegistry {
114114
// to load the adapter.
115115
std::vector<std::vector<fs::path>> adaptersLoadPaths;
116116

117-
static constexpr std::array<const char *, 4> knownAdapterNames{
117+
static constexpr std::array<const char *, 5> knownAdapterNames{
118118
MAKE_LIBRARY_NAME("ur_adapter_level_zero", "0"),
119-
MAKE_LIBRARY_NAME("ur_adapter_hip", "0"),
120119
MAKE_LIBRARY_NAME("ur_adapter_opencl", "0"),
121-
MAKE_LIBRARY_NAME("ur_adapter_cuda", "0")};
120+
MAKE_LIBRARY_NAME("ur_adapter_cuda", "0"),
121+
MAKE_LIBRARY_NAME("ur_adapter_hip", "0"),
122+
MAKE_LIBRARY_NAME("ur_adapter_native_cpu", "0"),
123+
};
122124

123125
std::optional<std::vector<fs::path>> getEnvAdapterSearchPaths() {
124126
std::optional<std::vector<std::string>> pathStringsOpt;

0 commit comments

Comments
 (0)