|
Rosetta
|
An application to test the Rosetta thread manager. This application carries out three levels of requests for threads. Depending on the number of threads launched and the options provided, some might not be possible to field, resulting in the thread manager assigning work to fewer threads than requested. More...
#include <devel/init.hh>#include <utility/excn/Exceptions.hh>#include <basic/Tracer.hh>#include <basic/options/keys/multithreading.OptionKeys.gen.hh>#include <basic/options/option.hh>#include <basic/options/keys/OptionKeys.hh>#include <basic/options/option_macros.hh>#include <core/types.hh>Classes | |
| class | AppSettings |
| Storage for some data. More... | |
Macros | |
| #define | NUMBER_OF_NUMBERS 1000 |
| #define | MAX_MULTIPLE 100 |
Functions | |
| void | register_options () |
| Indicate required options. More... | |
| int | main (int argc, char *argv[]) |
| Entry point for program execution. More... | |
Variables | |
| static basic::Tracer | TR_main ("test_rosetta_thread_manager_main") |
| static basic::Tracer | TR_level0 ("test_rosetta_thread_manager_level_0") |
| static basic::Tracer | TR_level1 ("test_rosetta_thread_manager_level_1") |
| static basic::Tracer | TR_level2 ("test_rosetta_thread_manager_level_2") |
| static basic::Tracer | TR_level3 ("test_rosetta_thread_manager_level_3") |
An application to test the Rosetta thread manager. This application carries out three levels of requests for threads. Depending on the number of threads launched and the options provided, some might not be possible to field, resulting in the thread manager assigning work to fewer threads than requested.
The highest-level threads work together to calcualte a times table. Note that this tests the advanced API for the RosettaThreadManager, which is not accessible to most Rosetta modules.
| #define MAX_MULTIPLE 100 |
| #define NUMBER_OF_NUMBERS 1000 |
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Entry point for program execution.
References argv, test.T009_Exceptions::e, create_a3b_hbs::i, basic::init(), create_a3b_hbs::j, MAX_MULTIPLE, NUMBER_OF_NUMBERS, basic::options::option, register_options(), runtime_assert, test.T900_distributed::tests, basic::options::OptionKeys::multithreading::total_threads, TR_main, and utility_exit_with_message.
| void register_options | ( | ) |
Indicate required options.
References utility::options::OptionCollection::add_relevant(), NEW_OPT, basic::options::option, and basic::options::OptionKeys::multithreading::total_threads.
Referenced by main().
|
static |
|
static |
|
static |
|
static |
|
static |
Referenced by main().