============================= 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_006/sault/config/pytest.ini plugins: anyio-3.7.1, forked-1.1.3, xdist-1.32.0 [INFO] ATRACE(124147,python3.7):2024-01-11-06:00:09.275.359 [trace_attr.c:105](tid:124147) platform is 1. [INFO] ATRACE(124147,python3.7):2024-01-11-06:00:09.275.505 [trace_recorder.c:114](tid:124147) use root path: /home/jenkins/ascend/atrace [INFO] ATRACE(124147,python3.7):2024-01-11-06:00:09.275.538 [trace_signal.c:133](tid:124147) register signal handler for signo 2 succeed. [INFO] ATRACE(124147,python3.7):2024-01-11-06:00:09.275.551 [trace_signal.c:133](tid:124147) register signal handler for signo 15 succeed. [INFO] RUNTIME(124147,python3.7):2024-01-11-06:00:09.680.465 [runtime.cc:1159] 124147 GetAicoreNumByLevel: workingDev_=0 [INFO] RUNTIME(124147,python3.7):2024-01-11-06:00:09.680.515 [runtime.cc:4719] 124147 GetVisibleDevices: ASCEND_RT_VISIBLE_DEVICES param was not set collected 2 items test_less.py [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.033.120 [process_mode_manager.cpp:109][OpenProcess][tid:124147] [ProcessModeManager] enter into open process deviceId[5] rankSize[0] [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.034.601 [process_mode_manager.cpp:379][InitTsdClient][tid:124147] [TsdClient] deviceId[5] begin to init hdc client [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.034.762 [version_verify.cpp:34][SetVersionInfo][tid:124147] VersionVerify: send client version to server [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.034.822 [version_verify.cpp:50][SetVersionInfo][tid:124147] send feature_info:{msg_type:35, features:{check before send aicpu package,}} [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.034.848 [version_verify.cpp:50][SetVersionInfo][tid:124147] send feature_info:{msg_type:37, features:{check before send open qs message,}} [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.035.084 [version_verify.cpp:66][PeerVersionCheck][tid:124147] VersionVerify: Check client version info, server[1230], client[1230] [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.035.102 [version_verify.cpp:87][ParseVersionInfo][tid:124147] VersionVerify: pass client version info success [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.035.113 [hdc_client.cpp:276][CheckHdcConnection][tid:124147] Service[2] create hdc success [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.035.131 [version_verify.cpp:120][SpecialFeatureCheck][tid:124147] VersionVerify: new type[35], supported [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.035.178 [process_mode_manager.cpp:748][GetDeviceCheckCode][tid:124147] [TsdClient][deviceId=5] [sessionId=1] wait package info respond [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.035.317 [process_mode_manager.cpp:379][InitTsdClient][tid:124147] [TsdClient] deviceId[5] begin to init hdc client [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.035.485 [version_verify.cpp:34][SetVersionInfo][tid:124147] VersionVerify: send client version to server [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.035.499 [version_verify.cpp:50][SetVersionInfo][tid:124147] send feature_info:{msg_type:35, features:{check before send aicpu package,}} [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.035.512 [version_verify.cpp:50][SetVersionInfo][tid:124147] send feature_info:{msg_type:37, features:{check before send open qs message,}} [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.035.660 [version_verify.cpp:66][PeerVersionCheck][tid:124147] VersionVerify: Check client version info, server[1230], client[1230] [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.035.674 [version_verify.cpp:87][ParseVersionInfo][tid:124147] VersionVerify: pass client version info success [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.035.685 [hdc_client.cpp:276][CheckHdcConnection][tid:124147] Service[2] create hdc success [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.035.699 [process_mode_manager.cpp:426][ConstructOpenMsg][tid:124147] [TsdClient] tsd get process sign successfully, procpid[124147] signSize[48] [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.035.723 [version_verify.cpp:112][SpecialFeatureCheck][tid:124147] VersionVerify: previous type[6], supported [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.035.749 [process_mode_manager.cpp:126][OpenProcess][tid:124147] [ProcessModeManager] deviceId[5] sessionId[1] rankSize[0], wait sub process start respond [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.323.804 [stub_process_mode_nowin.cpp:63][ProcessQueueForMdc][tid:124147] [TsdClient] it is unnecessary of current mode[0] chiptype[1] to grant queue auth to aicpusd [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.323.838 [stub_process_mode_nowin.cpp:101][OpenInHost][tid:124147] enter into OpenInHost deviceid[5] [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.323.851 [stub_process_mode_nowin.cpp:105][OpenInHost][tid:124147] host cpu not support [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.323.862 [process_mode_manager.cpp:156][OpenProcess][tid:124147] [TsdClient][deviceId=5] [sessionId=1] start hccp and computer process success [INFO] RUNTIME(124147,python3.7):2024-01-11-06:00:14.326.581 [device.cc:340] 124147 Init: isDoubledie:0, topologytype:0 [INFO] RUNTIME(124147,python3.7):2024-01-11-06:00:14.344.124 [npu_driver.cc:5428] 124575 GetDeviceStatus: GetDeviceStatus status=1. [INFO] ATRACE(124147,python3.7):2024-01-11-06:00:14.344.202 [atrace_api.c:28](tid:124147) AtraceCreate start [INFO] ATRACE(124147,python3.7):2024-01-11-06:00:14.344.321 [trace_rb_log.c:84](tid:124147) [RUNTIME_ATRACE_DEV5_TS0] create ring buffer success, buffer size : 131152. [INFO] ATRACE(124147,python3.7):2024-01-11-06:00:14.344.341 [atrace_api.c:32](tid:124147) AtraceCreate end [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.344.375 [client_manager.cpp:157][SetProfilingCallback][tid:124147] [TsdClient] set profiling callback success [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.356.379 [process_mode_manager.cpp:184][Close][tid:124147] [TsdClient] Close [deviceId=5][sessionId=1] hccp and computer enter [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.356.415 [version_verify.cpp:112][SpecialFeatureCheck][tid:124147] VersionVerify: previous type[7], supported [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.356.459 [process_mode_manager.cpp:192][Close][tid:124147] [TsdClient][deviceId=5] [sessionId=1] wait hccp and computer process close respond [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.377.344 [process_mode_manager.cpp:197][Close][tid:124147] [TsdClient][logicDeviceId_=5]has recv close hccp and computer process respond [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.377.362 [stub_process_mode_nowin.cpp:151][CloseInHost][tid:124147] enter into CloseInHost deviceid[5] [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.377.373 [stub_process_mode_nowin.cpp:154][CloseInHost][tid:124147] host cpu not support [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.377.407 [process_mode_manager.cpp:208][Close][tid:124147] [TsdClient][deviceId=5] [sessionId=1] close hccp and computer process success [INFO] ATRACE(124147,python3.7):2024-01-11-06:00:14.377.421 [atrace_api.c:93](tid:124147) AtraceDestroy start [INFO] ATRACE(124147,python3.7):2024-01-11-06:00:14.377.435 [atrace_api.c:95](tid:124147) AtraceDestroy end F[INFO] TDT(124147,python3.7):2024-01-11-06:00:14.958.804 [process_mode_manager.cpp:109][OpenProcess][tid:124147] [ProcessModeManager] enter into open process deviceId[5] rankSize[0] [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.959.201 [process_mode_manager.cpp:705][GetDeviceCheckCode][tid:124147] [ProcessModeManager][deviceId=5] aicpu package already exist in device [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.959.256 [process_mode_manager.cpp:379][InitTsdClient][tid:124147] [TsdClient] deviceId[5] begin to init hdc client [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.959.420 [version_verify.cpp:34][SetVersionInfo][tid:124147] VersionVerify: send client version to server [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.959.444 [version_verify.cpp:50][SetVersionInfo][tid:124147] send feature_info:{msg_type:35, features:{check before send aicpu package,}} [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.959.472 [version_verify.cpp:50][SetVersionInfo][tid:124147] send feature_info:{msg_type:37, features:{check before send open qs message,}} [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.959.698 [version_verify.cpp:66][PeerVersionCheck][tid:124147] VersionVerify: Check client version info, server[1230], client[1230] [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.959.716 [version_verify.cpp:87][ParseVersionInfo][tid:124147] VersionVerify: pass client version info success [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.959.727 [hdc_client.cpp:276][CheckHdcConnection][tid:124147] Service[2] create hdc success [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.959.743 [process_mode_manager.cpp:426][ConstructOpenMsg][tid:124147] [TsdClient] tsd get process sign successfully, procpid[124147] signSize[48] [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.959.759 [version_verify.cpp:112][SpecialFeatureCheck][tid:124147] VersionVerify: previous type[6], supported [INFO] TDT(124147,python3.7):2024-01-11-06:00:14.959.785 [process_mode_manager.cpp:126][OpenProcess][tid:124147] [ProcessModeManager] deviceId[5] sessionId[1] rankSize[0], wait sub process start respond [INFO] TDT(124147,python3.7):2024-01-11-06:00:15.180.033 [stub_process_mode_nowin.cpp:63][ProcessQueueForMdc][tid:124147] [TsdClient] it is unnecessary of current mode[0] chiptype[1] to grant queue auth to aicpusd [INFO] TDT(124147,python3.7):2024-01-11-06:00:15.180.065 [stub_process_mode_nowin.cpp:101][OpenInHost][tid:124147] enter into OpenInHost deviceid[5] [INFO] TDT(124147,python3.7):2024-01-11-06:00:15.180.079 [stub_process_mode_nowin.cpp:105][OpenInHost][tid:124147] host cpu not support [INFO] TDT(124147,python3.7):2024-01-11-06:00:15.180.091 [process_mode_manager.cpp:156][OpenProcess][tid:124147] [TsdClient][deviceId=5] [sessionId=1] start hccp and computer process success [INFO] RUNTIME(124147,python3.7):2024-01-11-06:00:15.182.695 [device.cc:340] 124147 Init: isDoubledie:0, topologytype:0 [INFO] ATRACE(124147,python3.7):2024-01-11-06:00:15.196.737 [atrace_api.c:28](tid:124147) AtraceCreate start [INFO] ATRACE(124147,python3.7):2024-01-11-06:00:15.196.791 [trace_rb_log.c:84](tid:124147) [RUNTIME_ATRACE_DEV5_TS0] create ring buffer success, buffer size : 131152. [INFO] ATRACE(124147,python3.7):2024-01-11-06:00:15.196.808 [atrace_api.c:32](tid:124147) AtraceCreate end [INFO] TDT(124147,python3.7):2024-01-11-06:00:15.196.822 [client_manager.cpp:157][SetProfilingCallback][tid:124147] [TsdClient] set profiling callback success [INFO] TDT(124147,python3.7):2024-01-11-06:00:15.206.281 [process_mode_manager.cpp:184][Close][tid:124147] [TsdClient] Close [deviceId=5][sessionId=1] hccp and computer enter [INFO] TDT(124147,python3.7):2024-01-11-06:00:15.206.320 [version_verify.cpp:112][SpecialFeatureCheck][tid:124147] VersionVerify: previous type[7], supported [INFO] TDT(124147,python3.7):2024-01-11-06:00:15.206.368 [process_mode_manager.cpp:192][Close][tid:124147] [TsdClient][deviceId=5] [sessionId=1] wait hccp and computer process close respond [INFO] TDT(124147,python3.7):2024-01-11-06:00:15.227.204 [process_mode_manager.cpp:197][Close][tid:124147] [TsdClient][logicDeviceId_=5]has recv close hccp and computer process respond [INFO] TDT(124147,python3.7):2024-01-11-06:00:15.227.223 [stub_process_mode_nowin.cpp:151][CloseInHost][tid:124147] enter into CloseInHost deviceid[5] [INFO] TDT(124147,python3.7):2024-01-11-06:00:15.227.239 [stub_process_mode_nowin.cpp:154][CloseInHost][tid:124147] host cpu not support [INFO] TDT(124147,python3.7):2024-01-11-06:00:15.227.277 [process_mode_manager.cpp:208][Close][tid:124147] [TsdClient][deviceId=5] [sessionId=1] close hccp and computer process success [INFO] ATRACE(124147,python3.7):2024-01-11-06:00:15.227.293 [atrace_api.c:93](tid:124147) AtraceDestroy start [INFO] ATRACE(124147,python3.7):2024-01-11-06:00:15.227.306 [atrace_api.c:95](tid:124147) AtraceDestroy end F =================================== FAILURES =================================== ______________________________ test_less_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]) def test_less_vmap(mode): """ Feature: test vmap function. Description: test less op vmap. Expectation: expect correct result. """ ms.context.set_context(mode=mode) x = ms.Tensor(np.array([[1, 2, 3], [1, 2, 3]]), ms.int32) y = ms.Tensor(np.array([[1, 1, 4], [1, 1, 4]]), ms.int32) less_vmap = ops.vmap(less_forward_func) > out = less_vmap(x, y) test_less.py:113: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /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 0xffff728a9e60> ms_create_time = 1704924014020702720, 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 5 Device HBM total size:34359738368 Device HBM free size:1701478400 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_less_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]) def test_less_vmap(mode): """ Feature: test vmap function. Description: test less op vmap. Expectation: expect correct result. """ ms.context.set_context(mode=mode) x = ms.Tensor(np.array([[1, 2, 3], [1, 2, 3]]), ms.int32) y = ms.Tensor(np.array([[1, 1, 4], [1, 1, 4]]), ms.int32) less_vmap = ops.vmap(less_forward_func) > out = less_vmap(x, y) test_less.py:113: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /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 0xffff728a9e60> ms_create_time = 1704924014020702720, 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 5 Device HBM total size:34359738368 Device HBM free size:1701445632 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_less.py::test_less_vmap[0] - RuntimeError: Ascend kernel runtime ... FAILED test_less.py::test_less_vmap[1] - RuntimeError: Ascend kernel runtime ... ============================== 2 failed in 7.50s =============================== [INFO] RUNTIME(124147,python3.7):2024-01-11-06:00:16.600.346 [runtime.cc:1737] 124147 ~Runtime: deconstruct runtime.