From 7be285a66f2be61a25d515a5f1e3c343aaf1f682 Mon Sep 17 00:00:00 2001 From: Chen Weihang Date: Thu, 9 Jul 2020 21:51:15 +0800 Subject: [PATCH] remove useless property, test=develop (#25461) remove useless property --- paddle/fluid/inference/CMakeLists.txt | 1 - paddle/fluid/platform/CMakeLists.txt | 7 ------- 2 files changed, 8 deletions(-) diff --git a/paddle/fluid/inference/CMakeLists.txt b/paddle/fluid/inference/CMakeLists.txt index a78fe41552b..37ea3e5b40a 100644 --- a/paddle/fluid/inference/CMakeLists.txt +++ b/paddle/fluid/inference/CMakeLists.txt @@ -36,7 +36,6 @@ endif() # fluid_modules exclude API-interface of inference/api and inference/capi get_property(fluid_modules GLOBAL PROPERTY FLUID_MODULES) -get_property(cuda_modules GLOBAL PROPERTY CUDA_MODULES) add_subdirectory(api) diff --git a/paddle/fluid/platform/CMakeLists.txt b/paddle/fluid/platform/CMakeLists.txt index ab585317248..dcc3a51e72b 100644 --- a/paddle/fluid/platform/CMakeLists.txt +++ b/paddle/fluid/platform/CMakeLists.txt @@ -93,13 +93,6 @@ if(WITH_GPU) target_link_libraries(device_context cuda_resource_pool) endif() -if(WIN32) - if(WITH_GPU) - get_property(cuda_modules GLOBAL PROPERTY CUDA_MODULES) - target_link_libraries(device_context ${cuda_modules}) - endif(WITH_GPU) -endif(WIN32) - nv_test(device_context_test SRCS device_context_test.cu DEPS device_context gpu_info) cc_test(init_test SRCS init_test.cc DEPS device_context) -- GitLab