cuda::experimental::kernel_config

Defined in /home/runner/work/cccl/cccl/cudax/include/cuda/experimental/__launch/configuration.cuh

template<typename Dimensions, typename ...Options>
struct kernel_config

Type describing a kernel launch configuration.

This type should not be constructed directly and make_config helper function should be used instead

Template Parameters
  • Dimensions – cuda::experimetnal::hierarchy_dimensions instance that describes dimensions of thread hierarchy in this configuration object

  • Options – Types of options that were added to this configuration object

Public Functions

inline constexpr kernel_config(const Dimensions &dims, const Options&... opts)
inline constexpr kernel_config(const Dimensions &dims, const ::cuda::std::tuple<Options...> &opts)
template<typename ...NewOptions>
inline auto add(const NewOptions&... new_options) const

Add a new option to this configuration.

Returns a new kernel_config that has all option and dimensions from this kernel_config with the option from the argument added to it

Parameters

new_option – Option to be added to the configuration

Public Members

Dimensions dims
::cuda::std::tuple<Options...> options