 |
The ROme OpTimistic Simulator
3.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
|
Go to the documentation of this file.
21 static unsigned mocked_threads;
24 return mocked_threads;
45 char *args_serial[] = {
53 char *args_no_bind[] = {
70 char *args_termination[] = {
88 #define TEST_INIT(args_arr, cond) \
90 init_args_parse(sizeof(args_arr) / sizeof(*(args_arr)) - 1, \
92 if (!(cond)) return -1; \
95 int main(
int argc,
char **argv)
111 mocked_threads = 1024;
131 TEST_INIT(args_serial,
140 TEST_INIT(args_no_bind,
158 TEST_INIT(args_termination,
182 .expected_output_size =
sizeof(
"test done") - 1
lp_id_t n_lps
The total number of LPs in the simulation.
bool core_binding
If set, worker threads are bound to physical cores.
unsigned thread_cores_count(void)
Computes the count of available cores on the machine.
simtime_t termination_time
The target termination logical time.
unsigned gvt_period
The gvt period expressed in microseconds.
rid_t n_threads
The total number of MPI nodes in the simulation.
int main(int argc, char **argv)
The main entry point of the custom compiler.
#define SIMTIME_MAX
The maximum value of the logical simulation time, semantically never.
bool is_serial
If set, the simulation will run on the serial runtime.
void log_logo_print(void)
Prints a fancy ROOT-Sim logo on the terminal.
A complete test configuration.
bool io_terminal_can_colorize(void)
Determines if stdout supports colored text.
bool log_colored
If set, uses color codes to color the log outputs.
const char * expected_output
The expected output from the whole sequence of test_printf() calls.
int test_printf(const char *restrict fmt,...)
Registers a formatted string to compare against the expected output.
Command line option parser.
struct simulation_configuration global_config
The configuration filled in by init_args_parse()
uint64_t prng_seed
The seed used to initialize the pseudo random numbers.