CnC
Public Types | Public Member Functions | List of all members
tag_tuner< Range, Partitioner > Struct Template Reference

Default implementations of the tag-tuner interface for tag-collections. More...

Inherits tuner_base.

Public Types

typedef Range range_type
 A tag tuner must provide the type of the range, default is no range.
 
typedef Internal::no_tag_table tag_table_type
 A tag tuner must provide a tag-table type; default is no tag-table.
 
typedef Partitioner partitioner_type
 The type of the partitioner.
 

Public Member Functions

partitioner_type partitioner () const
 return a partitioner for range-based features, such as parallel_for More...
 
bool preserve_tags () const
 return true if tag memoization is wanted; returns false by default (with no_tag_table)
 

Additional Inherited Members

- Static Public Member Functions inherited from tuner_base
static int myPid ()
 
static int numProcs ()
 
template<typename Ctxt >
static int numThreads (const Ctxt &ctxt)
 returns number of threads used by scheduler in given context
 

Detailed Description

template<typename Range = Internal::no_range, typename Partitioner = default_partitioner<>>
struct CnC::tag_tuner< Range, Partitioner >

Default implementations of the tag-tuner interface for tag-collections.

Use this if you are going put ranges. Optional argument is a custom partitioner. Ranges don't work with memoization (yet)

Definition at line 553 of file default_tuner.h.

Member Function Documentation

◆ partitioner()

partitioner_type partitioner ( ) const
inline

return a partitioner for range-based features, such as parallel_for

See also
default_partitioner for the expected signature of partitioners overwrite partitioner() if it doesn't come with default-constructor or if the default constructor is insufficient.

Definition at line 566 of file default_tuner.h.

567  {
569  }
Partitioner partitioner_type
The type of the partitioner.

The documentation for this struct was generated from the following file: