From 33ecf4e7a385f11a94304804379179aff906b1f3 Mon Sep 17 00:00:00 2001 From: Srihari Karnam Date: Tue, 23 Apr 2019 17:03:41 +0530 Subject: [PATCH] Workaround for inclusive scan issue --- thrust/system/cuda/detail/scan.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thrust/system/cuda/detail/scan.inl b/thrust/system/cuda/detail/scan.inl index e96f2f1..f32146a 100644 --- a/thrust/system/cuda/detail/scan.inl +++ b/thrust/system/cuda/detail/scan.inl @@ -221,7 +221,7 @@ OutputIterator inclusive_scan(execution_policy &exec, hipStream_t s = stream(thrust::detail::derived_cast(exec)); - const Size threshold_of_parallelism = 20000; + const Size threshold_of_parallelism = 512; //Workaround for inclusive scan issue if(n < threshold_of_parallelism) {