@@ -27,7 +27,7 @@ REPODIR=$(cd "$(dirname "$0")"; pwd)
27
27
LIBCUOPT_BUILD_DIR=${LIBCUOPT_BUILD_DIR:= ${REPODIR} / cpp/ build}
28
28
LIBMPS_PARSER_BUILD_DIR=${LIBMPS_PARSER_BUILD_DIR:= ${REPODIR} / cpp/ libmps_parser/ build}
29
29
30
- VALIDARGS=" clean libcuopt libmps_parser cuopt_mps_parser cuopt cuopt_server cuopt_sh_client docs deb -a -b -g -v -l= --verbose-pdlp --build-lp-only --no-fetch-rapids --skip-c-python-adapters --skip-tests-build --skip-routing-build --skip-fatbin-write [--cmake-args=\\\" <args>\\\" ] [--cache-tool=<tool>] -n --allgpuarch --ci-only-arch --show_depr_warn -h --help"
30
+ VALIDARGS=" clean libcuopt libmps_parser cuopt_mps_parser cuopt cuopt_server cuopt_sh_client docs deb -a -b -g -s - v -l= --verbose-pdlp --build-lp-only --no-fetch-rapids --skip-c-python-adapters --skip-tests-build --skip-routing-build --skip-fatbin-write [--cmake-args=\\\" <args>\\\" ] [--cache-tool=<tool>] -n --allgpuarch --ci-only-arch --show_depr_warn -h --help"
31
31
HELP=" $0 [<target> ...] [<flag> ...]
32
32
where <target> is:
33
33
clean - remove all existing build artifacts and configuration (start over)
@@ -44,6 +44,7 @@ HELP="$0 [<target> ...] [<flag> ...]
44
44
-g - build for debug
45
45
-a - Enable assertion (by default in debug mode)
46
46
-b - Build with benchmark settings
47
+ -s - Build with sanitizer
47
48
-n - no install step
48
49
--no-fetch-rapids - don't fetch rapids dependencies
49
50
-l= - log level. Options are: TRACE | DEBUG | INFO | WARN | ERROR | CRITICAL | OFF. Default=INFO
@@ -85,6 +86,7 @@ BUILD_DISABLE_DEPRECATION_WARNING=ON
85
86
BUILD_ALL_GPU_ARCH=0
86
87
BUILD_CI_ONLY=0
87
88
BUILD_LP_ONLY=0
89
+ BUILD_SANITIZER=0
88
90
SKIP_C_PYTHON_ADAPTERS=0
89
91
SKIP_TESTS_BUILD=0
90
92
SKIP_ROUTING_BUILD=0
@@ -235,6 +237,9 @@ if hasArg --build-lp-only; then
235
237
BUILD_LP_ONLY=1
236
238
SKIP_ROUTING_BUILD=1 # Automatically skip routing when building LP-only
237
239
fi
240
+ if hasArg -s; then
241
+ BUILD_SANITIZER=1
242
+ fi
238
243
if hasArg --skip-c-python-adapters; then
239
244
SKIP_C_PYTHON_ADAPTERS=1
240
245
fi
@@ -345,6 +350,7 @@ if buildAll || hasArg libcuopt; then
345
350
-DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
346
351
-DFETCH_RAPIDS=${FETCH_RAPIDS} \
347
352
-DBUILD_LP_ONLY=${BUILD_LP_ONLY} \
353
+ -DBUILD_SANITIZER=${BUILD_SANITIZER} \
348
354
-DSKIP_C_PYTHON_ADAPTERS=${SKIP_C_PYTHON_ADAPTERS} \
349
355
-DBUILD_TESTS=$(( 1 - ${SKIP_TESTS_BUILD} )) \
350
356
-DSKIP_ROUTING_BUILD=${SKIP_ROUTING_BUILD} \
0 commit comments