@@ -14,7 +14,7 @@ ARGS=$*
1414REPODIR=$( cd " $( dirname " $0 " ) " ; pwd)
1515LIBCUOPT_BUILD_DIR=${LIBCUOPT_BUILD_DIR:= ${REPODIR} / cpp/ build}
1616
17- VALIDARGS=" clean codegen libcuopt cuopt_grpc_server cuopt cuopt_server cuopt_sh_client docs deb -a -b -g -fsanitize -tsan -msan -v -l= --verbose-pdlp --build-lp-only --no-fetch-rapids --skip-c-python-adapters --skip-tests-build --skip-routing-build --skip-grpc-build --skip-fatbin-write --host-lineinfo [--cmake-args=\\\" <args>\\\" ] [--cache-tool=<tool>] --install --allgpuarch --ci-only-arch --show_depr_warn -h --help"
17+ VALIDARGS=" clean codegen libcuopt cuopt_grpc_server cuopt cuopt_server cuopt_sh_client docs deb -a -b -g -fsanitize -tsan -msan -v -l= --verbose-pdlp --build-lp-only --no-fetch-rapids --skip-c-python-adapters --skip-tests-build --skip-routing-build --skip-grpc-build --skip-fatbin-write --host-lineinfo --split-compile [--cmake-args=\\\" <args>\\\" ] [--cache-tool=<tool>] --install --allgpuarch --ci-only-arch --show_depr_warn -h --help"
1818HELP=" $0 [<target> ...] [<flag> ...]
1919 where <target> is:
2020 clean - remove all existing build artifacts and configuration (start over)
@@ -45,6 +45,7 @@ HELP="$0 [<target> ...] [<flag> ...]
4545 --skip-grpc-build - skip building gRPC and protobuf components (auto-enabled with -tsan)
4646 --skip-fatbin-write - skip the fatbin write
4747 --host-lineinfo - build with debug line information for host code
48+ --split-compile - opt in to nvcc split compilation; builds may be nondeterministic
4849 --cache-tool=<tool> - pass the build cache tool (eg: ccache, sccache, distcc) that will be used
4950 to speedup the build process.
5051 --cmake-args=\\\" <args>\\\" - pass arbitrary list of CMake configuration options (escape all quotes in argument)
260261if hasArg --host-lineinfo; then
261262 HOST_LINEINFO=1
262263fi
264+ if hasArg --split-compile; then
265+ # nvcc split compilation can produce nondeterministic cuOpt builds, so keep it opt-in.
266+ echo " WARNING: nvcc split compilation may produce nondeterministic cuOpt builds."
267+ export NVCC_PREPEND_FLAGS=" ${NVCC_PREPEND_FLAGS: +${NVCC_PREPEND_FLAGS} } --split-compile=0"
268+ fi
263269
264270function contains_string {
265271 local search_string=" $1 "
0 commit comments