Shortcuts

Template Function ripple::get_dim_num_threads

Function Documentation

template<typename T, typename U>
auto ripple::get_dim_num_threads(T elements, U max_threads) noexcept -> size_t

Computes the number of threads given that there are elements in the dimension, and max_threads maximum number of threads for the dimension.

If elements < max_threads, then this returns max_threads, otherwise it returns elements.

Return

The number of threads.

Parameters
  • elements: The number of elements in the dimension.

  • max_threads: The maximum number of threads for the dimension.

Template Parameters
  • T: The type of the elements.

  • U: The type of the max threads.

Docs

Access comprehensive developer documentation for Ripple

View Docs

Tutorials

Get tutorials to help with understand all features

View Tutorials

Examples

Find examples to help get started

View Examples