From 7c621d02301745ebae45e60d1a417127dd4ef337 Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Sat, 6 Aug 2022 09:14:49 -0500 Subject: [PATCH] Edit patch to throw std::runtime_error if 64 bit count is detected in THRUST_DOUBLE_INDEX_TYPE_DISPATCH. --- cpp/cmake/thrust.patch | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/cpp/cmake/thrust.patch b/cpp/cmake/thrust.patch index 97a801fcb47..ae1962e4738 100644 --- a/cpp/cmake/thrust.patch +++ b/cpp/cmake/thrust.patch @@ -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 @@ @@ -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(count1); \ +- auto THRUST_PP_CAT2(count2, _fixed) = static_cast(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