diff --git a/paddle/fluid/memory/allocation/CMakeLists.txt b/paddle/fluid/memory/allocation/CMakeLists.txt index e0e179a0860e1d36f3b193c10f7bc414a3b57b08..939ad140415df45619018536520e3ffb9d681366 100644 --- a/paddle/fluid/memory/allocation/CMakeLists.txt +++ b/paddle/fluid/memory/allocation/CMakeLists.txt @@ -126,7 +126,7 @@ if(NOT WIN32) cc_test(mmap_allocator_test SRCS mmap_allocator_test.cc DEPS mmap_allocator allocator) endif(NOT WIN32) -if(WITH_GPU AND WITH_TESTING) +if(WITH_GPU AND WITH_TESTING AND NOT "$ENV{CI_SKIP_CPP_TEST}" STREQUAL "ON") nv_test(base_ptr_test SRCS base_ptr_test.cu DEPS malloc gpu_info) set_tests_properties(base_ptr_test PROPERTIES ENVIRONMENT "FLAGS_allocator_strategy=auto_growth;