Skip to content

Commit

Permalink
Edit patch to throw std::runtime_error if 64 bit count is detected in…
Browse files Browse the repository at this point in the history
… THRUST_DOUBLE_INDEX_TYPE_DISPATCH.
  • Loading branch information
bdice committed Aug 6, 2022
1 parent 2941f1f commit 7c621d0
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion cpp/cmake/thrust.patch
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ index 5d486789..b42fb5f0 100644
{
if (compare_op(keys[j + 1], keys[j]))
diff --git a/thrust/system/cuda/detail/dispatch.h b/thrust/system/cuda/detail/dispatch.h
index d0e3f94..7d473de 100644
index d0e3f94..76774b0 100644
--- a/thrust/system/cuda/detail/dispatch.h
+++ b/thrust/system/cuda/detail/dispatch.h
@@ -32,9 +32,8 @@
Expand All @@ -101,3 +101,16 @@ index d0e3f94..7d473de 100644

/**
* Dispatch between 32-bit and 64-bit index based versions of the same algorithm
@@ -52,10 +51,8 @@
status = call arguments; \
} \
else { \
- auto THRUST_PP_CAT2(count1, _fixed) = static_cast<thrust::detail::int64_t>(count1); \
- auto THRUST_PP_CAT2(count2, _fixed) = static_cast<thrust::detail::int64_t>(count2); \
- status = call arguments; \
- }
+ throw std::runtime_error("THRUST_DOUBLE_INDEX_TYPE_DISPATCH 64-bit count is unsupported in libcudf"); \
+ }
/**
* Dispatch between 32-bit and 64-bit index based versions of the same algorithm
* implementation. This version allows using different token sequences for callables

0 comments on commit 7c621d0

Please sign in to comment.