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

First checkpoint for Wconversions warning fixes #382

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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