diff --git a/cmake/experiments/cuda_module_loading_lazy.cmake b/cmake/experiments/cuda_module_loading_lazy.cmake index f4ab829b285c6213bc9dbd5ab1cc99d48aa348e1..531efb52daf8bdf4784f5388d61755c5966b1552 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