From 32da884b9cea2e247334ba7ed6763d922ca1efad Mon Sep 17 00:00:00 2001 From: Dominique LaSalle Date: Wed, 21 Apr 2021 15:14:29 -0700 Subject: [PATCH 1/2] Fix variable type --- cub/device/device_histogram.cuh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cub/device/device_histogram.cuh b/cub/device/device_histogram.cuh index f958e1bfcb..2f8a67799d 100644 --- a/cub/device/device_histogram.cuh +++ b/cub/device/device_histogram.cuh @@ -346,7 +346,7 @@ struct DeviceHistogram lower_level, upper_level, num_pixels, - 1, + static_cast(1), sizeof(SampleT) * NUM_CHANNELS * num_pixels, stream, debug_synchronous); From 69513b733debbc4346eda56538e28be0344f7fa3 Mon Sep 17 00:00:00 2001 From: Dominique LaSalle Date: Thu, 22 Apr 2021 10:37:15 -0700 Subject: [PATCH 2/2] Wrap other int with static_cast --- cub/device/device_histogram.cuh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cub/device/device_histogram.cuh b/cub/device/device_histogram.cuh index 2f8a67799d..684bd44256 100644 --- a/cub/device/device_histogram.cuh +++ b/cub/device/device_histogram.cuh @@ -150,7 +150,7 @@ struct DeviceHistogram lower_level1, upper_level1, num_samples, - 1, + static_cast(1), sizeof(SampleT) * num_samples, stream, debug_synchronous);