Skip to content

Commit 66a2b06

Browse files
committed
[Loader] Add Native CPU to adapter registry
This patch belatedly adds the Native CPU adapter to the list of known adapters in the adapter registry. It also reorders the adapters in the know list.
1 parent 9990d44 commit 66a2b06

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)