Skip to content

Commit d646e47

Browse files
committed
fix cmake
1 parent 0f4bf1c commit d646e47

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

paddle/math/tests/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@ add_simple_unittest(test_CpuGpuVector)
1818
add_simple_unittest(test_Allocator)
1919

2020
if(WITH_GPU)
21-
nv_test(test_float16_gpu SRCS test_float16.cu)
2221
CUDA_ADD_EXECUTABLE(test_Tensor test_Tensor.cu)
2322
link_paddle_test(test_Tensor)
2423
CUDA_ADD_EXECUTABLE(test_lazyAssign test_lazyAssign.cu)
25-
link_paddle_test(test_lazyAssign)
24+
link_paddle_test(test_lazyAssign)
25+
nv_test(test_float16_gpu SRCS test_float16.cu)
2626
else()
2727
compile_cu_as_cpp(test_Tensor.cu)
2828
add_unittest(test_Tensor test_Tensor.cu)
2929
compile_cu_as_cpp(test_lazyAssign.cu)
3030
add_unittest(test_lazyAssign test_lazyAssign.cu)
3131
endif(WITH_GPU)
3232

33-
cc_test(test_float16 SRCS test_float16.cpp)
3433
add_simple_unittest(test_FPException)
3534
add_simple_unittest(test_GpuProfiler)
3635
add_simple_unittest(test_BaseMatrix)
3736
add_simple_unittest(test_Matrix)
37+
cc_test(test_float16 SRCS test_float16.cpp)

0 commit comments

Comments
 (0)