Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.
Closed
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.p4config
*~
\#*
/build
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel this helpful. If you don't like it, I will revert it.

5 changes: 5 additions & 0 deletions test/test_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -628,11 +628,16 @@ __host__ __device__ __forceinline__ void InitValue(
cub::KeyValuePair<KeyT, ValueT>& value,
int index = 0)
{
#ifndef __CUDA_ARCH__
InitValue(gen_mode, value.value, index);

// Assign corresponding flag with a likelihood of the last bit being set with entropy-reduction level 3
RandomBits(value.key, 3);
value.key = (value.key & 0x1);
#else
printf("This overload of InitValue is not implemented on device");
assert(false);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will have no effect in non-debugging builds. cub::ThreadTrap would generate an appropriate error for all build configs here..

#endif
}


Expand Down