| 37 | #include <lbann/utils/random_number_generators.hpp> |
| 38 | |
| 39 | int 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 | } |
nothing calls this directly
no test coverage detected