============================= test session starts ============================== platform linux -- Python 3.7.5, pytest-5.4.3, py-1.11.0, pluggy-0.13.1 rootdir: /home/jenkins/mindspore/testcases/testcases/tests/st/dyn_shape_dev, inifile: /home/jenkins/sault/virtual_test/virtualenv_002/sault/config/pytest.ini plugins: anyio-3.7.1, forked-1.1.3, xdist-1.32.0 [INFO] ATRACE(112150,python3.7):2024-01-11-05:57:49.820.214 [trace_attr.c:105](tid:112150) platform is 1. [INFO] ATRACE(112150,python3.7):2024-01-11-05:57:49.820.368 [trace_recorder.c:114](tid:112150) use root path: /home/jenkins/ascend/atrace [INFO] ATRACE(112150,python3.7):2024-01-11-05:57:49.820.396 [trace_signal.c:133](tid:112150) register signal handler for signo 2 succeed. [INFO] ATRACE(112150,python3.7):2024-01-11-05:57:49.820.409 [trace_signal.c:133](tid:112150) register signal handler for signo 15 succeed. [INFO] RUNTIME(112150,python3.7):2024-01-11-05:57:50.233.429 [runtime.cc:1159] 112150 GetAicoreNumByLevel: workingDev_=0 [INFO] RUNTIME(112150,python3.7):2024-01-11-05:57:50.233.482 [runtime.cc:4719] 112150 GetVisibleDevices: ASCEND_RT_VISIBLE_DEVICES param was not set collected 2 items test_hsigmoid.py [INFO] TDT(112150,python3.7):2024-01-11-05:57:54.661.236 [process_mode_manager.cpp:109][OpenProcess][tid:112150] [ProcessModeManager] enter into open process deviceId[1] rankSize[0] [INFO] TDT(112150,python3.7):2024-01-11-05:57:54.664.017 [process_mode_manager.cpp:379][InitTsdClient][tid:112150] [TsdClient] deviceId[1] begin to init hdc client [INFO] TDT(112150,python3.7):2024-01-11-05:57:54.664.166 [version_verify.cpp:34][SetVersionInfo][tid:112150] VersionVerify: send client version to server [INFO] TDT(112150,python3.7):2024-01-11-05:57:54.664.200 [version_verify.cpp:50][SetVersionInfo][tid:112150] send feature_info:{msg_type:35, features:{check before send aicpu package,}} [INFO] TDT(112150,python3.7):2024-01-11-05:57:54.664.215 [version_verify.cpp:50][SetVersionInfo][tid:112150] send feature_info:{msg_type:37, features:{check before send open qs message,}} [INFO] TDT(112150,python3.7):2024-01-11-05:57:54.664.532 [version_verify.cpp:66][PeerVersionCheck][tid:112150] VersionVerify: Check client version info, server[1230], client[1230] [INFO] TDT(112150,python3.7):2024-01-11-05:57:54.664.550 [version_verify.cpp:87][ParseVersionInfo][tid:112150] VersionVerify: pass client version info success [INFO] TDT(112150,python3.7):2024-01-11-05:57:54.664.561 [hdc_client.cpp:276][CheckHdcConnection][tid:112150] Service[2] create hdc success [INFO] TDT(112150,python3.7):2024-01-11-05:57:54.664.579 [version_verify.cpp:120][SpecialFeatureCheck][tid:112150] VersionVerify: new type[35], supported [INFO] TDT(112150,python3.7):2024-01-11-05:57:54.664.628 [process_mode_manager.cpp:748][GetDeviceCheckCode][tid:112150] [TsdClient][deviceId=1] [sessionId=1] wait package info respond [INFO] TDT(112150,python3.7):2024-01-11-05:57:54.664.771 [process_mode_manager.cpp:379][InitTsdClient][tid:112150] [TsdClient] deviceId[1] begin to init hdc client [INFO] TDT(112150,python3.7):2024-01-11-05:57:54.664.948 [version_verify.cpp:34][SetVersionInfo][tid:112150] VersionVerify: send client version to server [INFO] TDT(112150,python3.7):2024-01-11-05:57:54.664.965 [version_verify.cpp:50][SetVersionInfo][tid:112150] send feature_info:{msg_type:35, features:{check before send aicpu package,}} [INFO] TDT(112150,python3.7):2024-01-11-05:57:54.664.979 [version_verify.cpp:50][SetVersionInfo][tid:112150] send feature_info:{msg_type:37, features:{check before send open qs message,}} [INFO] TDT(112150,python3.7):2024-01-11-05:57:54.665.125 [version_verify.cpp:66][PeerVersionCheck][tid:112150] VersionVerify: Check client version info, server[1230], client[1230] [INFO] TDT(112150,python3.7):2024-01-11-05:57:54.665.140 [version_verify.cpp:87][ParseVersionInfo][tid:112150] VersionVerify: pass client version info success [INFO] TDT(112150,python3.7):2024-01-11-05:57:54.665.153 [hdc_client.cpp:276][CheckHdcConnection][tid:112150] Service[2] create hdc success [INFO] TDT(112150,python3.7):2024-01-11-05:57:54.665.167 [process_mode_manager.cpp:426][ConstructOpenMsg][tid:112150] [TsdClient] tsd get process sign successfully, procpid[112150] signSize[48] [INFO] TDT(112150,python3.7):2024-01-11-05:57:54.665.194 [version_verify.cpp:112][SpecialFeatureCheck][tid:112150] VersionVerify: previous type[6], supported [INFO] TDT(112150,python3.7):2024-01-11-05:57:54.665.218 [process_mode_manager.cpp:126][OpenProcess][tid:112150] [ProcessModeManager] deviceId[1] sessionId[1] rankSize[0], wait sub process start respond [INFO] TDT(112150,python3.7):2024-01-11-05:57:54.914.561 [stub_process_mode_nowin.cpp:63][ProcessQueueForMdc][tid:112150] [TsdClient] it is unnecessary of current mode[0] chiptype[1] to grant queue auth to aicpusd [INFO] TDT(112150,python3.7):2024-01-11-05:57:54.914.591 [stub_process_mode_nowin.cpp:101][OpenInHost][tid:112150] enter into OpenInHost deviceid[1] [INFO] TDT(112150,python3.7):2024-01-11-05:57:54.914.604 [stub_process_mode_nowin.cpp:105][OpenInHost][tid:112150] host cpu not support [INFO] TDT(112150,python3.7):2024-01-11-05:57:54.914.615 [process_mode_manager.cpp:156][OpenProcess][tid:112150] [TsdClient][deviceId=1] [sessionId=1] start hccp and computer process success [INFO] RUNTIME(112150,python3.7):2024-01-11-05:57:54.917.344 [device.cc:340] 112150 Init: isDoubledie:0, topologytype:0 [INFO] RUNTIME(112150,python3.7):2024-01-11-05:57:54.932.254 [npu_driver.cc:5428] 112495 GetDeviceStatus: GetDeviceStatus status=1. [INFO] ATRACE(112150,python3.7):2024-01-11-05:57:54.933.256 [atrace_api.c:28](tid:112150) AtraceCreate start [INFO] ATRACE(112150,python3.7):2024-01-11-05:57:54.933.345 [trace_rb_log.c:84](tid:112150) [RUNTIME_ATRACE_DEV1_TS0] create ring buffer success, buffer size : 131152. [INFO] ATRACE(112150,python3.7):2024-01-11-05:57:54.933.362 [atrace_api.c:32](tid:112150) AtraceCreate end [INFO] TDT(112150,python3.7):2024-01-11-05:57:54.933.379 [client_manager.cpp:157][SetProfilingCallback][tid:112150] [TsdClient] set profiling callback success [INFO] TDT(112150,python3.7):2024-01-11-05:57:54.945.656 [process_mode_manager.cpp:184][Close][tid:112150] [TsdClient] Close [deviceId=1][sessionId=1] hccp and computer enter [INFO] TDT(112150,python3.7):2024-01-11-05:57:54.945.691 [version_verify.cpp:112][SpecialFeatureCheck][tid:112150] VersionVerify: previous type[7], supported [INFO] TDT(112150,python3.7):2024-01-11-05:57:54.945.735 [process_mode_manager.cpp:192][Close][tid:112150] [TsdClient][deviceId=1] [sessionId=1] wait hccp and computer process close respond [INFO] TDT(112150,python3.7):2024-01-11-05:57:54.976.698 [process_mode_manager.cpp:197][Close][tid:112150] [TsdClient][logicDeviceId_=1]has recv close hccp and computer process respond [INFO] TDT(112150,python3.7):2024-01-11-05:57:54.976.714 [stub_process_mode_nowin.cpp:151][CloseInHost][tid:112150] enter into CloseInHost deviceid[1] [INFO] TDT(112150,python3.7):2024-01-11-05:57:54.976.726 [stub_process_mode_nowin.cpp:154][CloseInHost][tid:112150] host cpu not support [INFO] TDT(112150,python3.7):2024-01-11-05:57:54.976.762 [process_mode_manager.cpp:208][Close][tid:112150] [TsdClient][deviceId=1] [sessionId=1] close hccp and computer process success [INFO] ATRACE(112150,python3.7):2024-01-11-05:57:54.976.777 [atrace_api.c:93](tid:112150) AtraceDestroy start [INFO] ATRACE(112150,python3.7):2024-01-11-05:57:54.976.792 [atrace_api.c:95](tid:112150) AtraceDestroy end F[INFO] TDT(112150,python3.7):2024-01-11-05:57:55.546.786 [process_mode_manager.cpp:109][OpenProcess][tid:112150] [ProcessModeManager] enter into open process deviceId[1] rankSize[0] [INFO] TDT(112150,python3.7):2024-01-11-05:57:55.547.340 [process_mode_manager.cpp:705][GetDeviceCheckCode][tid:112150] [ProcessModeManager][deviceId=1] aicpu package already exist in device [INFO] TDT(112150,python3.7):2024-01-11-05:57:55.547.389 [process_mode_manager.cpp:379][InitTsdClient][tid:112150] [TsdClient] deviceId[1] begin to init hdc client [INFO] TDT(112150,python3.7):2024-01-11-05:57:55.547.527 [version_verify.cpp:34][SetVersionInfo][tid:112150] VersionVerify: send client version to server [INFO] TDT(112150,python3.7):2024-01-11-05:57:55.547.550 [version_verify.cpp:50][SetVersionInfo][tid:112150] send feature_info:{msg_type:35, features:{check before send aicpu package,}} [INFO] TDT(112150,python3.7):2024-01-11-05:57:55.547.574 [version_verify.cpp:50][SetVersionInfo][tid:112150] send feature_info:{msg_type:37, features:{check before send open qs message,}} [INFO] TDT(112150,python3.7):2024-01-11-05:57:55.547.886 [version_verify.cpp:66][PeerVersionCheck][tid:112150] VersionVerify: Check client version info, server[1230], client[1230] [INFO] TDT(112150,python3.7):2024-01-11-05:57:55.547.905 [version_verify.cpp:87][ParseVersionInfo][tid:112150] VersionVerify: pass client version info success [INFO] TDT(112150,python3.7):2024-01-11-05:57:55.547.917 [hdc_client.cpp:276][CheckHdcConnection][tid:112150] Service[2] create hdc success [INFO] TDT(112150,python3.7):2024-01-11-05:57:55.547.934 [process_mode_manager.cpp:426][ConstructOpenMsg][tid:112150] [TsdClient] tsd get process sign successfully, procpid[112150] signSize[48] [INFO] TDT(112150,python3.7):2024-01-11-05:57:55.547.950 [version_verify.cpp:112][SpecialFeatureCheck][tid:112150] VersionVerify: previous type[6], supported [INFO] TDT(112150,python3.7):2024-01-11-05:57:55.547.977 [process_mode_manager.cpp:126][OpenProcess][tid:112150] [ProcessModeManager] deviceId[1] sessionId[1] rankSize[0], wait sub process start respond [INFO] TDT(112150,python3.7):2024-01-11-05:57:55.793.721 [stub_process_mode_nowin.cpp:63][ProcessQueueForMdc][tid:112150] [TsdClient] it is unnecessary of current mode[0] chiptype[1] to grant queue auth to aicpusd [INFO] TDT(112150,python3.7):2024-01-11-05:57:55.793.749 [stub_process_mode_nowin.cpp:101][OpenInHost][tid:112150] enter into OpenInHost deviceid[1] [INFO] TDT(112150,python3.7):2024-01-11-05:57:55.793.762 [stub_process_mode_nowin.cpp:105][OpenInHost][tid:112150] host cpu not support [INFO] TDT(112150,python3.7):2024-01-11-05:57:55.793.770 [process_mode_manager.cpp:156][OpenProcess][tid:112150] [TsdClient][deviceId=1] [sessionId=1] start hccp and computer process success [INFO] RUNTIME(112150,python3.7):2024-01-11-05:57:55.796.383 [device.cc:340] 112150 Init: isDoubledie:0, topologytype:0 [INFO] ATRACE(112150,python3.7):2024-01-11-05:57:55.811.911 [atrace_api.c:28](tid:112150) AtraceCreate start [INFO] ATRACE(112150,python3.7):2024-01-11-05:57:55.811.982 [trace_rb_log.c:84](tid:112150) [RUNTIME_ATRACE_DEV1_TS0] create ring buffer success, buffer size : 131152. [INFO] ATRACE(112150,python3.7):2024-01-11-05:57:55.811.999 [atrace_api.c:32](tid:112150) AtraceCreate end [INFO] TDT(112150,python3.7):2024-01-11-05:57:55.812.013 [client_manager.cpp:157][SetProfilingCallback][tid:112150] [TsdClient] set profiling callback success [INFO] TDT(112150,python3.7):2024-01-11-05:57:55.821.213 [process_mode_manager.cpp:184][Close][tid:112150] [TsdClient] Close [deviceId=1][sessionId=1] hccp and computer enter [INFO] TDT(112150,python3.7):2024-01-11-05:57:55.821.251 [version_verify.cpp:112][SpecialFeatureCheck][tid:112150] VersionVerify: previous type[7], supported [INFO] TDT(112150,python3.7):2024-01-11-05:57:55.821.292 [process_mode_manager.cpp:192][Close][tid:112150] [TsdClient][deviceId=1] [sessionId=1] wait hccp and computer process close respond [INFO] TDT(112150,python3.7):2024-01-11-05:57:55.842.197 [process_mode_manager.cpp:197][Close][tid:112150] [TsdClient][logicDeviceId_=1]has recv close hccp and computer process respond [INFO] TDT(112150,python3.7):2024-01-11-05:57:55.842.217 [stub_process_mode_nowin.cpp:151][CloseInHost][tid:112150] enter into CloseInHost deviceid[1] [INFO] TDT(112150,python3.7):2024-01-11-05:57:55.842.229 [stub_process_mode_nowin.cpp:154][CloseInHost][tid:112150] host cpu not support [INFO] TDT(112150,python3.7):2024-01-11-05:57:55.842.267 [process_mode_manager.cpp:208][Close][tid:112150] [TsdClient][deviceId=1] [sessionId=1] close hccp and computer process success [INFO] ATRACE(112150,python3.7):2024-01-11-05:57:55.842.281 [atrace_api.c:93](tid:112150) AtraceDestroy start [INFO] ATRACE(112150,python3.7):2024-01-11-05:57:55.842.297 [atrace_api.c:95](tid:112150) AtraceDestroy end F =================================== FAILURES =================================== ____________________________ test_hsigmoid_vmap[0] _____________________________ mode = 0 @pytest.mark.level1 @pytest.mark.env_onecard @pytest.mark.platform_x86_cpu @pytest.mark.platform_x86_gpu_training @pytest.mark.platform_arm_ascend_training @pytest.mark.parametrize('mode', [ms.context.GRAPH_MODE, ms.context.PYNATIVE_MODE]) @test_utils.run_test_func def test_hsigmoid_vmap(mode): """ Feature: test vmap function. Description: test hsigmoid op vmap. Expectation: expect correct result. """ ms.context.set_context(mode=mode) np_array = np.array([[0.5, 0.4, -0.3, -0.2]]).astype('float32') x = Tensor(np_array) nest_vmap = ops.vmap(ops.vmap(hsigmoid_forward_func, in_axes=0), in_axes=0) > out = nest_vmap(x) test_hsigmoid.py:100: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/jenkins/.local/lib/python3.7/site-packages/mindspore/common/api.py:722: in staging_specialize out = _MindsporeFunctionExecutor(func, hash_obj, input_signature, process_obj, jit_config)(*args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = fn = .after_vmap at 0xffff15954560> ms_create_time = 1704923874649530112, input_signature = None, obj = None jit_config = None def __init__(self, fn, ms_create_time, input_signature=None, obj=None, jit_config=None): > init_pipeline() E RuntimeError: Ascend kernel runtime initialization failed. The details refer to 'Ascend Error Message'. E E ---------------------------------------------------- E - Framework Error Message: E ---------------------------------------------------- E Malloc device memory failed, free memory size is less than half of total memory size.Device 1 Device HBM total size:34359738368 Device HBM free size:1602899968 may be other processes occupying this card, check as: ps -ef|grep python E E ---------------------------------------------------- E - C++ Call Stack: (For framework developers) E ---------------------------------------------------- E mindspore/ccsrc/plugin/device/ascend/hal/device/ascend_kernel_runtime.cc:357 Init E mindspore/ccsrc/plugin/device/ascend/hal/device/ascend_memory_adapter.cc:73 Initialize /home/jenkins/.local/lib/python3.7/site-packages/mindspore/common/api.py:319: RuntimeError ____________________________ test_hsigmoid_vmap[1] _____________________________ mode = 1 @pytest.mark.level1 @pytest.mark.env_onecard @pytest.mark.platform_x86_cpu @pytest.mark.platform_x86_gpu_training @pytest.mark.platform_arm_ascend_training @pytest.mark.parametrize('mode', [ms.context.GRAPH_MODE, ms.context.PYNATIVE_MODE]) @test_utils.run_test_func def test_hsigmoid_vmap(mode): """ Feature: test vmap function. Description: test hsigmoid op vmap. Expectation: expect correct result. """ ms.context.set_context(mode=mode) np_array = np.array([[0.5, 0.4, -0.3, -0.2]]).astype('float32') x = Tensor(np_array) nest_vmap = ops.vmap(ops.vmap(hsigmoid_forward_func, in_axes=0), in_axes=0) > out = nest_vmap(x) test_hsigmoid.py:100: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /home/jenkins/.local/lib/python3.7/site-packages/mindspore/common/api.py:722: in staging_specialize out = _MindsporeFunctionExecutor(func, hash_obj, input_signature, process_obj, jit_config)(*args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = fn = .after_vmap at 0xffff1576b830> ms_create_time = 1704923875546213888, input_signature = None, obj = None jit_config = None def __init__(self, fn, ms_create_time, input_signature=None, obj=None, jit_config=None): > init_pipeline() E RuntimeError: Ascend kernel runtime initialization failed. The details refer to 'Ascend Error Message'. E E ---------------------------------------------------- E - Framework Error Message: E ---------------------------------------------------- E Malloc device memory failed, free memory size is less than half of total memory size.Device 1 Device HBM total size:34359738368 Device HBM free size:1602867200 may be other processes occupying this card, check as: ps -ef|grep python E E ---------------------------------------------------- E - C++ Call Stack: (For framework developers) E ---------------------------------------------------- E mindspore/ccsrc/plugin/device/ascend/hal/device/ascend_kernel_runtime.cc:357 Init E mindspore/ccsrc/plugin/device/ascend/hal/device/ascend_memory_adapter.cc:73 Initialize /home/jenkins/.local/lib/python3.7/site-packages/mindspore/common/api.py:319: RuntimeError =========================== short test summary info ============================ FAILED test_hsigmoid.py::test_hsigmoid_vmap[0] - RuntimeError: Ascend kernel ... FAILED test_hsigmoid.py::test_hsigmoid_vmap[1] - RuntimeError: Ascend kernel ... ============================== 2 failed in 7.62s =============================== [INFO] RUNTIME(112150,python3.7):2024-01-11-05:57:56.939.208 [runtime.cc:1737] 112150 ~Runtime: deconstruct runtime.