AutoPas  3.0.0
Loading...
Searching...
No Matches
Classes | Functions
GenerateValidConfigurations.h File Reference
#include <set>
#include "autopas/options/ContainerOption.h"
#include "autopas/options/DataLayoutOption.h"
#include "autopas/options/InteractionTypeOption.h"
#include "autopas/options/LoadEstimatorOption.h"
#include "autopas/options/Newton3Option.h"
#include "autopas/options/TraversalOption.h"
#include "autopas/tuning/Configuration.h"
#include "autopas/tuning/utils/SearchSpaceGenerators.h"
#include "autopas/utils/NumberSetFinite.h"
Include dependency graph for GenerateValidConfigurations.h:

Go to the source code of this file.

Classes

struct  ContainerConfiguration
 Struct to hold a container and a cell size factor. More...
 

Functions

std::ostream & operator<< (std::ostream &os, const ContainerConfiguration &configuration)
 Stream operator for ContainerConfiguration.
 
std::set< autopas::ConfigurationgenerateAllValidConfigurations (autopas::InteractionTypeOption interactionType, const std::set< autopas::ContainerOption > &allowedContainerOptions=autopas::ContainerOption::getAllOptions(), const std::set< autopas::TraversalOption > &allowedTraversalOptions=autopas::TraversalOption::getAllOptions(), const std::set< autopas::LoadEstimatorOption > &allowedLoadEstimatorOptions=autopas::LoadEstimatorOption::getAllOptions(), const std::set< autopas::DataLayoutOption > &allowedDataLayoutOptions=autopas::DataLayoutOption::getAllOptions(), const std::set< autopas::Newton3Option > &allowedNewton3Options=autopas::Newton3Option::getAllOptions(), const std::set< double > &allowedCellSizeFactors={0.5, 1.0, 1.5}, const std::set< autopas::VectorizationPatternOption > &allowedVectorPatterns=autopas::VectorizationPatternOption::getAllOptions())
 Generates all valid configurations for a given interaction type or all interaction types.
 
std::set< ContainerConfigurationgenerateAllValidContainerConfigurations (const std::set< autopas::ContainerOption > &allowedContainerOptions=autopas::ContainerOption::getAllOptions(), const std::set< double > &allowedCellSizeFactors={0.5, 1.0, 1.5})
 Generates all valid container configurations.
 

Detailed Description

Author
The AI ghost of F. Gratl
Date
24.03.26

Function Documentation

◆ generateAllValidConfigurations()

std::set< autopas::Configuration > generateAllValidConfigurations ( autopas::InteractionTypeOption  interactionType,
const std::set< autopas::ContainerOption > &  allowedContainerOptions = autopas::ContainerOption::getAllOptions(),
const std::set< autopas::TraversalOption > &  allowedTraversalOptions = autopas::TraversalOption::getAllOptions(),
const std::set< autopas::LoadEstimatorOption > &  allowedLoadEstimatorOptions = autopas::LoadEstimatorOption::getAllOptions(),
const std::set< autopas::DataLayoutOption > &  allowedDataLayoutOptions = autopas::DataLayoutOption::getAllOptions(),
const std::set< autopas::Newton3Option > &  allowedNewton3Options = autopas::Newton3Option::getAllOptions(),
const std::set< double > &  allowedCellSizeFactors = {0.5, 1.0, 1.5},
const std::set< autopas::VectorizationPatternOption > &  allowedVectorPatterns = autopas::VectorizationPatternOption::getAllOptions() 
)
inline

Generates all valid configurations for a given interaction type or all interaction types.

Intended to be used with the default arguments. If one is overridden, make sure you have a good reason and write down why.

Parameters
interactionTypeThe interaction type. If provided with "all", all valid configurations for all interaction types are returned.
allowedContainerOptionsBy default, all options.
allowedTraversalOptionsBy default, all options.
allowedLoadEstimatorOptionsBy default, all options.
allowedDataLayoutOptionsBy default, all options.
allowedNewton3OptionsBy default, all options.
allowedCellSizeFactorsBy default, {0.5, 1.0, 1.5}
allowedVectorPatternsBy default, all options.
Returns

◆ generateAllValidContainerConfigurations()

std::set< ContainerConfiguration > generateAllValidContainerConfigurations ( const std::set< autopas::ContainerOption > &  allowedContainerOptions = autopas::ContainerOption::getAllOptions(),
const std::set< double > &  allowedCellSizeFactors = {0.5, 1.0, 1.5} 
)
inline

Generates all valid container configurations.

Intended to be used with the default arguments. If one is overridden, make sure you have a good reason and write down why.

Parameters
allowedContainerOptionsBy default, all options.
allowedCellSizeFactorsBy default, {0.5, 1.0, 1.5}
Returns

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
const ContainerConfiguration configuration 
)
inline

Stream operator for ContainerConfiguration.

Parameters
os
configuration
Returns