Skip to content

Commit

Permalink
Add more CUB transform benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Nov 20, 2024
1 parent e7486e3 commit cbe8d57
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cub/benchmarks/bench/transform/babelstream1.cu
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# endif
#endif

#include "babelstream.h"
#include "common.h"

#if !TUNE_BASE
# if CUB_DETAIL_COUNT(__CUDA_ARCH_LIST__) != 1
Expand Down
2 changes: 1 addition & 1 deletion cub/benchmarks/bench/transform/babelstream2.cu
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# endif
#endif

#include "babelstream.h"
#include "common.h"

#if !TUNE_BASE
# if CUB_DETAIL_COUNT(__CUDA_ARCH_LIST__) != 1
Expand Down
2 changes: 1 addition & 1 deletion cub/benchmarks/bench/transform/babelstream3.cu
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# endif
#endif

#include "babelstream.h"
#include "common.h"

#if !TUNE_BASE
# if CUB_DETAIL_COUNT(__CUDA_ARCH_LIST__) != 1
Expand Down
File renamed without changes.
13 changes: 13 additions & 0 deletions cub/benchmarks/nvbench_helper/nvbench_helper/nvbench_helper.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,19 @@ NVBENCH_DECLARE_TYPE_STRINGS(complex, "C64", "complex");
NVBENCH_DECLARE_TYPE_STRINGS(::cuda::std::false_type, "false", "false_type");
NVBENCH_DECLARE_TYPE_STRINGS(::cuda::std::true_type, "true", "true_type");

template <typename T, T I>
struct nvbench::type_strings<::cuda::std::integral_constant<T, I>>
{
static std::string input_string()
{
return std::to_string(I);
}
static std::string description()
{
return "integral_constant<" + type_strings<T>::description() + ", " + std::to_string(I) + ">";
}
};

namespace detail
{

Expand Down

0 comments on commit cbe8d57

Please sign in to comment.