| 28 | namespace LightGBM { |
| 29 | |
| 30 | Application::Application(int argc, char** argv) { |
| 31 | LoadParameters(argc, argv); |
| 32 | // set number of threads for openmp |
| 33 | if (config_.num_threads > 0) { |
| 34 | omp_set_num_threads(config_.num_threads); |
| 35 | } |
| 36 | if (config_.data.size() == 0 && config_.task != TaskType::kConvertModel) { |
| 37 | Log::Fatal("No training/prediction data, application quit"); |
| 38 | } |
| 39 | omp_set_nested(0); |
| 40 | } |
| 41 | |
| 42 | Application::~Application() { |
| 43 | if (config_.is_parallel) { |
nothing calls this directly
no test coverage detected