Skip to content

Commit 22c39d1

Browse files
authored
Merge pull request #687 from aarongreig/aaron/addCudaToKnownAdapters
Add the cuda adapter to the list of known adapter libraries.
2 parents 9595961 + d520e24 commit 22c39d1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/loader/ur_adapter_registry.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,9 @@ class AdapterRegistry {
106106
// to load the adapter.
107107
std::vector<std::vector<fs::path>> adaptersLoadPaths;
108108

109-
static constexpr std::array<const char *, 1> knownAdapterNames{
110-
MAKE_LIBRARY_NAME("ur_adapter_level_zero", "0")};
109+
static constexpr std::array<const char *, 2> knownAdapterNames{
110+
MAKE_LIBRARY_NAME("ur_adapter_level_zero", "0"),
111+
MAKE_LIBRARY_NAME("ur_adapter_cuda", "0")};
111112

112113
std::optional<std::vector<fs::path>> getEnvAdapterSearchPaths() {
113114
std::optional<std::vector<std::string>> pathStringsOpt;

0 commit comments

Comments
 (0)