Skip to content

Commit

Permalink
bump lightgbm to 4.4.0 (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
shuttie authored Jul 2, 2024
1 parent 215aa34 commit 55afca7
Show file tree
Hide file tree
Showing 16 changed files with 29 additions and 28 deletions.
12 changes: 6 additions & 6 deletions src/main/java/com/microsoft/ml/lightgbm/lightgbmlibJAVA_wrap.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ double ** void_to_doublep_ptr(void * x) {

/**
* @brief Creates a new StringArray and returns its handle.
*
*
* @param num_strings number of strings to store.
* @param string_size the maximum number of characters that can be stored in each string.
* @return StringArrayHandle or nullptr in case of allocation failure.
Expand All @@ -929,7 +929,7 @@ double ** void_to_doublep_ptr(void * x) {

/**
* @brief Free the StringArray object.
*
*
* @param handle StringArray handle.
*/
void StringArrayHandle_free(StringArrayHandle handle)
Expand All @@ -940,7 +940,7 @@ double ** void_to_doublep_ptr(void * x) {
/**
* @brief Return the raw pointer to the array of strings.
* Wrapped in Java into String[] automatically.
*
*
* @param handle StringArray handle.
* @return Raw pointer to the string array which `various.i` maps to String[].
*/
Expand All @@ -951,7 +951,7 @@ double ** void_to_doublep_ptr(void * x) {

/**
* For the end user to extract a specific string from the StringArray object.
*
*
* @param handle StringArray handle.
* @param index index of the string to retrieve from the array.
* @return raw pointer to string at index, or nullptr if out of bounds.
Expand All @@ -963,7 +963,7 @@ double ** void_to_doublep_ptr(void * x) {

/**
* @brief Replaces one string of the array at index with the new content.
*
*
* @param handle StringArray handle.
* @param index Index of the string to replace
* @param new_content The content to replace
Expand All @@ -976,7 +976,7 @@ double ** void_to_doublep_ptr(void * x) {

/**
* @brief Retrieve the number of strings in the StringArray.
*
*
* @param handle StringArray handle.
* @return number of strings that the array stores.
*/
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/lightgbm4j/linux/aarch64/lib_lightgbm.so
Git LFS file not shown
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a04556537fddae05bf5d4155c52e1431
892f087c206081c7200181a9fe299034
4 changes: 2 additions & 2 deletions src/main/resources/lightgbm4j/linux/x86_64/lib_lightgbm.so
Git LFS file not shown
Original file line number Diff line number Diff line change
@@ -1 +1 @@
885fe5da88b7a1779f63a54b23892399
aa8c27cdbdf93de9b14ae751955896dd
4 changes: 2 additions & 2 deletions src/main/resources/lightgbm4j/osx/aarch64/lib_lightgbm.dylib
Git LFS file not shown
Original file line number Diff line number Diff line change
@@ -1 +1 @@
48c1d6a244a4cdfa9481910193910a2c
a188a0a028518de9fdbad7bedb1c3f3d
4 changes: 2 additions & 2 deletions src/main/resources/lightgbm4j/osx/x86_64/lib_lightgbm.dylib
Git LFS file not shown
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3647a841027750be0bed71839940b264
118bbd36de970291e1a95cdbed4b3b66
4 changes: 2 additions & 2 deletions src/main/resources/lightgbm4j/windows/x86_64/lib_lightgbm.dll
Git LFS file not shown
Original file line number Diff line number Diff line change
@@ -1 +1 @@
b6c92ce6eb35e6a4665828040b889c18
188204035722dfda3468e366e55f32d8
Git LFS file not shown
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9e8ffac009844757e1eab51760e64666
582b16df468c4ec85b3f4581908610d6
2 changes: 1 addition & 1 deletion swig-build/Dockerfile.amd64
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1A127079A92F09ED
RUN apt-add-repository "deb https://apt.kitware.com/ubuntu/ $(lsb_release -cs) main"
RUN apt update && apt install -y kitware-archive-keyring
RUN apt update && apt install -y cmake
RUN git clone --recursive --depth 1 --branch v4.3.0 https://github.com/microsoft/LightGBM
RUN git clone --recursive --depth 1 --branch v4.4.0 https://github.com/microsoft/LightGBM
WORKDIR /LightGBM
ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/
RUN cmake -B build -S . -DUSE_SWIG=ON
Expand Down
2 changes: 1 addition & 1 deletion swig-build/Dockerfile.arm64
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1A127079A92F09ED
RUN apt-add-repository "deb https://apt.kitware.com/ubuntu/ $(lsb_release -cs) main"
RUN apt update && apt install -y kitware-archive-keyring
RUN apt update && apt install -y cmake
RUN git clone --recursive --depth 1 --branch v4.3.0 https://github.com/microsoft/LightGBM
RUN git clone --recursive --depth 1 --branch v4.4.0 https://github.com/microsoft/LightGBM
WORKDIR /LightGBM
ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk-arm64/
RUN cmake -B build -S . -DUSE_SWIG=ON
Expand Down
7 changes: 4 additions & 3 deletions swig-build/build_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export CC=gcc CXX=g++

# checkout

git clone --recursive https://github.com/microsoft/LightGBM
cd LightGBM && git checkout v4.3.0 && mkdir build && cd build
cmake -DUSE_SWIG=ON -DAPPLE_OUTPUT_DYLIB=ON ..
git clone --recursive --depth 1 --branch v4.4.0 https://github.com/microsoft/LightGBM
cd LightGBM
cmake -B build -S . -DUSE_SWIG=ON
cmake --build build -j6

0 comments on commit 55afca7

Please sign in to comment.