Skip to content

Commit

Permalink
doc(shannon): update ml readme
Browse files Browse the repository at this point in the history
ShannonBase committed Aug 15, 2024
1 parent de797a5 commit 8ce5647
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions ml/readme.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
For Machine Learing Libs. We will incorporate some ML libs for query optimization in MySQL.
(https://github.com/microsoft/LightGBM)

using this to compile LightGBM:
cmake .. -DBUILD_STATIC_LIB=ON -DUSE_MPI=OFF -DUSE_OPENMP=OFF -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_BUILD_TYPE=Release
HOW TO USE LightGBM:
0) to down a copy of LightGBM to your workshop, then start to build your own static lib files.

1) to build a static libs, using this command to compile LightGBM (with the latest version if needed):
cmake .. -DBUILD_STATIC_LIB=ON -DUSE_MPI=OFF -DUSE_OPENMP=OFF -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_BUILD_TYPE=Release

2) replace the .a files with the new compiled static lib files.

3) re-compile ShannonBase with these static lib files.

0 comments on commit 8ce5647

Please sign in to comment.