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) {