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 |
---|---|
|
100.00% |
|
100.90% |
|
102.78% |
|
100.64% |
You can find more details on the experimentation below:
The image below compares the runtime for training with different compiler options to a baseline using LightGBM compiled with -O2 --mtune=core2
. All three options are faster than that baseline. The best performance was achieved with -O3 --mtune=native
.