Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Commit 654aa3b

Browse files
committed
Fix doit_device
1 parent aa37b60 commit 654aa3b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

thrust/system/cuda/detail/core/triple_chevron_launch.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ namespace launcher {
103103
fill_arguments(buffer, copy_arg(buffer, offset, arg), args...);
104104
}
105105

106+
#ifdef THRUST_RDC_ENABLED
106107
template<class K, class... Args>
107108
cudaError_t __device__
108109
doit_device(K k, Args const&... args) const
@@ -124,6 +125,14 @@ namespace launcher {
124125
shared_mem,
125126
stream);
126127
}
128+
#else
129+
template<class K, class... Args>
130+
cudaError_t __device__
131+
doit_device(K, Args const&... ) const
132+
{
133+
return cudaErrorNotSupported;
134+
}
135+
#endif
127136

128137
__thrust_exec_check_disable__
129138
template <class K, class... Args>

0 commit comments

Comments
 (0)