From db3a5f1b41da6f738778c82dc7cdb4a017a18039 Mon Sep 17 00:00:00 2001 From: yanghaoran Date: Wed, 23 Mar 2022 15:48:30 +0800 Subject: [PATCH] fix cmake script and adapt to new file stucture --- .../plugin/device/ascend/hal/hccl_adapter/plugin/CMakeLists.txt | 2 +- tests/st/ops/ascend/test_lstm_op.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mindspore/ccsrc/plugin/device/ascend/hal/hccl_adapter/plugin/CMakeLists.txt b/mindspore/ccsrc/plugin/device/ascend/hal/hccl_adapter/plugin/CMakeLists.txt index a50cb0e9f66..6abc4bf3bd3 100644 --- a/mindspore/ccsrc/plugin/device/ascend/hal/hccl_adapter/plugin/CMakeLists.txt +++ b/mindspore/ccsrc/plugin/device/ascend/hal/hccl_adapter/plugin/CMakeLists.txt @@ -34,7 +34,7 @@ else() set(ASCEND_TOOLKIT_RUNTIME_PATH ${ASCEND_PATH}/ascend-toolkit/latest/fwkacllib/lib64) set(ASCEND_TOOLKIT_PLUGIN_PATH ${ASCEND_TOOLKIT_RUNTIME_PATH}/plugin/opskernel) set(ASCEND_CANN_RUNTIME_PATH ${ASCEND_PATH}/latest/fwkacllib/lib64) - set(ASCEND_CANN_PLUGIN_PATH ${ASCEND_RUNTIME_PATH}/latest/plugin/opskernel) + set(ASCEND_CANN_PLUGIN_PATH ${ASCEND_CANN_RUNTIME_PATH}/plugin/opskernel) endif() find_library(HCCL hccl ${ASCEND_RUNTIME_PATH} ${ASCEND_TOOLKIT_RUNTIME_PATH} ${ASCEND_CANN_RUNTIME_PATH}) diff --git a/tests/st/ops/ascend/test_lstm_op.py b/tests/st/ops/ascend/test_lstm_op.py index 469c4c0d345..6218aa88b77 100644 --- a/tests/st/ops/ascend/test_lstm_op.py +++ b/tests/st/ops/ascend/test_lstm_op.py @@ -131,7 +131,7 @@ def test_sit_lstm_forward_input_3_32_32_is_32_hs_16(): assert np.allclose(hy.asnumpy(), hy_pynative.asnumpy(), 0.002, 0.002) assert np.allclose(cy.asnumpy(), cy_pynative.asnumpy(), 0.002, 0.002) -@pytest.mark.level0 +@pytest.mark.level1 @pytest.mark.platform_arm_ascend_training @pytest.mark.platform_x86_ascend_training @pytest.mark.env_onecard