Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
tests/mc2_mock_test_frame/README.md
ASCEND_HOME=~/Ascend/ascend-toolkit/latest g++ -std=c++17 -O2 -I${ASCEND_HOME}/include \ mock_framework_test.cpp \ -L${ASCEND_HOME}/lib64 -lascendcl -lpthread \ -Wl,-rpath,${ASCEND_HOME}/lib64 \ -o /tmp/mock_framework_test
developer@c50e27519c3d4cf58c99f439cc562976:~/ops-transformer$ cd tests/mc2_mock_test_frame/ developer@c50e27519c3d4cf58c99f439cc562976:~/ops-transformer/tests/mc2_mock_test_frame$ ASCEND_HOME=~/Ascend/ascend-toolkit/latest g++ -std=c++17 -O2 -I${ASCEND_HOME}/include \ mock_framework_test.cpp \ -L${ASCEND_HOME}/lib64 -lascendcl -lpthread \ -Wl,-rpath,${ASCEND_HOME}/lib64 \ -o /tmp/mock_framework_test mock_framework_test.cpp: In function ‘bool TestServerProtocol()’: mock_framework_test.cpp:175:36: error: no matching function for call to ‘mock_hccl::MockHcclServer::MockHcclServer(void*&)’ 175 | MockHcclServer server(wsAligned); | ^ In file included from mock_framework_test.cpp:39: mock_framework.h:578:5: note: candidate: ‘mock_hccl::MockHcclServer::MockHcclServer(void*, std::vector<mock_hccl::RankData>, uint32_t, int)’ 578 | MockHcclServer(void *workspaceAligned, std::vector<RankData> rankInputs, uint32_t localRankId = 0, int deviceId = 0) | ^~~~~~~~~~~~~~ mock_framework.h:578:5: note: candidate expects 4 arguments, 1 provided mock_framework_test.cpp: In function ‘bool TestServerDataCopy()’: mock_framework_test.cpp:248:36: error: no matching function for call to ‘mock_hccl::MockHcclServer::MockHcclServer(void*&)’ 248 | MockHcclServer server(wsAligned); | ^ mock_framework.h:578:5: note: candidate: ‘mock_hccl::MockHcclServer::MockHcclServer(void*, std::vector<mock_hccl::RankData>, uint32_t, int)’ 578 | MockHcclServer(void *workspaceAligned, std::vector<RankData> rankInputs, uint32_t localRankId = 0, int deviceId = 0) | ^~~~~~~~~~~~~~ mock_framework.h:578:5: note: candidate expects 4 arguments, 1 provided mock_framework_test.cpp: In function ‘bool TestFinalizeProtocol()’: mock_framework_test.cpp:280:36: error: no matching function for call to ‘mock_hccl::MockHcclServer::MockHcclServer(void*&)’ 280 | MockHcclServer server(wsAligned); | ^ mock_framework.h:578:5: note: candidate: ‘mock_hccl::MockHcclServer::MockHcclServer(void*, std::vector<mock_hccl::RankData>, uint32_t, int)’ 578 | MockHcclServer(void *workspaceAligned, std::vector<RankData> rankInputs, uint32_t localRankId = 0, int deviceId = 0) | ^~~~~~~~~~~~~~ mock_framework.h:578:5: note: candidate expects 4 arguments, 1 provided
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the current behavior / 问题描述 (Mandatory / 必填)
tests/mc2_mock_test_frame/README.md中明确的编译命令进行编译会编译失败Environment / 环境信息 (Mandatory / 必填)
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
Describe the expected behavior / 预期结果 (Mandatory / 必填)
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
Special notes for this issue/备注 (Optional / 选填)