gcc-Tips.rst 2.15 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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 <https://sites.google.com/view/lauraepp/new-benchmarks/old-benchmarks>`__

-  `Laurae2/gbt\_benchmarks <https://github.com/Laurae2/gbt_benchmarks>`__

-  `Laurae's Benchmark Master Data (Interactive) <https://public.tableau.com/views/gbt_benchmarks/Master-Data?:showVizHome=no>`__

-  `Kaggle Paris Meetup #12 Slides <https://drive.google.com/file/d/0B6qJBmoIxFe0ZHNCOXdoRWMxUm8/view>`__

Some explanatory pictures:

.. image:: ./_static/images/gcc-table.png
   :align: center
34
   :target: ./_static/images/gcc-table.png
35
36
37

.. image:: ./_static/images/gcc-bars.png
   :align: center
38
   :target: ./_static/images/gcc-bars.png
39
40
41

.. image:: ./_static/images/gcc-chart.png
   :align: center
42
   :target: ./_static/images/gcc-chart.png
43
44
45

.. image:: ./_static/images/gcc-comparison-1.png
   :align: center
46
   :target: ./_static/images/gcc-comparison-1.png
47
48
49

.. image:: ./_static/images/gcc-comparison-2.png
   :align: center
50
   :target: ./_static/images/gcc-comparison-2.png
51
52
53

.. image:: ./_static/images/gcc-meetup-1.png
   :align: center
54
   :target: ./_static/images/gcc-meetup-1.png
55
56
57

.. image:: ./_static/images/gcc-meetup-2.png
   :align: center
58
   :target: ./_static/images/gcc-meetup-2.png