@@ -57,10 +57,10 @@ namespace cuda
57
57
void check_error (const ::cudaError_t e, const char * f, int n)
58
58
{
59
59
if (e != ::cudaSuccess) {
60
- std::stringstream s;
60
+ :: std::stringstream s;
61
61
s << ::cudaGetErrorName (e) << " (" << e << " )@" << f << " #L" << n << " : "
62
62
<< ::cudaGetErrorString (e);
63
- throw std::runtime_error{s.str ()};
63
+ throw :: std::runtime_error{s.str ()};
64
64
}
65
65
}
66
66
@@ -69,13 +69,13 @@ struct deleter
69
69
void operator ()(void * p) const { CHECK_CUDA_ERROR (::cudaFree (p)); }
70
70
};
71
71
template <typename T>
72
- using unique_ptr = std::unique_ptr<T, deleter>;
72
+ using unique_ptr = :: std::unique_ptr<T, deleter>;
73
73
74
74
template <typename T>
75
- typename std::enable_if<std::is_array<T>::value, cuda::unique_ptr<T>>::type make_unique (
76
- const std::size_t n)
75
+ typename :: std::enable_if<:: std::is_array<T>::value, cuda::unique_ptr<T>>::type make_unique (
76
+ const :: std::size_t n)
77
77
{
78
- using U = typename std::remove_extent<T>::type;
78
+ using U = typename :: std::remove_extent<T>::type;
79
79
U * p;
80
80
CHECK_CUDA_ERROR (::cudaMalloc (reinterpret_cast <void **>(&p), sizeof (U) * n));
81
81
return cuda::unique_ptr<T>{p};
@@ -107,7 +107,7 @@ inline T * get_next_ptr(size_t num_elem, void *& workspace, size_t & workspace_s
107
107
{
108
108
size_t size = get_size_aligned<T>(num_elem);
109
109
if (size > workspace_size) {
110
- throw std::runtime_error (" Workspace is too small!" );
110
+ throw :: std::runtime_error (" Workspace is too small!" );
111
111
}
112
112
workspace_size -= size;
113
113
T * ptr = reinterpret_cast <T *>(workspace);
0 commit comments