============================= 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_008/sault/config/pytest.ini plugins: anyio-3.7.1, forked-1.1.3, xdist-1.32.0 [INFO] ATRACE(123885,python3.7):2024-01-11-06:00:07.592.968 [trace_attr.c:105](tid:123885) platform is 1. [INFO] ATRACE(123885,python3.7):2024-01-11-06:00:07.593.112 [trace_recorder.c:114](tid:123885) use root path: /home/jenkins/ascend/atrace [INFO] ATRACE(123885,python3.7):2024-01-11-06:00:07.593.136 [trace_signal.c:133](tid:123885) register signal handler for signo 2 succeed. [INFO] ATRACE(123885,python3.7):2024-01-11-06:00:07.593.147 [trace_signal.c:133](tid:123885) register signal handler for signo 15 succeed. [INFO] RUNTIME(123885,python3.7):2024-01-11-06:00:07.981.836 [runtime.cc:1159] 123885 GetAicoreNumByLevel: workingDev_=0 [INFO] RUNTIME(123885,python3.7):2024-01-11-06:00:07.981.875 [runtime.cc:4719] 123885 GetVisibleDevices: ASCEND_RT_VISIBLE_DEVICES param was not set collected 2 items test_range.py [INFO] TDT(123885,python3.7):2024-01-11-06:00:12.179.271 [process_mode_manager.cpp:109][OpenProcess][tid:123885] [ProcessModeManager] enter into open process deviceId[7] rankSize[0] [INFO] TDT(123885,python3.7):2024-01-11-06:00:12.179.930 [process_mode_manager.cpp:379][InitTsdClient][tid:123885] [TsdClient] deviceId[7] begin to init hdc client [INFO] TDT(123885,python3.7):2024-01-11-06:00:12.180.055 [version_verify.cpp:34][SetVersionInfo][tid:123885] VersionVerify: send client version to server [INFO] TDT(123885,python3.7):2024-01-11-06:00:12.180.082 [version_verify.cpp:50][SetVersionInfo][tid:123885] send feature_info:{msg_type:35, features:{check before send aicpu package,}} [INFO] TDT(123885,python3.7):2024-01-11-06:00:12.180.096 [version_verify.cpp:50][SetVersionInfo][tid:123885] send feature_info:{msg_type:37, features:{check before send open qs message,}} [INFO] TDT(123885,python3.7):2024-01-11-06:00:12.182.807 [version_verify.cpp:66][PeerVersionCheck][tid:123885] VersionVerify: Check client version info, server[1230], client[1230] [INFO] TDT(123885,python3.7):2024-01-11-06:00:12.182.824 [version_verify.cpp:87][ParseVersionInfo][tid:123885] VersionVerify: pass client version info success [INFO] TDT(123885,python3.7):2024-01-11-06:00:12.182.834 [hdc_client.cpp:276][CheckHdcConnection][tid:123885] Service[2] create hdc success [INFO] TDT(123885,python3.7):2024-01-11-06:00:12.182.846 [version_verify.cpp:120][SpecialFeatureCheck][tid:123885] VersionVerify: new type[35], supported [INFO] TDT(123885,python3.7):2024-01-11-06:00:12.182.887 [process_mode_manager.cpp:748][GetDeviceCheckCode][tid:123885] [TsdClient][deviceId=7] [sessionId=1] wait package info respond [INFO] TDT(123885,python3.7):2024-01-11-06:00:12.182.994 [process_mode_manager.cpp:379][InitTsdClient][tid:123885] [TsdClient] deviceId[7] begin to init hdc client [INFO] TDT(123885,python3.7):2024-01-11-06:00:12.184.310 [version_verify.cpp:34][SetVersionInfo][tid:123885] VersionVerify: send client version to server [INFO] TDT(123885,python3.7):2024-01-11-06:00:12.184.322 [version_verify.cpp:50][SetVersionInfo][tid:123885] send feature_info:{msg_type:35, features:{check before send aicpu package,}} [INFO] TDT(123885,python3.7):2024-01-11-06:00:12.184.333 [version_verify.cpp:50][SetVersionInfo][tid:123885] send feature_info:{msg_type:37, features:{check before send open qs message,}} [INFO] TDT(123885,python3.7):2024-01-11-06:00:12.184.542 [version_verify.cpp:66][PeerVersionCheck][tid:123885] VersionVerify: Check client version info, server[1230], client[1230] [INFO] TDT(123885,python3.7):2024-01-11-06:00:12.184.554 [version_verify.cpp:87][ParseVersionInfo][tid:123885] VersionVerify: pass client version info success [INFO] TDT(123885,python3.7):2024-01-11-06:00:12.184.563 [hdc_client.cpp:276][CheckHdcConnection][tid:123885] Service[2] create hdc success [INFO] TDT(123885,python3.7):2024-01-11-06:00:12.184.574 [process_mode_manager.cpp:426][ConstructOpenMsg][tid:123885] [TsdClient] tsd get process sign successfully, procpid[123885] signSize[48] [INFO] TDT(123885,python3.7):2024-01-11-06:00:12.184.599 [version_verify.cpp:112][SpecialFeatureCheck][tid:123885] VersionVerify: previous type[6], supported [INFO] TDT(123885,python3.7):2024-01-11-06:00:12.184.616 [process_mode_manager.cpp:126][OpenProcess][tid:123885] [ProcessModeManager] deviceId[7] sessionId[1] rankSize[0], wait sub process start respond [INFO] TDT(123885,python3.7):2024-01-11-06:00:12.414.148 [stub_process_mode_nowin.cpp:63][ProcessQueueForMdc][tid:123885] [TsdClient] it is unnecessary of current mode[0] chiptype[1] to grant queue auth to aicpusd [INFO] TDT(123885,python3.7):2024-01-11-06:00:12.414.178 [stub_process_mode_nowin.cpp:101][OpenInHost][tid:123885] enter into OpenInHost deviceid[7] [INFO] TDT(123885,python3.7):2024-01-11-06:00:12.414.188 [stub_process_mode_nowin.cpp:105][OpenInHost][tid:123885] host cpu not support [INFO] TDT(123885,python3.7):2024-01-11-06:00:12.414.197 [process_mode_manager.cpp:156][OpenProcess][tid:123885] [TsdClient][deviceId=7] [sessionId=1] start hccp and computer process success [INFO] RUNTIME(123885,python3.7):2024-01-11-06:00:12.416.833 [device.cc:340] 123885 Init: isDoubledie:0, topologytype:0 [INFO] RUNTIME(123885,python3.7):2024-01-11-06:00:12.430.771 [npu_driver.cc:5428] 124410 GetDeviceStatus: GetDeviceStatus status=1. [INFO] ATRACE(123885,python3.7):2024-01-11-06:00:12.430.850 [atrace_api.c:28](tid:123885) AtraceCreate start [INFO] ATRACE(123885,python3.7):2024-01-11-06:00:12.430.941 [trace_rb_log.c:84](tid:123885) [RUNTIME_ATRACE_DEV7_TS0] create ring buffer success, buffer size : 131152. [INFO] ATRACE(123885,python3.7):2024-01-11-06:00:12.430.956 [atrace_api.c:32](tid:123885) AtraceCreate end [INFO] TDT(123885,python3.7):2024-01-11-06:00:12.430.971 [client_manager.cpp:157][SetProfilingCallback][tid:123885] [TsdClient] set profiling callback success [INFO] TDT(123885,python3.7):2024-01-11-06:00:12.443.370 [process_mode_manager.cpp:184][Close][tid:123885] [TsdClient] Close [deviceId=7][sessionId=1] hccp and computer enter [INFO] TDT(123885,python3.7):2024-01-11-06:00:12.443.407 [version_verify.cpp:112][SpecialFeatureCheck][tid:123885] VersionVerify: previous type[7], supported [INFO] TDT(123885,python3.7):2024-01-11-06:00:12.443.443 [process_mode_manager.cpp:192][Close][tid:123885] [TsdClient][deviceId=7] [sessionId=1] wait hccp and computer process close respond [INFO] TDT(123885,python3.7):2024-01-11-06:00:12.467.017 [process_mode_manager.cpp:197][Close][tid:123885] [TsdClient][logicDeviceId_=7]has recv close hccp and computer process respond [INFO] TDT(123885,python3.7):2024-01-11-06:00:12.467.034 [stub_process_mode_nowin.cpp:151][CloseInHost][tid:123885] enter into CloseInHost deviceid[7] [INFO] TDT(123885,python3.7):2024-01-11-06:00:12.467.044 [stub_process_mode_nowin.cpp:154][CloseInHost][tid:123885] host cpu not support [INFO] TDT(123885,python3.7):2024-01-11-06:00:12.467.073 [process_mode_manager.cpp:208][Close][tid:123885] [TsdClient][deviceId=7] [sessionId=1] close hccp and computer process success [INFO] ATRACE(123885,python3.7):2024-01-11-06:00:12.467.087 [atrace_api.c:93](tid:123885) AtraceDestroy start [INFO] ATRACE(123885,python3.7):2024-01-11-06:00:12.467.099 [atrace_api.c:95](tid:123885) AtraceDestroy end F[INFO] TDT(123885,python3.7):2024-01-11-06:00:13.040.034 [process_mode_manager.cpp:109][OpenProcess][tid:123885] [ProcessModeManager] enter into open process deviceId[7] rankSize[0] [INFO] TDT(123885,python3.7):2024-01-11-06:00:13.040.408 [process_mode_manager.cpp:705][GetDeviceCheckCode][tid:123885] [ProcessModeManager][deviceId=7] aicpu package already exist in device [INFO] TDT(123885,python3.7):2024-01-11-06:00:13.040.455 [process_mode_manager.cpp:379][InitTsdClient][tid:123885] [TsdClient] deviceId[7] begin to init hdc client [INFO] TDT(123885,python3.7):2024-01-11-06:00:13.040.584 [version_verify.cpp:34][SetVersionInfo][tid:123885] VersionVerify: send client version to server [INFO] TDT(123885,python3.7):2024-01-11-06:00:13.040.604 [version_verify.cpp:50][SetVersionInfo][tid:123885] send feature_info:{msg_type:35, features:{check before send aicpu package,}} [INFO] TDT(123885,python3.7):2024-01-11-06:00:13.040.628 [version_verify.cpp:50][SetVersionInfo][tid:123885] send feature_info:{msg_type:37, features:{check before send open qs message,}} [INFO] TDT(123885,python3.7):2024-01-11-06:00:13.040.925 [version_verify.cpp:66][PeerVersionCheck][tid:123885] VersionVerify: Check client version info, server[1230], client[1230] [INFO] TDT(123885,python3.7):2024-01-11-06:00:13.040.942 [version_verify.cpp:87][ParseVersionInfo][tid:123885] VersionVerify: pass client version info success [INFO] TDT(123885,python3.7):2024-01-11-06:00:13.040.952 [hdc_client.cpp:276][CheckHdcConnection][tid:123885] Service[2] create hdc success [INFO] TDT(123885,python3.7):2024-01-11-06:00:13.040.964 [process_mode_manager.cpp:426][ConstructOpenMsg][tid:123885] [TsdClient] tsd get process sign successfully, procpid[123885] signSize[48] [INFO] TDT(123885,python3.7):2024-01-11-06:00:13.040.977 [version_verify.cpp:112][SpecialFeatureCheck][tid:123885] VersionVerify: previous type[6], supported [INFO] TDT(123885,python3.7):2024-01-11-06:00:13.040.995 [process_mode_manager.cpp:126][OpenProcess][tid:123885] [ProcessModeManager] deviceId[7] sessionId[1] rankSize[0], wait sub process start respond [INFO] TDT(123885,python3.7):2024-01-11-06:00:13.275.463 [stub_process_mode_nowin.cpp:63][ProcessQueueForMdc][tid:123885] [TsdClient] it is unnecessary of current mode[0] chiptype[1] to grant queue auth to aicpusd [INFO] TDT(123885,python3.7):2024-01-11-06:00:13.275.489 [stub_process_mode_nowin.cpp:101][OpenInHost][tid:123885] enter into OpenInHost deviceid[7] [INFO] TDT(123885,python3.7):2024-01-11-06:00:13.275.500 [stub_process_mode_nowin.cpp:105][OpenInHost][tid:123885] host cpu not support [INFO] TDT(123885,python3.7):2024-01-11-06:00:13.275.510 [process_mode_manager.cpp:156][OpenProcess][tid:123885] [TsdClient][deviceId=7] [sessionId=1] start hccp and computer process success [INFO] RUNTIME(123885,python3.7):2024-01-11-06:00:13.278.061 [device.cc:340] 123885 Init: isDoubledie:0, topologytype:0 [INFO] ATRACE(123885,python3.7):2024-01-11-06:00:13.289.886 [atrace_api.c:28](tid:123885) AtraceCreate start [INFO] ATRACE(123885,python3.7):2024-01-11-06:00:13.289.930 [trace_rb_log.c:84](tid:123885) [RUNTIME_ATRACE_DEV7_TS0] create ring buffer success, buffer size : 131152. [INFO] ATRACE(123885,python3.7):2024-01-11-06:00:13.289.943 [atrace_api.c:32](tid:123885) AtraceCreate end [INFO] TDT(123885,python3.7):2024-01-11-06:00:13.289.955 [client_manager.cpp:157][SetProfilingCallback][tid:123885] [TsdClient] set profiling callback success [INFO] TDT(123885,python3.7):2024-01-11-06:00:13.299.138 [process_mode_manager.cpp:184][Close][tid:123885] [TsdClient] Close [deviceId=7][sessionId=1] hccp and computer enter [INFO] TDT(123885,python3.7):2024-01-11-06:00:13.299.169 [version_verify.cpp:112][SpecialFeatureCheck][tid:123885] VersionVerify: previous type[7], supported [INFO] TDT(123885,python3.7):2024-01-11-06:00:13.299.203 [process_mode_manager.cpp:192][Close][tid:123885] [TsdClient][deviceId=7] [sessionId=1] wait hccp and computer process close respond [INFO] TDT(123885,python3.7):2024-01-11-06:00:13.320.619 [process_mode_manager.cpp:197][Close][tid:123885] [TsdClient][logicDeviceId_=7]has recv close hccp and computer process respond [INFO] TDT(123885,python3.7):2024-01-11-06:00:13.320.634 [stub_process_mode_nowin.cpp:151][CloseInHost][tid:123885] enter into CloseInHost deviceid[7] [INFO] TDT(123885,python3.7):2024-01-11-06:00:13.320.644 [stub_process_mode_nowin.cpp:154][CloseInHost][tid:123885] host cpu not support [INFO] TDT(123885,python3.7):2024-01-11-06:00:13.320.675 [process_mode_manager.cpp:208][Close][tid:123885] [TsdClient][deviceId=7] [sessionId=1] close hccp and computer process success [INFO] ATRACE(123885,python3.7):2024-01-11-06:00:13.320.687 [atrace_api.c:93](tid:123885) AtraceDestroy start [INFO] ATRACE(123885,python3.7):2024-01-11-06:00:13.320.699 [atrace_api.c:95](tid:123885) AtraceDestroy end F =================================== FAILURES =================================== ____________________________ test_range_backward[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.GRAPH_MODE, ms.PYNATIVE_MODE]) @test_utils.run_test_func def test_range_backward(mode): """ Feature: range ops. Description: test auto grad of ops range. Expectation: output the right grad. """ context.set_context(mode=mode) start = 0 limit = 10 delta = 2 > output = range_backward_func(start, limit, delta) test_range.py:96: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_utils.py:42: in wrapper cell_obj = Net(fn) test_utils.py:29: in __init__ super().__init__() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Net<>, auto_prefix = True, flags = None def __init__(self, auto_prefix=True, flags=None): Cell_.__init__(self, self._cell_tag) self._params = OrderedDict() self._cells = OrderedDict() self._params_list = OrderedDict() self._tensor_list = OrderedDict() self._primitives = OrderedDict() self.training = False self.requires_grad = False self.pynative = False self._attr_synced = False self._param_prefix = '' self._auto_prefix = auto_prefix self._scope = None self._phase = 'train' self._parameter_layout_dict = {} self._parallel_parameter_name_list = () self._parallel_parameter_merge_net_dict = {} self._create_time = int(time.time() * 1e9) self.arguments_key = "" self.compile_cache = set() cells_compile_cache[id(self)] = self.compile_cache self.parameter_broadcast_done = False self._id = 1 self.exist_names = set("") self.exist_objs = set() > 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 7 Device HBM total size:34359738368 Device HBM free size:1701552128 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/nn/cell.py:134: RuntimeError ____________________________ test_range_backward[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.GRAPH_MODE, ms.PYNATIVE_MODE]) @test_utils.run_test_func def test_range_backward(mode): """ Feature: range ops. Description: test auto grad of ops range. Expectation: output the right grad. """ context.set_context(mode=mode) start = 0 limit = 10 delta = 2 > output = range_backward_func(start, limit, delta) test_range.py:96: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test_utils.py:42: in wrapper cell_obj = Net(fn) test_utils.py:29: in __init__ super().__init__() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Net<>, auto_prefix = True, flags = None def __init__(self, auto_prefix=True, flags=None): Cell_.__init__(self, self._cell_tag) self._params = OrderedDict() self._cells = OrderedDict() self._params_list = OrderedDict() self._tensor_list = OrderedDict() self._primitives = OrderedDict() self.training = False self.requires_grad = False self.pynative = False self._attr_synced = False self._param_prefix = '' self._auto_prefix = auto_prefix self._scope = None self._phase = 'train' self._parameter_layout_dict = {} self._parallel_parameter_name_list = () self._parallel_parameter_merge_net_dict = {} self._create_time = int(time.time() * 1e9) self.arguments_key = "" self.compile_cache = set() cells_compile_cache[id(self)] = self.compile_cache self.parameter_broadcast_done = False self._id = 1 self.exist_names = set("") self.exist_objs = set() > 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 7 Device HBM total size:34359738368 Device HBM free size:1701519360 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/nn/cell.py:134: RuntimeError =========================== short test summary info ============================ FAILED test_range.py::test_range_backward[0] - RuntimeError: Ascend kernel ru... FAILED test_range.py::test_range_backward[1] - RuntimeError: Ascend kernel ru... ============================== 2 failed in 7.23s =============================== [INFO] RUNTIME(123885,python3.7):2024-01-11-06:00:14.397.659 [runtime.cc:1737] 123885 ~Runtime: deconstruct runtime.