@@ -18,14 +18,15 @@ ARGS=$*
1818# script, and that this script resides in the repo dir!
1919REPODIR=$( cd $( dirname $0 ) ; pwd)
2020
21- VALIDARGS=" clean librmm rmm -v -g -n -h"
22- HELP=" $0 [clean] [librmm] [rmm] [-v] [-g] [-n] [-h]
21+ VALIDARGS=" clean librmm rmm -v -g -n -s - h"
22+ HELP=" $0 [clean] [librmm] [rmm] [-v] [-g] [-n] [-s] [- h]
2323 clean - remove all existing build artifacts and configuration (start over)
2424 librmm - build and install the librmm C++ code
2525 rmm - build and install the rmm Python package
2626 -v - verbose build mode
2727 -g - build for debug
2828 -n - no install step
29+ -s - statically link against cudart
2930 -h - print this text
3031
3132 default action (no args) is to build and install 'librmm' and 'rmm' targets
@@ -39,6 +40,7 @@ VERBOSE=""
3940BUILD_TYPE=Release
4041INSTALL_TARGET=install
4142PYTHON=${PYTHON:= python}
43+ CUDA_RUNTIME_LIBRARY=Shared
4244RAN_CMAKE=0
4345
4446# Set defaults for vars that may not have been defined externally
@@ -59,6 +61,7 @@ function ensureCMakeRan {
5961 if (( RAN_CMAKE == 0 )) ; then
6062 echo " Executing cmake for librmm..."
6163 cmake -DCMAKE_INSTALL_PREFIX=" ${INSTALL_PREFIX} " \
64+ -DCMAKE_CUDA_RUNTIME_LIBRARY=" ${CUDA_RUNTIME_LIBRARY} " \
6265 -DCMAKE_CXX11_ABI=ON \
6366 -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ..
6467 RAN_CMAKE=1
9194if hasArg -n; then
9295 INSTALL_TARGET=" "
9396fi
97+ if hasArg -s; then
98+ CUDA_RUNTIME_LIBRARY=Static
99+ fi
94100
95101# If clean given, run it prior to any other steps
96102if hasArg clean; then
0 commit comments