From e4219f015a888a5c2c6b2640bea6a1f91226aa2b Mon Sep 17 00:00:00 2001 From: xiaoxiaohehe001 <49090790+xiaoxiaohehe001@users.noreply.github.com> Date: Wed, 28 Sep 2022 11:01:25 +0800 Subject: [PATCH] nvcc_fix_ (#46569) --- tools/nvcc_lazy.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/nvcc_lazy.sh b/tools/nvcc_lazy.sh index 7795836f8c1..011ac564cf9 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 -- GitLab