From 2676281769984944f2ca447a16fe9991b534be76 Mon Sep 17 00:00:00 2001 From: xiaoxiaohehe001 <49090790+xiaoxiaohehe001@users.noreply.github.com> Date: Wed, 10 Aug 2022 11:27:48 +0800 Subject: [PATCH] [Cherry Pick] Nvcc lazy linux fix. (#44997) * nvcclazylinuxfix * nvcclazylinuxfix --- cmake/experiments/cuda_module_loading_lazy.cmake | 2 +- tools/nvcc_lazy.sh | 0 2 files changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 tools/nvcc_lazy.sh diff --git a/cmake/experiments/cuda_module_loading_lazy.cmake b/cmake/experiments/cuda_module_loading_lazy.cmake index f4ab829b285..531efb52daf 100644 --- a/cmake/experiments/cuda_module_loading_lazy.cmake +++ b/cmake/experiments/cuda_module_loading_lazy.cmake @@ -17,7 +17,7 @@ # this experiment option makes Paddle supports lazy loading before CUDA 11.7. if(LINUX) - if(NOT ${ON_INFER} OR NOT ${LINUX}) + if(NOT ON_INFER) message( "EXP_CUDA_MODULE_LOADING_LAZY only works with ON_INFER=ON on Linux platforms" ) diff --git a/tools/nvcc_lazy.sh b/tools/nvcc_lazy.sh old mode 100644 new mode 100755 -- GitLab