"git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "308e6451f09610a92fba8a824cc4770377b84618"
main.cpp 699 Bytes
Newer Older
1
2
3
4
/*!
 * Copyright (c) 2016 Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See LICENSE file in the project root for license information.
 */
Guolin Ke's avatar
Guolin Ke committed
5
6
#include <LightGBM/application.h>

7
8
#include <iostream>

Guolin Ke's avatar
Guolin Ke committed
9
int main(int argc, char** argv) {
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
  try {
    LightGBM::Application app(argc, argv);
    app.Run();
  }
  catch (const std::exception& ex) {
    std::cerr << "Met Exceptions:" << std::endl;
    std::cerr << ex.what() << std::endl;
    exit(-1);
  }
  catch (const std::string& ex) {
    std::cerr << "Met Exceptions:" << std::endl;
    std::cerr << ex << std::endl;
    exit(-1);
  }
  catch (...) {
    std::cerr << "Unknown Exceptions" << std::endl;
    exit(-1);
  }
28
}