Skip to content

Commit c03070b

Browse files
authored
【paddle_test No.20】replace cc_test with paddle_test (#61463)
* Update CMakeLists.txt * Update CMakeLists.txt * Update CMakeLists.txt * Update CMakeLists.txt * Update CMakeLists.txt * Update gpu_info.h
1 parent 9e18a72 commit c03070b

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

paddle/fluid/platform/device/gpu/gpu_info.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace platform {
2929
int DnnVersion();
3030

3131
//! Get the total number of GPU devices in system.
32-
int GetGPUDeviceCount();
32+
TEST_API int GetGPUDeviceCount();
3333

3434
//! Get the compute capability of the ith GPU (format: major * 10 + minor)
3535
TEST_API int GetGPUComputeCapability(int id);

test/cpp/fluid/framework/details/CMakeLists.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
paddle_test(broadcast_op_test SRCS broadcast_op_handle_test.cc)
22

3-
cc_test(
4-
gather_op_test
5-
SRCS gather_op_handle_test.cc
6-
DEPS detail_op_handle scope phi common fluid_memory device_context)
3+
paddle_test(gather_op_test SRCS gather_op_handle_test.cc DEPS common)
74

85
paddle_test(fused_broadcast_op_test SRCS fused_broadcast_op_handle_test.cc)
96
paddle_test(exception_holder_test SRCS exception_holder_test.cc)

0 commit comments

Comments
 (0)