|
@@ -56,10 +56,10 @@ namespace cuda
|
|
|
inline void check_error(const ::cudaError_t e, const char * f, int n)
|
|
|
{
|
|
|
if (e != ::cudaSuccess) {
|
|
|
- std::stringstream s;
|
|
|
+ ::std::stringstream s;
|
|
|
s << ::cudaGetErrorName(e) << " (" << e << ")@" << f << "#L" << n << ": "
|
|
|
<< ::cudaGetErrorString(e);
|
|
|
- throw std::runtime_error{s.str()};
|
|
|
+ throw ::std::runtime_error{s.str()};
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -69,7 +69,7 @@ struct deleter
|
|
|
};
|
|
|
|
|
|
template <typename T>
|
|
|
-using unique_ptr = std::unique_ptr<T, deleter>;
|
|
|
+using unique_ptr = ::std::unique_ptr<T, deleter>;
|
|
|
|
|
|
template <typename T>
|
|
|
typename std::enable_if<std::is_array<T>::value, cuda::unique_ptr<T>>::type make_unique(
|
|
@@ -107,7 +107,7 @@ inline T * get_next_ptr(size_t num_elem, void *& workspace, size_t & workspace_s
|
|
|
{
|
|
|
size_t size = get_size_aligned<T>(num_elem);
|
|
|
if (size > workspace_size) {
|
|
|
- throw std::runtime_error("Workspace is too small!");
|
|
|
+ throw ::std::runtime_error("Workspace is too small!");
|
|
|
}
|
|
|
workspace_size -= size;
|
|
|
T * ptr = reinterpret_cast<T *>(workspace);
|