We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6610aa2 commit f4f1d8dCopy full SHA for f4f1d8d
build.sh
@@ -187,7 +187,10 @@ function version_info() {
187
fastdeploy_git_commit_id=$(git rev-parse HEAD)
188
paddle_version=$(${python} -c "import paddle; print(paddle.__version__)")
189
paddle_git_commit_id=$(${python} -c "import paddle; print(paddle.__git_commit__)")
190
- cuda_version=$(nvcc -V | grep -Po "(?<=release )[\d.]+(?=, V)")
+ cuda_version="nvcc-not-installed"
191
+ if command -v nvcc &> /dev/null; then
192
+ cuda_version=$(nvcc -V | grep -Po "(?<=release )[\d.]+(?=, V)")
193
+ fi
194
cxx_version=$(g++ --version | head -n 1 | grep -Po "(?<=\) )[\d.]+")
195
196
echo "fastdeploy GIT COMMIT ID: $fastdeploy_git_commit_id" > $output_file
0 commit comments