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

Function main

unit_test/SequentialCatchMain.cpp:39–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37#include <lbann/utils/random_number_generators.hpp>
38
39int main(int argc, char* argv[]) {
40#ifdef LBANN_HAS_DNN_LIB
41 hydrogen::gpu::Initialize();
42 lbann::dnn_lib::initialize();
43#endif // LBANN_HAS_DNN_LIB
44
45 lbann::construct_all_options();
46
47 // Initialize the general RNGs and the data sequence RNGs
48 int random_seed = 42;
49 lbann::init_random(random_seed);
50 lbann::init_data_seq_random(random_seed);
51
52 int result = Catch::Session().run(argc, argv);
53
54#ifdef LBANN_HAS_DNN_LIB
55 lbann::dnn_lib::destroy();
56 hydrogen::gpu::Finalize();
57#endif // LBANN_HAS_DNN_LIB
58
59 return result;
60}

Callers

nothing calls this directly

Calls 6

construct_all_optionsFunction · 0.85
runMethod · 0.80
initializeFunction · 0.50
init_randomFunction · 0.50
init_data_seq_randomFunction · 0.50
destroyFunction · 0.50

Tested by

no test coverage detected