21 #ifndef ROCPRIM_DEVICE_DEVICE_ADJACENT_DIFFERENCE_CONFIG_HPP_ 22 #define ROCPRIM_DEVICE_DEVICE_ADJACENT_DIFFERENCE_CONFIG_HPP_ 24 #include <type_traits> 26 #include "../config.hpp" 27 #include "../detail/various.hpp" 28 #include "../functional.hpp" 30 #include "config_types.hpp" 32 #include "../block/block_load.hpp" 33 #include "../block/block_store.hpp" 38 BEGIN_ROCPRIM_NAMESPACE
48 template <
unsigned int BlockSize,
49 unsigned int ItemsPerThread,
52 unsigned int SizeLimit = ROCPRIM_GRID_SIZE_LIMIT>
62 template <
class Value>
65 static constexpr
unsigned int item_scale
66 = ::rocprim::detail::ceiling_div<unsigned int>(
sizeof(Value),
sizeof(
int));
71 template <
unsigned int TargetArch,
class Value>
73 :
select_arch<TargetArch, adjacent_difference_config_fallback<Value>>
84 #endif // ROCPRIM_DEVICE_DEVICE_ADJACENT_DIFFERENCE_CONFIG_HPP_ ROCPRIM_HOST_DEVICE constexpr T max(const T &a, const T &b)
Returns the maximum of its arguments.
Definition: functional.hpp:55
block_store_method
block_store_method enumerates the methods available to store a striped arrangement of items into a bl...
Definition: block_store.hpp:41
Configuration of device-level adjacent_difference primitives.
Definition: device_adjacent_difference_config.hpp:53
Deprecated: Configuration of device-level scan primitives.
Definition: block_histogram.hpp:62
Definition: device_adjacent_difference_config.hpp:63
block_load_method
block_load_method enumerates the methods available to load data from continuous memory into a blocked...
Definition: block_load.hpp:41
A striped arrangement of data from continuous memory is locally transposed into a blocked arrangement...
Definition: config_types.hpp:140
static constexpr block_load_method load_method
input values are loaded using this method
Definition: device_adjacent_difference_config.hpp:55
static constexpr block_store_method store_method
input values are stored using this method
Definition: device_adjacent_difference_config.hpp:56
A blocked arrangement of items is locally transposed and stored as a striped arrangement of data on c...
Configuration of particular kernels launched by device-level operation.
Definition: config_types.hpp:84
Definition: device_adjacent_difference_config.hpp:72