未验证 提交 2aa738c1 编写于 作者: Z Zhang Zheng 提交者: GitHub

Fix CI error of resnet test with prim/cinn/prim+cinn in CUDA11.8 (#56105)

* Fix CI error of resnet test with prim/cinn/prim+cinn

* fix

* fix ref_result
上级 496422e9
...@@ -8,19 +8,19 @@ foreach(TEST_OP ${TEST_OPS}) ...@@ -8,19 +8,19 @@ foreach(TEST_OP ${TEST_OPS})
py_test_modules(${TEST_OP} MODULES ${TEST_OP} ENVS ${GC_ENVS}) py_test_modules(${TEST_OP} MODULES ${TEST_OP} ENVS ${GC_ENVS})
endforeach() endforeach()
#set_tests_properties(test_resnet_prim PROPERTIES TIMEOUT 850) set_tests_properties(test_resnet_prim PROPERTIES TIMEOUT 850)
set_tests_properties(test_bert_prim PROPERTIES TIMEOUT 500) set_tests_properties(test_bert_prim PROPERTIES TIMEOUT 500)
set_tests_properties(test_prim_simplenet_cinn PROPERTIES TIMEOUT 120) set_tests_properties(test_prim_simplenet_cinn PROPERTIES TIMEOUT 120)
if(WITH_CINN) if(WITH_CINN)
#set_tests_properties(test_resnet_cinn PROPERTIES TIMEOUT 850) set_tests_properties(test_resnet_cinn PROPERTIES TIMEOUT 850)
#set_tests_properties(test_resnet_prim_cinn PROPERTIES TIMEOUT 850) set_tests_properties(test_resnet_prim_cinn PROPERTIES TIMEOUT 850)
set_tests_properties(test_bert_cinn PROPERTIES TIMEOUT 500) set_tests_properties(test_bert_cinn PROPERTIES TIMEOUT 500)
set_tests_properties(test_bert_prim_cinn PROPERTIES TIMEOUT 500) set_tests_properties(test_bert_prim_cinn PROPERTIES TIMEOUT 500)
#set_tests_properties(test_resnet_prim PROPERTIES LABELS "RUN_TYPE=CINN") set_tests_properties(test_resnet_prim PROPERTIES LABELS "RUN_TYPE=CINN")
#set_tests_properties(test_resnet_cinn PROPERTIES LABELS "RUN_TYPE=CINN") set_tests_properties(test_resnet_cinn PROPERTIES LABELS "RUN_TYPE=CINN")
#set_tests_properties(test_resnet_prim_cinn PROPERTIES LABELS "RUN_TYPE=CINN") set_tests_properties(test_resnet_prim_cinn PROPERTIES LABELS "RUN_TYPE=CINN")
set_tests_properties(test_bert_prim PROPERTIES LABELS "RUN_TYPE=CINN") set_tests_properties(test_bert_prim PROPERTIES LABELS "RUN_TYPE=CINN")
set_tests_properties(test_bert_cinn PROPERTIES LABELS "RUN_TYPE=CINN") set_tests_properties(test_bert_cinn PROPERTIES LABELS "RUN_TYPE=CINN")
set_tests_properties(test_bert_prim_cinn PROPERTIES LABELS "RUN_TYPE=CINN") set_tests_properties(test_bert_prim_cinn PROPERTIES LABELS "RUN_TYPE=CINN")
......
...@@ -45,16 +45,16 @@ epoch_num = 1 ...@@ -45,16 +45,16 @@ epoch_num = 1
# note: Version 2.0 momentum is fused to OP when L2Decay is available, and the results are different from the fluid version. # note: Version 2.0 momentum is fused to OP when L2Decay is available, and the results are different from the fluid version.
# The results in ci as as follows: # The results in ci as as follows:
DY2ST_CINN_GT = [ DY2ST_CINN_GT = [
5.828789710998535, 5.847333908081055,
8.340764999389648, 8.347576141357422,
4.998946666717529, 5.1415300369262695,
8.4613676071167, 8.373777389526367,
8.033733367919922, 8.05331802368164,
7.352842807769775, 7.437496185302734,
9.8336181640625, 9.630914688110352,
8.22379207611084, 8.547889709472656,
8.195695877075195, 8.343082427978516,
10.508796691894531, 10.203847885131836,
] ]
if core.is_compiled_with_cuda(): if core.is_compiled_with_cuda():
......
...@@ -46,16 +46,16 @@ epoch_num = 1 ...@@ -46,16 +46,16 @@ epoch_num = 1
# note: Version 2.0 momentum is fused to OP when L2Decay is available, and the results are different from the fluid version. # note: Version 2.0 momentum is fused to OP when L2Decay is available, and the results are different from the fluid version.
# The results in ci as as follows: # The results in ci as as follows:
DY2ST_PRIM_GT = [ DY2ST_PRIM_GT = [
5.82879114151001, 5.847333908081055,
8.33370590209961, 8.368712425231934,
5.104889392852783, 4.989010334014893,
8.546337127685547, 8.523179054260254,
8.263965606689453, 7.997398376464844,
7.413934230804443, 7.601831436157227,
9.569124221801758, 9.777579307556152,
8.251557350158691, 8.428393363952637,
8.513609886169434, 8.581992149353027,
10.603094100952148, 10.313587188720703,
] ]
if core.is_compiled_with_cuda(): if core.is_compiled_with_cuda():
......
...@@ -46,17 +46,18 @@ epoch_num = 1 ...@@ -46,17 +46,18 @@ epoch_num = 1
# note: Version 2.0 momentum is fused to OP when L2Decay is available, and the results are different from the fluid version. # note: Version 2.0 momentum is fused to OP when L2Decay is available, and the results are different from the fluid version.
# The results in ci as as follows: # The results in ci as as follows:
DY2ST_PRIM_CINN_GT = [ DY2ST_PRIM_CINN_GT = [
5.828786849975586, 5.847333908081055,
8.332863807678223, 8.342670440673828,
5.041562080383301, 5.130363941192627,
8.514982223510742, 8.511886596679688,
7.9860992431640625, 8.13458251953125,
7.491837501525879, 7.35969352722168,
9.559739112854004, 9.874241828918457,
8.430597305297852, 8.126291275024414,
8.109201431274414, 8.637175559997559,
10.224763870239258, 10.385666847229004,
] ]
if core.is_compiled_with_cuda(): if core.is_compiled_with_cuda():
paddle.set_flags({'FLAGS_cudnn_deterministic': True}) paddle.set_flags({'FLAGS_cudnn_deterministic': True})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册