Skip to content

Commit

Permalink
fix: missing import
Browse files Browse the repository at this point in the history
  • Loading branch information
StRigaud committed Oct 4, 2023
1 parent 1276f5a commit 61ae5b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
10 changes: 2 additions & 8 deletions clic/src/cudabackend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,21 @@ CUDABackend::CUDABackend()
#endif
}

#if USE_CUDA
[[nodiscard]] static auto
getErrorString(const CUresult & error) -> std::string
{
#if USE_CUDA
const char * error_string;
cuGetErrorString(error, &error_string);
return std::string(error_string);
#else
return std::string("CUDA is not enabled");
#endif
}

[[nodiscard]] static auto
getErrorString(const nvrtcResult & error) -> std::string
{
#if USE_CUDA
return std::string(nvrtcGetErrorString(error));
#else
return std::string("CUDA is not enabled");
#endif
}
#endif

auto
CUDABackend::getDevices(const std::string & type) const -> std::vector<Device::Pointer>
Expand Down
1 change: 1 addition & 0 deletions clic/src/openclbackend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include "cle_preamble_cl.h"

#include <array>
#include <unordered_map>

namespace cle
{
Expand Down

0 comments on commit 61ae5b3

Please sign in to comment.