From 383dc9084aaf9f1a19fe94e89ff4fc507afb3191 Mon Sep 17 00:00:00 2001 From: xiaoxiaohehe001 <49090790+xiaoxiaohehe001@users.noreply.github.com> Date: Tue, 27 Sep 2022 11:21:40 +0800 Subject: [PATCH] nvcc_ignore_ (#46420) --- .gitignore | 1 + cmake/experiments/cuda_module_loading_lazy.cmake | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 4ddcff8adc..4ed5ca8bcd 100644 --- a/.gitignore +++ b/.gitignore @@ -68,6 +68,7 @@ paddle/infrt/tests/dialect/Output paddle/infrt/tests/lit.cfg.py paddle/infrt/kernel/phi/infershaped/infershaped_kernel_launchers.cc paddle/fluid/pybind/eager_op_function.cc +tools/nvcc_lazy # these files (directories) are generated before build system generation paddle/fluid/operators/generated_op.cc diff --git a/cmake/experiments/cuda_module_loading_lazy.cmake b/cmake/experiments/cuda_module_loading_lazy.cmake index b3f624ba8e..d1e07f57cb 100644 --- a/cmake/experiments/cuda_module_loading_lazy.cmake +++ b/cmake/experiments/cuda_module_loading_lazy.cmake @@ -38,6 +38,7 @@ if(LINUX) set(CUDA_USE_STATIC_CUDA_RUNTIME OFF CACHE BOOL "" FORCE) + set(CMAKE_CUDA_FLAGS "--cudart shared") enable_language(CUDA) execute_process( COMMAND "rm" "-rf" "${CMAKE_SOURCE_DIR}/tools/nvcc_lazy" -- GitLab