============================= 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/tensor, 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(125822,python3.7):2024-01-11-06:00:27.222.896 [trace_attr.c:105](tid:125822) platform is 1. [INFO] ATRACE(125822,python3.7):2024-01-11-06:00:27.223.056 [trace_recorder.c:114](tid:125822) use root path: /home/jenkins/ascend/atrace [INFO] ATRACE(125822,python3.7):2024-01-11-06:00:27.223.080 [trace_signal.c:133](tid:125822) register signal handler for signo 2 succeed. [INFO] ATRACE(125822,python3.7):2024-01-11-06:00:27.223.092 [trace_signal.c:133](tid:125822) register signal handler for signo 15 succeed. [INFO] RUNTIME(125822,python3.7):2024-01-11-06:00:27.614.168 [runtime.cc:1159] 125822 GetAicoreNumByLevel: workingDev_=0 [INFO] RUNTIME(125822,python3.7):2024-01-11-06:00:27.614.207 [runtime.cc:4719] 125822 GetVisibleDevices: ASCEND_RT_VISIBLE_DEVICES param was not set collected 2 items test_movedim.py [INFO] TDT(125822,python3.7):2024-01-11-06:00:31.847.749 [process_mode_manager.cpp:109][OpenProcess][tid:125822] [ProcessModeManager] enter into open process deviceId[7] rankSize[0] [INFO] TDT(125822,python3.7):2024-01-11-06:00:31.849.596 [process_mode_manager.cpp:379][InitTsdClient][tid:125822] [TsdClient] deviceId[7] begin to init hdc client [INFO] TDT(125822,python3.7):2024-01-11-06:00:31.849.722 [version_verify.cpp:34][SetVersionInfo][tid:125822] VersionVerify: send client version to server [INFO] TDT(125822,python3.7):2024-01-11-06:00:31.849.747 [version_verify.cpp:50][SetVersionInfo][tid:125822] send feature_info:{msg_type:35, features:{check before send aicpu package,}} [INFO] TDT(125822,python3.7):2024-01-11-06:00:31.849.761 [version_verify.cpp:50][SetVersionInfo][tid:125822] send feature_info:{msg_type:37, features:{check before send open qs message,}} [INFO] TDT(125822,python3.7):2024-01-11-06:00:31.850.210 [version_verify.cpp:66][PeerVersionCheck][tid:125822] VersionVerify: Check client version info, server[1230], client[1230] [INFO] TDT(125822,python3.7):2024-01-11-06:00:31.850.227 [version_verify.cpp:87][ParseVersionInfo][tid:125822] VersionVerify: pass client version info success [INFO] TDT(125822,python3.7):2024-01-11-06:00:31.850.237 [hdc_client.cpp:276][CheckHdcConnection][tid:125822] Service[2] create hdc success [INFO] TDT(125822,python3.7):2024-01-11-06:00:31.850.251 [version_verify.cpp:120][SpecialFeatureCheck][tid:125822] VersionVerify: new type[35], supported [INFO] TDT(125822,python3.7):2024-01-11-06:00:31.850.300 [process_mode_manager.cpp:748][GetDeviceCheckCode][tid:125822] [TsdClient][deviceId=7] [sessionId=1] wait package info respond [INFO] TDT(125822,python3.7):2024-01-11-06:00:31.850.407 [process_mode_manager.cpp:379][InitTsdClient][tid:125822] [TsdClient] deviceId[7] begin to init hdc client [INFO] TDT(125822,python3.7):2024-01-11-06:00:31.850.489 [version_verify.cpp:34][SetVersionInfo][tid:125822] VersionVerify: send client version to server [INFO] TDT(125822,python3.7):2024-01-11-06:00:31.850.503 [version_verify.cpp:50][SetVersionInfo][tid:125822] send feature_info:{msg_type:35, features:{check before send aicpu package,}} [INFO] TDT(125822,python3.7):2024-01-11-06:00:31.850.514 [version_verify.cpp:50][SetVersionInfo][tid:125822] send feature_info:{msg_type:37, features:{check before send open qs message,}} [INFO] TDT(125822,python3.7):2024-01-11-06:00:31.850.736 [version_verify.cpp:66][PeerVersionCheck][tid:125822] VersionVerify: Check client version info, server[1230], client[1230] [INFO] TDT(125822,python3.7):2024-01-11-06:00:31.850.750 [version_verify.cpp:87][ParseVersionInfo][tid:125822] VersionVerify: pass client version info success [INFO] TDT(125822,python3.7):2024-01-11-06:00:31.850.760 [hdc_client.cpp:276][CheckHdcConnection][tid:125822] Service[2] create hdc success [INFO] TDT(125822,python3.7):2024-01-11-06:00:31.850.770 [process_mode_manager.cpp:426][ConstructOpenMsg][tid:125822] [TsdClient] tsd get process sign successfully, procpid[125822] signSize[48] [INFO] TDT(125822,python3.7):2024-01-11-06:00:31.850.796 [version_verify.cpp:112][SpecialFeatureCheck][tid:125822] VersionVerify: previous type[6], supported [INFO] TDT(125822,python3.7):2024-01-11-06:00:31.850.815 [process_mode_manager.cpp:126][OpenProcess][tid:125822] [ProcessModeManager] deviceId[7] sessionId[1] rankSize[0], wait sub process start respond [INFO] TDT(125822,python3.7):2024-01-11-06:00:32.205.658 [stub_process_mode_nowin.cpp:63][ProcessQueueForMdc][tid:125822] [TsdClient] it is unnecessary of current mode[0] chiptype[1] to grant queue auth to aicpusd [INFO] TDT(125822,python3.7):2024-01-11-06:00:32.205.704 [stub_process_mode_nowin.cpp:101][OpenInHost][tid:125822] enter into OpenInHost deviceid[7] [INFO] TDT(125822,python3.7):2024-01-11-06:00:32.205.714 [stub_process_mode_nowin.cpp:105][OpenInHost][tid:125822] host cpu not support [INFO] TDT(125822,python3.7):2024-01-11-06:00:32.205.723 [process_mode_manager.cpp:156][OpenProcess][tid:125822] [TsdClient][deviceId=7] [sessionId=1] start hccp and computer process success [INFO] RUNTIME(125822,python3.7):2024-01-11-06:00:32.208.391 [device.cc:340] 125822 Init: isDoubledie:0, topologytype:0 [INFO] RUNTIME(125822,python3.7):2024-01-11-06:00:32.224.183 [npu_driver.cc:5428] 126273 GetDeviceStatus: GetDeviceStatus status=1. [INFO] ATRACE(125822,python3.7):2024-01-11-06:00:32.224.258 [atrace_api.c:28](tid:125822) AtraceCreate start [INFO] ATRACE(125822,python3.7):2024-01-11-06:00:32.224.384 [trace_rb_log.c:84](tid:125822) [RUNTIME_ATRACE_DEV7_TS0] create ring buffer success, buffer size : 131152. [INFO] ATRACE(125822,python3.7):2024-01-11-06:00:32.224.402 [atrace_api.c:32](tid:125822) AtraceCreate end [INFO] TDT(125822,python3.7):2024-01-11-06:00:32.224.418 [client_manager.cpp:157][SetProfilingCallback][tid:125822] [TsdClient] set profiling callback success [INFO] TDT(125822,python3.7):2024-01-11-06:00:32.236.253 [process_mode_manager.cpp:184][Close][tid:125822] [TsdClient] Close [deviceId=7][sessionId=1] hccp and computer enter [INFO] TDT(125822,python3.7):2024-01-11-06:00:32.236.295 [version_verify.cpp:112][SpecialFeatureCheck][tid:125822] VersionVerify: previous type[7], supported [INFO] TDT(125822,python3.7):2024-01-11-06:00:32.236.337 [process_mode_manager.cpp:192][Close][tid:125822] [TsdClient][deviceId=7] [sessionId=1] wait hccp and computer process close respond [INFO] TDT(125822,python3.7):2024-01-11-06:00:32.257.716 [process_mode_manager.cpp:197][Close][tid:125822] [TsdClient][logicDeviceId_=7]has recv close hccp and computer process respond [INFO] TDT(125822,python3.7):2024-01-11-06:00:32.257.740 [stub_process_mode_nowin.cpp:151][CloseInHost][tid:125822] enter into CloseInHost deviceid[7] [INFO] TDT(125822,python3.7):2024-01-11-06:00:32.257.752 [stub_process_mode_nowin.cpp:154][CloseInHost][tid:125822] host cpu not support [INFO] TDT(125822,python3.7):2024-01-11-06:00:32.257.787 [process_mode_manager.cpp:208][Close][tid:125822] [TsdClient][deviceId=7] [sessionId=1] close hccp and computer process success [INFO] ATRACE(125822,python3.7):2024-01-11-06:00:32.257.801 [atrace_api.c:93](tid:125822) AtraceDestroy start [INFO] ATRACE(125822,python3.7):2024-01-11-06:00:32.257.815 [atrace_api.c:95](tid:125822) AtraceDestroy end F[INFO] TDT(125822,python3.7):2024-01-11-06:00:32.819.614 [process_mode_manager.cpp:109][OpenProcess][tid:125822] [ProcessModeManager] enter into open process deviceId[7] rankSize[0] [INFO] TDT(125822,python3.7):2024-01-11-06:00:32.819.992 [process_mode_manager.cpp:705][GetDeviceCheckCode][tid:125822] [ProcessModeManager][deviceId=7] aicpu package already exist in device [INFO] TDT(125822,python3.7):2024-01-11-06:00:32.820.037 [process_mode_manager.cpp:379][InitTsdClient][tid:125822] [TsdClient] deviceId[7] begin to init hdc client [INFO] TDT(125822,python3.7):2024-01-11-06:00:32.820.171 [version_verify.cpp:34][SetVersionInfo][tid:125822] VersionVerify: send client version to server [INFO] TDT(125822,python3.7):2024-01-11-06:00:32.820.189 [version_verify.cpp:50][SetVersionInfo][tid:125822] send feature_info:{msg_type:35, features:{check before send aicpu package,}} [INFO] TDT(125822,python3.7):2024-01-11-06:00:32.820.217 [version_verify.cpp:50][SetVersionInfo][tid:125822] send feature_info:{msg_type:37, features:{check before send open qs message,}} [INFO] TDT(125822,python3.7):2024-01-11-06:00:32.820.463 [version_verify.cpp:66][PeerVersionCheck][tid:125822] VersionVerify: Check client version info, server[1230], client[1230] [INFO] TDT(125822,python3.7):2024-01-11-06:00:32.820.479 [version_verify.cpp:87][ParseVersionInfo][tid:125822] VersionVerify: pass client version info success [INFO] TDT(125822,python3.7):2024-01-11-06:00:32.820.490 [hdc_client.cpp:276][CheckHdcConnection][tid:125822] Service[2] create hdc success [INFO] TDT(125822,python3.7):2024-01-11-06:00:32.820.502 [process_mode_manager.cpp:426][ConstructOpenMsg][tid:125822] [TsdClient] tsd get process sign successfully, procpid[125822] signSize[48] [INFO] TDT(125822,python3.7):2024-01-11-06:00:32.820.515 [version_verify.cpp:112][SpecialFeatureCheck][tid:125822] VersionVerify: previous type[6], supported [INFO] TDT(125822,python3.7):2024-01-11-06:00:32.820.533 [process_mode_manager.cpp:126][OpenProcess][tid:125822] [ProcessModeManager] deviceId[7] sessionId[1] rankSize[0], wait sub process start respond [INFO] TDT(125822,python3.7):2024-01-11-06:00:33.060.797 [stub_process_mode_nowin.cpp:63][ProcessQueueForMdc][tid:125822] [TsdClient] it is unnecessary of current mode[0] chiptype[1] to grant queue auth to aicpusd [INFO] TDT(125822,python3.7):2024-01-11-06:00:33.060.821 [stub_process_mode_nowin.cpp:101][OpenInHost][tid:125822] enter into OpenInHost deviceid[7] [INFO] TDT(125822,python3.7):2024-01-11-06:00:33.060.831 [stub_process_mode_nowin.cpp:105][OpenInHost][tid:125822] host cpu not support [INFO] TDT(125822,python3.7):2024-01-11-06:00:33.060.840 [process_mode_manager.cpp:156][OpenProcess][tid:125822] [TsdClient][deviceId=7] [sessionId=1] start hccp and computer process success [INFO] RUNTIME(125822,python3.7):2024-01-11-06:00:33.063.479 [device.cc:340] 125822 Init: isDoubledie:0, topologytype:0 [INFO] ATRACE(125822,python3.7):2024-01-11-06:00:33.077.016 [atrace_api.c:28](tid:125822) AtraceCreate start [INFO] ATRACE(125822,python3.7):2024-01-11-06:00:33.077.074 [trace_rb_log.c:84](tid:125822) [RUNTIME_ATRACE_DEV7_TS0] create ring buffer success, buffer size : 131152. [INFO] ATRACE(125822,python3.7):2024-01-11-06:00:33.077.088 [atrace_api.c:32](tid:125822) AtraceCreate end [INFO] TDT(125822,python3.7):2024-01-11-06:00:33.077.101 [client_manager.cpp:157][SetProfilingCallback][tid:125822] [TsdClient] set profiling callback success [INFO] TDT(125822,python3.7):2024-01-11-06:00:33.088.052 [process_mode_manager.cpp:184][Close][tid:125822] [TsdClient] Close [deviceId=7][sessionId=1] hccp and computer enter [INFO] TDT(125822,python3.7):2024-01-11-06:00:33.088.089 [version_verify.cpp:112][SpecialFeatureCheck][tid:125822] VersionVerify: previous type[7], supported [INFO] TDT(125822,python3.7):2024-01-11-06:00:33.088.129 [process_mode_manager.cpp:192][Close][tid:125822] [TsdClient][deviceId=7] [sessionId=1] wait hccp and computer process close respond [INFO] TDT(125822,python3.7):2024-01-11-06:00:33.109.508 [process_mode_manager.cpp:197][Close][tid:125822] [TsdClient][logicDeviceId_=7]has recv close hccp and computer process respond [INFO] TDT(125822,python3.7):2024-01-11-06:00:33.109.537 [stub_process_mode_nowin.cpp:151][CloseInHost][tid:125822] enter into CloseInHost deviceid[7] [INFO] TDT(125822,python3.7):2024-01-11-06:00:33.109.550 [stub_process_mode_nowin.cpp:154][CloseInHost][tid:125822] host cpu not support [INFO] TDT(125822,python3.7):2024-01-11-06:00:33.109.583 [process_mode_manager.cpp:208][Close][tid:125822] [TsdClient][deviceId=7] [sessionId=1] close hccp and computer process success [INFO] ATRACE(125822,python3.7):2024-01-11-06:00:33.109.598 [atrace_api.c:93](tid:125822) AtraceDestroy start [INFO] ATRACE(125822,python3.7):2024-01-11-06:00:33.109.612 [atrace_api.c:95](tid:125822) AtraceDestroy end F =================================== FAILURES =================================== _________________________________ test_net[0] __________________________________ mode = 0 @pytest.mark.level1 @pytest.mark.platform_x86_cpu @pytest.mark.platform_arm_cpu @pytest.mark.platform_x86_gpu_training @pytest.mark.platform_arm_ascend_training @pytest.mark.platform_x86_ascend_training @pytest.mark.env_onecard @pytest.mark.parametrize('mode', [ms.GRAPH_MODE, ms.PYNATIVE_MODE]) def test_net(mode): """ Feature: test movedim Description: verify the result of movedim Expectation: assertion success """ ms.set_context(mode=mode) x = Tensor(np.array([[[-0.3362], [-0.8437]], [[-0.9627], [0.1727]], [[0.5173], [-0.1398]]]), ms.float32) > movedim = Net() test_movedim.py:43: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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:1701453824 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_net[1] __________________________________ mode = 1 @pytest.mark.level1 @pytest.mark.platform_x86_cpu @pytest.mark.platform_arm_cpu @pytest.mark.platform_x86_gpu_training @pytest.mark.platform_arm_ascend_training @pytest.mark.platform_x86_ascend_training @pytest.mark.env_onecard @pytest.mark.parametrize('mode', [ms.GRAPH_MODE, ms.PYNATIVE_MODE]) def test_net(mode): """ Feature: test movedim Description: verify the result of movedim Expectation: assertion success """ ms.set_context(mode=mode) x = Tensor(np.array([[[-0.3362], [-0.8437]], [[-0.9627], [0.1727]], [[0.5173], [-0.1398]]]), ms.float32) > movedim = Net() test_movedim.py:43: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 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:1701421056 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_movedim.py::test_net[0] - RuntimeError: Ascend kernel runtime ini... FAILED test_movedim.py::test_net[1] - RuntimeError: Ascend kernel runtime ini... ============================== 2 failed in 7.43s =============================== [INFO] RUNTIME(125822,python3.7):2024-01-11-06:00:34.177.456 [runtime.cc:1737] 125822 ~Runtime: deconstruct runtime.