From c37cd1e3fa9a3e4392ffc5453e9fd1696fd38396 Mon Sep 17 00:00:00 2001 From: tgrogers Date: Sat, 30 Jun 2018 13:53:16 -0400 Subject: Adding in a check to not blow away the PTXAS variable if you already had it set --- setup_environment | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'setup_environment') diff --git a/setup_environment b/setup_environment index 55f3ea6..2dafba5 100644 --- a/setup_environment +++ b/setup_environment @@ -137,7 +137,9 @@ else echo "configured without a power model."; fi -export PTXAS_CUDA_INSTALL_PATH=$CUDA_INSTALL_PATH +if [ ! -z "$PTXAS_CUDA_INSTALL_PATH" ]; then + export PTXAS_CUDA_INSTALL_PATH=$CUDA_INSTALL_PATH; +fi echo ""; echo "----------------------------------------------------------------------------"; echo "INFO - If you only care about PTX execution, ignore this message. GPGPU-Sim supports PTX execution in modern CUDA." -- cgit v1.3