21 #ifndef ROCPRIM_DEVICE_DEVICE_HISTOGRAM_CONFIG_HPP_ 22 #define ROCPRIM_DEVICE_DEVICE_HISTOGRAM_CONFIG_HPP_ 24 #include "config_types.hpp" 25 #include "detail/config/device_histogram.hpp" 30 BEGIN_ROCPRIM_NAMESPACE
35 template<
typename HistogramConfig>
36 constexpr histogram_config_params wrap_histogram_config()
38 return histogram_config_params{
39 {HistogramConfig::histogram::block_size,
40 HistogramConfig::histogram::items_per_thread,
41 HistogramConfig::histogram::size_limit},
42 HistogramConfig::max_grid_size,
43 HistogramConfig::shared_impl_max_bins,
44 HistogramConfig::shared_impl_histograms
48 template<
typename HistogramConfig,
typename,
unsigned int,
unsigned int>
51 template<target_arch Arch>
58 template<
typename Sample,
unsigned int Channels,
unsigned int ActiveChannels>
61 template<target_arch Arch>
62 struct architecture_config
65 = wrap_histogram_config<default_histogram_config<static_cast<unsigned int>(Arch),
72 #ifndef DOXYGEN_SHOULD_SKIP_THIS 73 template<
typename HistogramConfig,
75 unsigned int Channels,
76 unsigned int ActiveChannels>
77 template<target_arch Arch>
80 architecture_config<Arch>::params;
82 template<
typename Sample,
unsigned int Channels,
unsigned int ActiveChannels>
83 template<target_arch Arch>
87 #endif // DOXYGEN_SHOULD_SKIP_THIS 96 #endif // ROCPRIM_DEVICE_DEVICE_HISTOGRAM_CONFIG_HPP_ Definition: device_histogram_config.hpp:52
Special type used to show that the given device-level operation will be executed with optimal configu...
Definition: config_types.hpp:45
Deprecated: Configuration of device-level scan primitives.
Definition: block_histogram.hpp:62
Definition: device_histogram_config.hpp:49
Definition: test_device_binary_search.cpp:37
Provides the kernel parameters for histogram_even, multi_histogram_even, histogram_range, and multi_histogram_range based on autotuned configurations or user-provided configurations.
Definition: device_config_helper.hpp:607