From 6a951cc7d3ade75c8f08ccdf4d793d75b873aa8c Mon Sep 17 00:00:00 2001 From: Minh Vu Date: Sat, 13 Jun 2026 14:54:54 +0200 Subject: [PATCH 1/2] Fix static treelite build flag --- build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index e342dec3ba..2b88403606 100755 --- a/build.sh +++ b/build.sh @@ -20,7 +20,7 @@ ARGS=$* REPODIR=$(cd "$(dirname "$0")"; pwd) VALIDTARGETS="clean libcuml cuml cpp-mgtests prims bench prims-bench cppdocs pydocs" -VALIDFLAGS="-v -g -n --allgpuarch --singlegpu --nolibcumltest --nvtx --show_depr_warn --codecov --ccache --configure-only --build-metrics --incl-cache-stats -h --help " +VALIDFLAGS="-v -g -n --allgpuarch --singlegpu --nolibcumltest --nvtx --show_depr_warn --codecov --ccache --configure-only --static-treelite --build-metrics --incl-cache-stats -h --help " VALIDARGS="${VALIDTARGETS} ${VALIDFLAGS}" HELP="$0 [ ...] [ ...] where is: @@ -154,6 +154,7 @@ LONG_ARGUMENT_LIST=( "ccache" "nolibcumltest" "configure-only" + "static-treelite" "build-metrics" "incl-cache-stats" ) From 499610c5103b2bb3370047a8da9172671d97cd98 Mon Sep 17 00:00:00 2001 From: Hyunsu Cho Date: Fri, 10 Jul 2026 17:02:20 -0700 Subject: [PATCH 2/2] Pass treelite static option down to nvforest --- cpp/cmake/thirdparty/get_nvforest.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cpp/cmake/thirdparty/get_nvforest.cmake b/cpp/cmake/thirdparty/get_nvforest.cmake index 38065ef3b7..dee2d52765 100644 --- a/cpp/cmake/thirdparty/get_nvforest.cmake +++ b/cpp/cmake/thirdparty/get_nvforest.cmake @@ -28,6 +28,7 @@ function(find_and_configure_nvforest) EXCLUDE_FROM_ALL ${PKG_EXCLUDE_FROM_ALL} OPTIONS "BUILD_NVFOREST_TESTS OFF" + "NVFOREST_USE_TREELITE_STATIC ${CUML_USE_TREELITE_STATIC}" ) if(nvforest_ADDED)