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

Commit

Permalink
Addressed feedback on review for improved shuffle
Browse files Browse the repository at this point in the history
  • Loading branch information
djns99 committed Nov 14, 2021
1 parent 7cb68d7 commit 6a18e8b
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 255 deletions.
2 changes: 0 additions & 2 deletions internal/benchmark/bench.cu
Original file line number Diff line number Diff line change
Expand Up @@ -992,15 +992,13 @@ void run_core_primitives_experiments_for_type()
, RegularTrials
>::run_experiment();

#if THRUST_CPP_DIALECT >= 2011
experiment_driver<
shuffle_tester
, ElementMetaType
, Elements / sizeof(typename ElementMetaType::type)
, BaselineTrials
, RegularTrials
>::run_experiment();
#endif
}

///////////////////////////////////////////////////////////////////////////////
Expand Down
2 changes: 0 additions & 2 deletions testing/shuffle.cu
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include <thrust/detail/config.h>

#if THRUST_CPP_DIALECT >= 2011
#include <map>
#include <limits>
#include <thrust/random.h>
Expand Down Expand Up @@ -601,4 +600,3 @@ void TestShuffleEvenDistribution() {
}
}
DECLARE_INTEGRAL_VECTOR_UNITTEST(TestShuffleEvenDistribution);
#endif
250 changes: 0 additions & 250 deletions testing/shuffle_mmd.cu

This file was deleted.

2 changes: 1 addition & 1 deletion thrust/system/detail/generic/shuffle.inl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class feistel_bijection {

// Find the nearest power of two
constexpr static __host__ __device__ std::uint64_t get_cipher_bits(std::uint64_t m) {
if (m == 0) return 0;
if (m <= 16) return 4;
std::uint64_t i = 0;
m--;
while (m != 0) {
Expand Down

0 comments on commit 6a18e8b

Please sign in to comment.