Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #382 from matt-stack/bug/github/wconversion-thrust…
Browse files Browse the repository at this point in the history
…1478

First checkpoint for Wconversions warning fixes
  • Loading branch information
alliepiper authored Oct 6, 2021
2 parents 05bb841 + 1110eb4 commit 6249c14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cub/agent/single_pass_scan_operators.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ struct ReduceByKeyScanTileState<ValueT, KeyT, true>
// Constants
enum
{
PAIR_SIZE = sizeof(ValueT) + sizeof(KeyT),
PAIR_SIZE = static_cast<int>(sizeof(ValueT) + sizeof(KeyT)),
TXN_WORD_SIZE = 1 << Log2<PAIR_SIZE + 1>::VALUE,
STATUS_WORD_SIZE = TXN_WORD_SIZE - PAIR_SIZE,

Expand Down
2 changes: 1 addition & 1 deletion cub/block/block_radix_rank.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ private:
BYTES_PER_COUNTER = sizeof(DigitCounter),
LOG_BYTES_PER_COUNTER = Log2<BYTES_PER_COUNTER>::VALUE,

PACKING_RATIO = sizeof(PackedCounter) / sizeof(DigitCounter),
PACKING_RATIO = static_cast<int>(sizeof(PackedCounter) / sizeof(DigitCounter)),
LOG_PACKING_RATIO = Log2<PACKING_RATIO>::VALUE,

LOG_COUNTER_LANES = CUB_MAX((int(RADIX_BITS) - int(LOG_PACKING_RATIO)), 0), // Always at least one lane
Expand Down

0 comments on commit 6249c14

Please sign in to comment.