From 767dadb8da626156084a28c1bf70f241a236927b Mon Sep 17 00:00:00 2001 From: Felix Kallenborn Date: Wed, 20 Jan 2021 15:44:39 +0100 Subject: [PATCH] Use data type OffsetT for DispatchRadixSort correctly in InitPassConfig. This allows to use radix sort on problem sizes which cannot be represented by int --- cub/device/dispatch/dispatch_radix_sort.cuh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cub/device/dispatch/dispatch_radix_sort.cuh b/cub/device/dispatch/dispatch_radix_sort.cuh index 7d2bedf77f..023fe97abd 100644 --- a/cub/device/dispatch/dispatch_radix_sort.cuh +++ b/cub/device/dispatch/dispatch_radix_sort.cuh @@ -1209,7 +1209,7 @@ struct DispatchRadixSort : DownsweepKernelT downsweep_kernel, int ptx_version, int sm_count, - int num_items) + OffsetT num_items) { cudaError error = cudaSuccess; do