24.02.1
|
Common command line options used to configure the gemm examples. More...
#include <CommonGemmExampleOptions.h>
Public Member Functions | |
CommonGemmExampleOptions (arm_compute::utils::CommandLineParser &parser, arm_compute::DataType default_data_type=arm_compute::DataType::F32) | |
Constructor. More... | |
CommonGemmExampleOptions (const CommonGemmExampleOptions &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CommonGemmExampleOptions & | operator= (const CommonGemmExampleOptions &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CommonGemmExampleOptions (CommonGemmExampleOptions &&)=default | |
Allow instances of this class to be moved. More... | |
CommonGemmExampleOptions & | operator= (CommonGemmExampleOptions &&)=default |
Allow instances of this class to be moved. More... | |
~CommonGemmExampleOptions ()=default | |
Default destructor. More... | |
Data Fields | |
arm_compute::utils::ToggleOption * | help |
Show help option. More... | |
arm_compute::utils::SimpleOption< size_t > * | M |
Number of lhs matrix rows option. More... | |
arm_compute::utils::SimpleOption< size_t > * | N |
Number of rhs matrix columns option. More... | |
arm_compute::utils::SimpleOption< size_t > * | K |
Number of lhs matrix columns/rhs matrix rows option. More... | |
arm_compute::utils::SimpleOption< size_t > * | B |
Batch size option. More... | |
arm_compute::utils::EnumOption< arm_compute::DataType > * | data_type |
Data type. More... | |
arm_compute::utils::EnumOption< arm_compute::CLTunerMode > * | tuner_mode |
OpenCL tuner mode. More... | |
Common command line options used to configure the gemm examples.
The options in this object get populated when "parse()" is called on the parser used to construct it. The expected workflow is:
CommandLineParser parser; CommonOptions options( parser ); parser.parse(argc, argv);
Definition at line 66 of file CommonGemmExampleOptions.h.
CommonGemmExampleOptions | ( | arm_compute::utils::CommandLineParser & | parser, |
arm_compute::DataType | default_data_type = arm_compute::DataType::F32 |
||
) |
Constructor.
[in,out] | parser | A parser on which "parse()" hasn't been called yet. |
[in] | default_data_type | Default data type if unspecified. |
Definition at line 42 of file CommonGemmExampleOptions.cpp.
References ARM_COMPUTE_ERROR_ON_MSG, arm_compute::B, CommonGemmExampleOptions::B, CommonGemmExampleOptions::data_type, arm_compute::test::validation::default_data_type, CommonGemmExampleOptions::help, CommonGemmExampleOptions::K, CommonGemmExampleOptions::M, CommonGemmExampleOptions::N, GemmTuner::parser, Option::set_help(), and CommonGemmExampleOptions::tuner_mode.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Allow instances of this class to be moved.
|
default |
Default destructor.
|
default |
Allow instances of this class to be moved.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
arm_compute::utils::SimpleOption<size_t>* B |
Batch size option.
Definition at line 91 of file CommonGemmExampleOptions.h.
Referenced by CommonGemmExampleOptions::CommonGemmExampleOptions(), and gemm_tuner::consume_common_gemm_example_parameters().
arm_compute::utils::EnumOption<arm_compute::DataType>* data_type |
Data type.
Definition at line 92 of file CommonGemmExampleOptions.h.
Referenced by CommonGemmExampleOptions::CommonGemmExampleOptions(), and gemm_tuner::consume_common_gemm_example_parameters().
Show help option.
Definition at line 87 of file CommonGemmExampleOptions.h.
Referenced by CommonGemmExampleOptions::CommonGemmExampleOptions().
arm_compute::utils::SimpleOption<size_t>* K |
Number of lhs matrix columns/rhs matrix rows option.
Definition at line 90 of file CommonGemmExampleOptions.h.
Referenced by CommonGemmExampleOptions::CommonGemmExampleOptions(), and gemm_tuner::consume_common_gemm_example_parameters().
arm_compute::utils::SimpleOption<size_t>* M |
Number of lhs matrix rows option.
Definition at line 88 of file CommonGemmExampleOptions.h.
Referenced by CommonGemmExampleOptions::CommonGemmExampleOptions(), and gemm_tuner::consume_common_gemm_example_parameters().
arm_compute::utils::SimpleOption<size_t>* N |
Number of rhs matrix columns option.
Definition at line 89 of file CommonGemmExampleOptions.h.
Referenced by CommonGemmExampleOptions::CommonGemmExampleOptions(), and gemm_tuner::consume_common_gemm_example_parameters().
arm_compute::utils::EnumOption<arm_compute::CLTunerMode>* tuner_mode |
OpenCL tuner mode.
Definition at line 93 of file CommonGemmExampleOptions.h.
Referenced by CommonGemmExampleOptions::CommonGemmExampleOptions(), and gemm_tuner::consume_common_gemm_example_parameters().