From d0ad82cff1eea9b91bfb9c4abc6c0300cffb99e4 Mon Sep 17 00:00:00 2001 From: Qiao Longfei Date: Mon, 25 Sep 2017 12:01:59 -0700 Subject: [PATCH] fix nv_library (#4370) * fix nv_library * fix symbol in gpu_info.h --- cmake/generic.cmake | 2 +- paddle/platform/gpu_info.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/generic.cmake b/cmake/generic.cmake index 0bbf92293..ff9868fc4 100644 --- a/cmake/generic.cmake +++ b/cmake/generic.cmake @@ -253,7 +253,7 @@ function(nv_library TARGET_NAME) foreach(source_file ${nv_library_SRCS}) string(REGEX REPLACE "\\.[^.]*$" "" source ${source_file}) if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${source}.h) - list(APPEND cc_library_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/${source}.h) + list(APPEND nv_library_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/${source}.h) endif() endforeach() add_style_check_target(${TARGET_NAME} ${nv_library_SRCS} ${nv_library_HEADERS}) diff --git a/paddle/platform/gpu_info.h b/paddle/platform/gpu_info.h index ed2420b87..f0c825bd9 100644 --- a/paddle/platform/gpu_info.h +++ b/paddle/platform/gpu_info.h @@ -36,7 +36,7 @@ int GetCurrentDeviceId(); //! Set the GPU device id for next execution. void SetDeviceId(int device_id); -//!Get the memory usage of current GPU device. +//! Get the memory usage of current GPU device. void GpuMemoryUsage(size_t &available, size_t &total); //! Get the maximum allocation size of current GPU device. -- GitLab