Skip to content

Commit

Permalink
Removed unused code
Browse files Browse the repository at this point in the history
The only usage of sm_count was removed in ce261ed
  • Loading branch information
ByteHamster authored and alliepiper committed Sep 21, 2020
1 parent a3ee304 commit f558887
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cub/device/dispatch/dispatch_scan.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f558887

Please sign in to comment.