From f558887037ca8178a9968a93f3fa5ba3c3da405e Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Mon, 17 Aug 2020 19:02:41 +0200 Subject: [PATCH] Removed unused code The only usage of sm_count was removed in ce261ed64b89be0748e302592e092363d8b08565 --- cub/device/dispatch/dispatch_scan.cuh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cub/device/dispatch/dispatch_scan.cuh b/cub/device/dispatch/dispatch_scan.cuh index 24b30f102c..0b384856e5 100644 --- a/cub/device/dispatch/dispatch_scan.cuh +++ b/cub/device/dispatch/dispatch_scan.cuh @@ -335,10 +335,6 @@ struct DispatchScan: int device_ordinal; if (CubDebug(error = cudaGetDevice(&device_ordinal))) break; - // Get SM count - int sm_count; - if (CubDebug(error = cudaDeviceGetAttribute (&sm_count, cudaDevAttrMultiProcessorCount, device_ordinal))) break; - // Number of input tiles int tile_size = Policy::BLOCK_THREADS * Policy::ITEMS_PER_THREAD; int num_tiles = (num_items + tile_size - 1) / tile_size;