MCPcopy Create free account
hub / github.com/LBANN/lbann / construct_jag_options

Function construct_jag_options

src/utils/options.cpp:489–567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487}
488
489void construct_jag_options()
490{
491 auto& arg_parser = global_argument_parser();
492
493 // Bool flags
494 arg_parser.add_flag(LBANN_OPTION_JAG, {"--jag"}, "[JAG] Runs the JAG test");
495
496 // Input options
497 arg_parser.add_option(
498 LBANN_OPTION_BASE_DIR,
499 {"--base_dir"},
500 "[JAG] Sets the file path to directory containing conduit files",
501 "");
502 arg_parser.add_option(LBANN_OPTION_FILELIST,
503 {"--filelist"},
504 "[JAG] List of Conduit filenames",
505 "");
506 arg_parser.add_option(LBANN_OPTION_FILENAME,
507 {"--filename"},
508 "[JAG] Sets HDF5 file for JAG Conduit HDF5 test",
509 "");
510 arg_parser.add_option(
511 LBANN_OPTION_FORMAT,
512 {"--format"},
513 "[JAG] Sets format for test_speed_hydra <hdf5|conduit_bin>",
514 "");
515 arg_parser.add_option(
516 LBANN_OPTION_INDEX_FN,
517 {"--index_fn"},
518 "[JAG] Sets filename for output file from build_index executable",
519 "");
520 arg_parser.add_option(LBANN_OPTION_MAPPING_FN,
521 {"--mapping_fn"},
522 "[JAG] Sets filename for mapping values",
523 "");
524 arg_parser.add_option(
525 LBANN_OPTION_NUM_LISTS,
526 {"--num_lists"},
527 "[JAG] Number of sets for randomly selected samples to be partitioned",
528 -1);
529 arg_parser.add_option(LBANN_OPTION_NUM_SAMPLES,
530 {"--num_samples"},
531 "[JAG] Number of random samples to be extracted",
532 -1);
533 arg_parser.add_option(LBANN_OPTION_NUM_SAMPLES_PER_FILE,
534 {"--num_samples_per_file"},
535 "[JAG] Number of samples per output file",
536 1000);
537 arg_parser.add_option(LBANN_OPTION_NUM_SAMPLES_PER_LIST,
538 {"--num_samples_per_list"},
539 "[JAG] Sets the number of samples per list",
540 -1);
541 arg_parser.add_option(LBANN_OPTION_NUM_SUBDIRS,
542 {"--num_subdirs"},
543 "[JAG] Sets the number of output directories",
544 -1);
545 arg_parser.add_option(
546 LBANN_OPTION_OUTPUT_BASE_DIR,

Callers 15

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 2

add_flagMethod · 0.45
add_optionMethod · 0.45

Tested by 2

mainFunction · 0.68
mainFunction · 0.68