Skip to content

Commit

Permalink
Merge pull request #687 from aarongreig/aaron/addCudaToKnownAdapters
Browse files Browse the repository at this point in the history
Add the cuda adapter to the list of known adapter libraries.
  • Loading branch information
pbalcer authored Jul 5, 2023
2 parents 9595961 + d520e24 commit 22c39d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/loader/ur_adapter_registry.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@ class AdapterRegistry {
// to load the adapter.
std::vector<std::vector<fs::path>> adaptersLoadPaths;

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

std::optional<std::vector<fs::path>> getEnvAdapterSearchPaths() {
std::optional<std::vector<std::string>> pathStringsOpt;
Expand Down

0 comments on commit 22c39d1

Please sign in to comment.