Skip to content

Commit bd65400

Browse files
committed
add ENVS
1 parent 24843c5 commit bd65400

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/paddle/fluid/tests/unittests/dygraph_to_static/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py")
22
string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}")
3+
set(GC_ENVS FLAGS_eager_delete_tensor_gb=0.0)
34

45
list(REMOVE_ITEM TEST_OPS test_lac)
56
# NOTE(Aurelius84): In case of Windows CI, if open ON_INFER, RWLOCK of Scope will
@@ -10,7 +11,7 @@ if(NOT ON_INFER)
1011
endif()
1112

1213
foreach(TEST_OP ${TEST_OPS})
13-
py_test_modules(${TEST_OP} MODULES ${TEST_OP})
14+
py_test_modules(${TEST_OP} MODULES ${TEST_OP} ENVS ${GC_ENVS})
1415
endforeach(TEST_OP)
1516

1617
set_tests_properties(test_se_resnet PROPERTIES TIMEOUT 900)

0 commit comments

Comments
 (0)