diff --git a/tools/nvcc_lazy.sh b/tools/nvcc_lazy.sh index 7795836f8c199fbc454081e088ff1698531420d2..011ac564cf91ba41b4c851ce7c52187658c359b8 100755 --- a/tools/nvcc_lazy.sh +++ b/tools/nvcc_lazy.sh @@ -18,6 +18,11 @@ echo "#!/usr/bin/env bash" >> $1 echo "unset GREP_OPTIONS" >> $1 echo "set -e" >> $1 echo -e >> $1 +echo "if [[ \$# -le 8 ]]; then" >> $1 +echo " nvcc \"\$@\"" >> $1 +echo " exit 0" >> $1 +echo "fi" >> $1 +echo -e >> $1 echo "# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved." >> $1 echo "#" >> $1 echo "# Licensed under the Apache License, Version 2.0 (the \"License\");" >> $1