Recommendations When Using gcc ============================== It is recommended to use ``-O3 -mtune=native`` to achieve maximum speed during LightGBM training. Using Intel Ivy Bridge CPU on 1M x 1K Bosch dataset, the performance increases as follow: +-------------------------------------+---------------------+ | Compilation Flag | Performance Index | +=====================================+=====================+ | ``-O2 -mtune=core2`` | 100.00% | +-------------------------------------+---------------------+ | ``-O2 -mtune=native`` | 100.90% | +-------------------------------------+---------------------+ | ``-O3 -mtune=native`` | 102.78% | +-------------------------------------+---------------------+ | ``-O3 -ffast-math -mtune=native`` | 100.64% | +-------------------------------------+---------------------+ You can find more details on the experimentation below: - `Laurae++/Benchmarks `__ - `Laurae2/gbt\_benchmarks `__ - `Laurae's Benchmark Master Data (Interactive) `__ - `Kaggle Paris Meetup #12 Slides `__ Some explanatory pictures: .. image:: ./_static/images/gcc-table.png :align: center :target: ./_static/images/gcc-table.png .. image:: ./_static/images/gcc-bars.png :align: center :target: ./_static/images/gcc-bars.png .. image:: ./_static/images/gcc-chart.png :align: center :target: ./_static/images/gcc-chart.png .. image:: ./_static/images/gcc-comparison-1.png :align: center :target: ./_static/images/gcc-comparison-1.png .. image:: ./_static/images/gcc-comparison-2.png :align: center :target: ./_static/images/gcc-comparison-2.png .. image:: ./_static/images/gcc-meetup-1.png :align: center :target: ./_static/images/gcc-meetup-1.png .. image:: ./_static/images/gcc-meetup-2.png :align: center :target: ./_static/images/gcc-meetup-2.png