已合并
fix(geir-test): 修复 geir 测试日志级别与描述不一致(INFO→ERROR) #9003
sun-yibo1创建于 21 天前
fix(geir-test): 修复 geir 测试日志级别与描述不一致(INFO→ERROR) #9003
已合并
共 14 个文件变更+63-65
| @@ -200,7 +200,7 @@ int main(int argc, char* argv[]) | |||
| 200 | std::map<AscendString, AscendString> global_options = {{"ge.exec.deviceId", "0"}, {"ge.graphRunMode", "1"}}; | 200 | std::map<AscendString, AscendString> global_options = {{"ge.exec.deviceId", "0"}, {"ge.graphRunMode", "1"}}; |
| 201 | Status ret = ge::GEInitialize(global_options); | 201 | Status ret = ge::GEInitialize(global_options); |
| 202 | if (ret != SUCCESS) { | 202 | if (ret != SUCCESS) { |
| 203 | - printf("%s - INFO - [XIR]: Initialize ge using ge global options failed\n", GetTime().c_str()); | 203 | + printf("%s - ERROR - [XIR]: Initialize ge using ge global options failed\n", GetTime().c_str()); |
| 204 | return FAILED; | 204 | return FAILED; |
| 205 | } | 205 | } |
| 206 | printf("%s - INFO - [XIR]: Initialize ge using ge global options success\n", GetTime().c_str()); | 206 | printf("%s - INFO - [XIR]: Initialize ge using ge global options success\n", GetTime().c_str()); |
| @@ -251,7 +251,7 @@ int main(int argc, char* argv[]) | |||
| 251 | std::vector<ge::Tensor> output; | 251 | std::vector<ge::Tensor> output; |
| 252 | ret = session->RunGraph(graph_id, input, output); | 252 | ret = session->RunGraph(graph_id, input, output); |
| 253 | if (ret != SUCCESS) { | 253 | if (ret != SUCCESS) { |
| 254 | - printf("%s - INFO - [XIR]: Run graph failed\n", GetTime().c_str()); | 254 | + printf("%s - ERROR - [XIR]: Run graph failed\n", GetTime().c_str()); |
| 255 | delete session; | 255 | delete session; |
| 256 | GEFinalize(); | 256 | GEFinalize(); |
| 257 | return FAILED; | 257 | return FAILED; |
| @@ -293,9 +293,9 @@ int main(int argc, char* argv[]) | |||
| 293 | printf("%s - INFO - [XIR]: Start to finalize ir graph session\n", GetTime().c_str()); | 293 | printf("%s - INFO - [XIR]: Start to finalize ir graph session\n", GetTime().c_str()); |
| 294 | ret = ge::GEFinalize(); | 294 | ret = ge::GEFinalize(); |
| 295 | if (ret != SUCCESS) { | 295 | if (ret != SUCCESS) { |
| 296 | - printf("%s - INFO - [XIR]: Finalize ir graph session failed\n", GetTime().c_str()); | 296 | + printf("%s - ERROR - [XIR]: Finalize ir graph session failed\n", GetTime().c_str()); |
| 297 | return FAILED; | 297 | return FAILED; |
| 298 | } | 298 | } |
| 299 | printf("%s - INFO - [XIR]: Finalize ir graph session success\n", GetTime().c_str()); | 299 | printf("%s - INFO - [XIR]: Finalize ir graph session success\n", GetTime().c_str()); |
| 300 | return SUCCESS; | 300 | return SUCCESS; |
| 301 | -} | 301 | +} |
| @@ -169,7 +169,7 @@ int main(int argc, char* argv[]) | |||
| 169 | std::map<AscendString, AscendString> global_options = {{"ge.exec.deviceId", "0"}, {"ge.graphRunMode", "1"}}; | 169 | std::map<AscendString, AscendString> global_options = {{"ge.exec.deviceId", "0"}, {"ge.graphRunMode", "1"}}; |
| 170 | Status ret = ge::GEInitialize(global_options); | 170 | Status ret = ge::GEInitialize(global_options); |
| 171 | if (ret != SUCCESS) { | 171 | if (ret != SUCCESS) { |
| 172 | - printf("%s - INFO - [XIR]: Initialize ge using ge global options failed.ret = %d\n", GetTime().c_str(), ret); | 172 | + printf("%s - ERROR - [XIR]: Initialize ge using ge global options failed.ret = %d\n", GetTime().c_str(), ret); |
| 173 | return FAILED; | 173 | return FAILED; |
| 174 | } | 174 | } |
| 175 | printf("%s - INFO - [XIR]: Initialize ge using ge global options success\n", GetTime().c_str()); | 175 | printf("%s - INFO - [XIR]: Initialize ge using ge global options success\n", GetTime().c_str()); |
| @@ -224,7 +224,7 @@ int main(int argc, char* argv[]) | |||
| 224 | std::vector<ge::Tensor> output; | 224 | std::vector<ge::Tensor> output; |
| 225 | ret = session->RunGraph(graph_id, input, output); | 225 | ret = session->RunGraph(graph_id, input, output); |
| 226 | if (ret != SUCCESS) { | 226 | if (ret != SUCCESS) { |
| 227 | - printf("%s - INFO - [XIR]: Run graph failed\n", GetTime().c_str()); | 227 | + printf("%s - ERROR - [XIR]: Run graph failed\n", GetTime().c_str()); |
| 228 | delete session; | 228 | delete session; |
| 229 | GEFinalize(); | 229 | GEFinalize(); |
| 230 | return FAILED; | 230 | return FAILED; |
| @@ -277,7 +277,7 @@ int main(int argc, char* argv[]) | |||
| 277 | printf("%s - INFO - [XIR]: Start to finalize ir graph session\n", GetTime().c_str()); | 277 | printf("%s - INFO - [XIR]: Start to finalize ir graph session\n", GetTime().c_str()); |
| 278 | ret = ge::GEFinalize(); | 278 | ret = ge::GEFinalize(); |
| 279 | if (ret != SUCCESS) { | 279 | if (ret != SUCCESS) { |
| 280 | - printf("%s - INFO - [XIR]: Finalize ir graph session failed\n", GetTime().c_str()); | 280 | + printf("%s - ERROR - [XIR]: Finalize ir graph session failed\n", GetTime().c_str()); |
| 281 | return FAILED; | 281 | return FAILED; |
| 282 | } | 282 | } |
| 283 | printf("%s - INFO - [XIR]: Finalize ir graph session success\n", GetTime().c_str()); | 283 | printf("%s - INFO - [XIR]: Finalize ir graph session success\n", GetTime().c_str()); |
| @@ -209,7 +209,7 @@ int main(int argc, char* argv[]) | |||
| 209 | std::map<AscendString, AscendString> global_options = {{"ge.exec.deviceId", "0"}, {"ge.graphRunMode", "1"}}; | 209 | std::map<AscendString, AscendString> global_options = {{"ge.exec.deviceId", "0"}, {"ge.graphRunMode", "1"}}; |
| 210 | Status ret = ge::GEInitialize(global_options); | 210 | Status ret = ge::GEInitialize(global_options); |
| 211 | if (ret != SUCCESS) { | 211 | if (ret != SUCCESS) { |
| 212 | - printf("%s - INFO - [XIR]: Initialize ge using ge global options failed\n", GetTime().c_str()); | 212 | + printf("%s - ERROR - [XIR]: Initialize ge using ge global options failed\n", GetTime().c_str()); |
| 213 | return FAILED; | 213 | return FAILED; |
| 214 | } | 214 | } |
| 215 | printf("%s - INFO - [XIR]: Initialize ge using ge global options success\n", GetTime().c_str()); | 215 | printf("%s - INFO - [XIR]: Initialize ge using ge global options success\n", GetTime().c_str()); |
| @@ -260,7 +260,7 @@ int main(int argc, char* argv[]) | |||
| 260 | std::vector<ge::Tensor> output; | 260 | std::vector<ge::Tensor> output; |
| 261 | ret = session->RunGraph(graph_id, input, output); | 261 | ret = session->RunGraph(graph_id, input, output); |
| 262 | if (ret != SUCCESS) { | 262 | if (ret != SUCCESS) { |
| 263 | - printf("%s - INFO - [XIR]: Run graph failed\n", GetTime().c_str()); | 263 | + printf("%s - ERROR - [XIR]: Run graph failed\n", GetTime().c_str()); |
| 264 | delete session; | 264 | delete session; |
| 265 | GEFinalize(); | 265 | GEFinalize(); |
| 266 | return FAILED; | 266 | return FAILED; |
| @@ -278,9 +278,9 @@ int main(int argc, char* argv[]) | |||
| 278 | printf("%s - INFO - [XIR]: Start to finalize ir graph session\n", GetTime().c_str()); | 278 | printf("%s - INFO - [XIR]: Start to finalize ir graph session\n", GetTime().c_str()); |
| 279 | ret = ge::GEFinalize(); | 279 | ret = ge::GEFinalize(); |
| 280 | if (ret != SUCCESS) { | 280 | if (ret != SUCCESS) { |
| 281 | - printf("%s - INFO - [XIR]: Finalize ir graph session failed\n", GetTime().c_str()); | 281 | + printf("%s - ERROR - [XIR]: Finalize ir graph session failed\n", GetTime().c_str()); |
| 282 | return FAILED; | 282 | return FAILED; |
| 283 | } | 283 | } |
| 284 | printf("%s - INFO - [XIR]: Finalize ir graph session success\n", GetTime().c_str()); | 284 | printf("%s - INFO - [XIR]: Finalize ir graph session success\n", GetTime().c_str()); |
| 285 | return SUCCESS; | 285 | return SUCCESS; |
| 286 | -} | 286 | +} |
| @@ -1,12 +1,11 @@ | |||
| 1 | /** | 1 | /** |
| 2 | - * This program is free software, you can redistribute it and/or modify. | 2 | + * Copyright (c) 2026 Huawei Technologies Co., Ltd. |
| 3 | - * Copyright (c) 2025 Huawei Technologies Co., Ltd. | 3 | + * This program is free software, you can redistribute it and/or modify it under the terms and conditions of |
| 4 | - * This file is a part of the CANN Open Software. | 4 | + * CANN Open Software License Agreement Version 2.0 (the "License"). |
| 5 | - * Licensed under CANN Open Software License Agreement Version 2.0 (the "License"). | ||
| 6 | * Please refer to the License for details. You may not use this file except in compliance with the License. | 5 | * Please refer to the License for details. You may not use this file except in compliance with the License. |
| 7 | - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING | 6 | + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, |
| 8 | - * BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. See LICENSE in the root of | 7 | + * INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. |
| 9 | - * the software repository for the full text of the License. | 8 | + * See LICENSE in the root of the software repository for the full text of the License. |
| 10 | */ | 9 | */ |
| 11 | 10 | ||
| 12 | /*! | 11 | /*! |
| @@ -210,7 +209,7 @@ int main(int argc, char* argv[]) | |||
| 210 | std::map<AscendString, AscendString> global_options = {{"ge.exec.deviceId", "0"}, {"ge.graphRunMode", "1"}}; | 209 | std::map<AscendString, AscendString> global_options = {{"ge.exec.deviceId", "0"}, {"ge.graphRunMode", "1"}}; |
| 211 | Status ret = ge::GEInitialize(global_options); | 210 | Status ret = ge::GEInitialize(global_options); |
| 212 | if (ret != SUCCESS) { | 211 | if (ret != SUCCESS) { |
| 213 | - printf("%s - INFO - [XIR]: Initialize ge using ge global options failed\n", GetTime().c_str()); | 212 | + printf("%s - ERROR - [XIR]: Initialize ge using ge global options failed\n", GetTime().c_str()); |
| 214 | return FAILED; | 213 | return FAILED; |
| 215 | } | 214 | } |
| 216 | printf("%s - INFO - [XIR]: Initialize ge using ge global options success\n", GetTime().c_str()); | 215 | printf("%s - INFO - [XIR]: Initialize ge using ge global options success\n", GetTime().c_str()); |
| @@ -262,7 +261,7 @@ int main(int argc, char* argv[]) | |||
| 262 | std::vector<ge::Tensor> output; | 261 | std::vector<ge::Tensor> output; |
| 263 | ret = session->RunGraph(graph_id, input, output); | 262 | ret = session->RunGraph(graph_id, input, output); |
| 264 | if (ret != SUCCESS) { | 263 | if (ret != SUCCESS) { |
| 265 | - printf("%s - INFO - [XIR]: Run graph failed\n", GetTime().c_str()); | 264 | + printf("%s - ERROR - [XIR]: Run graph failed\n", GetTime().c_str()); |
| 266 | delete session; | 265 | delete session; |
| 267 | GEFinalize(); | 266 | GEFinalize(); |
| 268 | return FAILED; | 267 | return FAILED; |
| @@ -304,7 +303,7 @@ int main(int argc, char* argv[]) | |||
| 304 | printf("%s - INFO - [XIR]: Start to finalize ir graph session\n", GetTime().c_str()); | 303 | printf("%s - INFO - [XIR]: Start to finalize ir graph session\n", GetTime().c_str()); |
| 305 | ret = ge::GEFinalize(); | 304 | ret = ge::GEFinalize(); |
| 306 | if (ret != SUCCESS) { | 305 | if (ret != SUCCESS) { |
| 307 | - printf("%s - INFO - [XIR]: Finalize ir graph session failed\n", GetTime().c_str()); | 306 | + printf("%s - ERROR - [XIR]: Finalize ir graph session failed\n", GetTime().c_str()); |
| 308 | return FAILED; | 307 | return FAILED; |
| 309 | } | 308 | } |
| 310 | printf("%s - INFO - [XIR]: Finalize ir graph session success\n", GetTime().c_str()); | 309 | printf("%s - INFO - [XIR]: Finalize ir graph session success\n", GetTime().c_str()); |
| @@ -211,7 +211,7 @@ int main(int argc, char* argv[]) | |||
| 211 | std::map<AscendString, AscendString> global_options = {{"ge.exec.deviceId", "0"}, {"ge.graphRunMode", "1"}}; | 211 | std::map<AscendString, AscendString> global_options = {{"ge.exec.deviceId", "0"}, {"ge.graphRunMode", "1"}}; |
| 212 | Status ret = ge::GEInitialize(global_options); | 212 | Status ret = ge::GEInitialize(global_options); |
| 213 | if (ret != SUCCESS) { | 213 | if (ret != SUCCESS) { |
| 214 | - printf("%s - INFO - [XIR]: Initialize ge using ge global options failed\n", GetTime().c_str()); | 214 | + printf("%s - ERROR - [XIR]: Initialize ge using ge global options failed\n", GetTime().c_str()); |
| 215 | return FAILED; | 215 | return FAILED; |
| 216 | } | 216 | } |
| 217 | printf("%s - INFO - [XIR]: Initialize ge using ge global options success\n", GetTime().c_str()); | 217 | printf("%s - INFO - [XIR]: Initialize ge using ge global options success\n", GetTime().c_str()); |
| @@ -263,7 +263,7 @@ int main(int argc, char* argv[]) | |||
| 263 | std::vector<ge::Tensor> output; | 263 | std::vector<ge::Tensor> output; |
| 264 | ret = session->RunGraph(graph_id, input, output); | 264 | ret = session->RunGraph(graph_id, input, output); |
| 265 | if (ret != SUCCESS) { | 265 | if (ret != SUCCESS) { |
| 266 | - printf("%s - INFO - [XIR]: Run graph failed\n", GetTime().c_str()); | 266 | + printf("%s - ERROR - [XIR]: Run graph failed\n", GetTime().c_str()); |
| 267 | delete session; | 267 | delete session; |
| 268 | GEFinalize(); | 268 | GEFinalize(); |
| 269 | return FAILED; | 269 | return FAILED; |
| @@ -305,7 +305,7 @@ int main(int argc, char* argv[]) | |||
| 305 | printf("%s - INFO - [XIR]: Start to finalize ir graph session\n", GetTime().c_str()); | 305 | printf("%s - INFO - [XIR]: Start to finalize ir graph session\n", GetTime().c_str()); |
| 306 | ret = ge::GEFinalize(); | 306 | ret = ge::GEFinalize(); |
| 307 | if (ret != SUCCESS) { | 307 | if (ret != SUCCESS) { |
| 308 | - printf("%s - INFO - [XIR]: Finalize ir graph session failed\n", GetTime().c_str()); | 308 | + printf("%s - ERROR - [XIR]: Finalize ir graph session failed\n", GetTime().c_str()); |
| 309 | return FAILED; | 309 | return FAILED; |
| 310 | } | 310 | } |
| 311 | printf("%s - INFO - [XIR]: Finalize ir graph session success\n", GetTime().c_str()); | 311 | printf("%s - INFO - [XIR]: Finalize ir graph session success\n", GetTime().c_str()); |
| @@ -215,7 +215,7 @@ int main(int argc, char* argv[]) | |||
| 215 | std::map<AscendString, AscendString> global_options = {{"ge.exec.deviceId", "0"}, {"ge.graphRunMode", "1"}}; | 215 | std::map<AscendString, AscendString> global_options = {{"ge.exec.deviceId", "0"}, {"ge.graphRunMode", "1"}}; |
| 216 | Status ret = ge::GEInitialize(global_options); | 216 | Status ret = ge::GEInitialize(global_options); |
| 217 | if (ret != SUCCESS) { | 217 | if (ret != SUCCESS) { |
| 218 | - printf("%s - INFO - [XIR]: Initialize ge using ge global options failed\n", GetTime().c_str()); | 218 | + printf("%s - ERROR - [XIR]: Initialize ge using ge global options failed\n", GetTime().c_str()); |
| 219 | return FAILED; | 219 | return FAILED; |
| 220 | } | 220 | } |
| 221 | printf("%s - INFO - [XIR]: Initialize ge using ge global options success\n", GetTime().c_str()); | 221 | printf("%s - INFO - [XIR]: Initialize ge using ge global options success\n", GetTime().c_str()); |
| @@ -267,7 +267,7 @@ int main(int argc, char* argv[]) | |||
| 267 | std::vector<ge::Tensor> output; | 267 | std::vector<ge::Tensor> output; |
| 268 | ret = session->RunGraph(graph_id, input, output); | 268 | ret = session->RunGraph(graph_id, input, output); |
| 269 | if (ret != SUCCESS) { | 269 | if (ret != SUCCESS) { |
| 270 | - printf("%s - INFO - [XIR]: Run graph failed\n", GetTime().c_str()); | 270 | + printf("%s - ERROR - [XIR]: Run graph failed\n", GetTime().c_str()); |
| 271 | delete session; | 271 | delete session; |
| 272 | GEFinalize(); | 272 | GEFinalize(); |
| 273 | return FAILED; | 273 | return FAILED; |
| @@ -310,7 +310,7 @@ int main(int argc, char* argv[]) | |||
| 310 | delete session; | 310 | delete session; |
| 311 | ret = ge::GEFinalize(); | 311 | ret = ge::GEFinalize(); |
| 312 | if (ret != SUCCESS) { | 312 | if (ret != SUCCESS) { |
| 313 | - printf("%s - INFO - [XIR]: Finalize ir graph session failed\n", GetTime().c_str()); | 313 | + printf("%s - ERROR - [XIR]: Finalize ir graph session failed\n", GetTime().c_str()); |
| 314 | return FAILED; | 314 | return FAILED; |
| 315 | } | 315 | } |
| 316 | printf("%s - INFO - [XIR]: Finalize ir graph session success\n", GetTime().c_str()); | 316 | printf("%s - INFO - [XIR]: Finalize ir graph session success\n", GetTime().c_str()); |
| @@ -1,12 +1,11 @@ | |||
| 1 | /** | 1 | /** |
| 2 | - * This program is free software, you can redistribute it and/or modify. | 2 | + * Copyright (c) 2026 Huawei Technologies Co., Ltd. |
| 3 | - * Copyright (c) 2025 Huawei Technologies Co., Ltd. | 3 | + * This program is free software, you can redistribute it and/or modify it under the terms and conditions of |
| 4 | - * This file is a part of the CANN Open Software. | 4 | + * CANN Open Software License Agreement Version 2.0 (the "License"). |
| 5 | - * Licensed under CANN Open Software License Agreement Version 2.0 (the "License"). | ||
| 6 | * Please refer to the License for details. You may not use this file except in compliance with the License. | 5 | * Please refer to the License for details. You may not use this file except in compliance with the License. |
| 7 | - * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING | 6 | + * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, |
| 8 | - * BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. See LICENSE in the root of | 7 | + * INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. |
| 9 | - * the software repository for the full text of the License. | 8 | + * See LICENSE in the root of the software repository for the full text of the License. |
| 10 | */ | 9 | */ |
| 11 | 10 | ||
| 12 | /*! | 11 | /*! |
| @@ -210,7 +209,7 @@ int main(int argc, char* argv[]) | |||
| 210 | std::map<AscendString, AscendString> global_options = {{"ge.exec.deviceId", "0"}, {"ge.graphRunMode", "1"}}; | 209 | std::map<AscendString, AscendString> global_options = {{"ge.exec.deviceId", "0"}, {"ge.graphRunMode", "1"}}; |
| 211 | Status ret = ge::GEInitialize(global_options); | 210 | Status ret = ge::GEInitialize(global_options); |
| 212 | if (ret != SUCCESS) { | 211 | if (ret != SUCCESS) { |
| 213 | - printf("%s - INFO - [XIR]: Initialize ge using ge global options failed\n", GetTime().c_str()); | 212 | + printf("%s - ERROR - [XIR]: Initialize ge using ge global options failed\n", GetTime().c_str()); |
| 214 | return FAILED; | 213 | return FAILED; |
| 215 | } | 214 | } |
| 216 | printf("%s - INFO - [XIR]: Initialize ge using ge global options success\n", GetTime().c_str()); | 215 | printf("%s - INFO - [XIR]: Initialize ge using ge global options success\n", GetTime().c_str()); |
| @@ -262,7 +261,7 @@ int main(int argc, char* argv[]) | |||
| 262 | std::vector<ge::Tensor> output; | 261 | std::vector<ge::Tensor> output; |
| 263 | ret = session->RunGraph(graph_id, input, output); | 262 | ret = session->RunGraph(graph_id, input, output); |
| 264 | if (ret != SUCCESS) { | 263 | if (ret != SUCCESS) { |
| 265 | - printf("%s - INFO - [XIR]: Run graph failed\n", GetTime().c_str()); | 264 | + printf("%s - ERROR - [XIR]: Run graph failed\n", GetTime().c_str()); |
| 266 | delete session; | 265 | delete session; |
| 267 | GEFinalize(); | 266 | GEFinalize(); |
| 268 | return FAILED; | 267 | return FAILED; |
| @@ -304,7 +303,7 @@ int main(int argc, char* argv[]) | |||
| 304 | printf("%s - INFO - [XIR]: Start to finalize ir graph session\n", GetTime().c_str()); | 303 | printf("%s - INFO - [XIR]: Start to finalize ir graph session\n", GetTime().c_str()); |
| 305 | ret = ge::GEFinalize(); | 304 | ret = ge::GEFinalize(); |
| 306 | if (ret != SUCCESS) { | 305 | if (ret != SUCCESS) { |
| 307 | - printf("%s - INFO - [XIR]: Finalize ir graph session failed\n", GetTime().c_str()); | 306 | + printf("%s - ERROR - [XIR]: Finalize ir graph session failed\n", GetTime().c_str()); |
| 308 | return FAILED; | 307 | return FAILED; |
| 309 | } | 308 | } |
| 310 | printf("%s - INFO - [XIR]: Finalize ir graph session success\n", GetTime().c_str()); | 309 | printf("%s - INFO - [XIR]: Finalize ir graph session success\n", GetTime().c_str()); |
| @@ -218,7 +218,7 @@ int main(int argc, char* argv[]) | |||
| 218 | std::map<AscendString, AscendString> global_options = {{"ge.exec.deviceId", "0"}, {"ge.graphRunMode", "1"}}; | 218 | std::map<AscendString, AscendString> global_options = {{"ge.exec.deviceId", "0"}, {"ge.graphRunMode", "1"}}; |
| 219 | Status ret = ge::GEInitialize(global_options); | 219 | Status ret = ge::GEInitialize(global_options); |
| 220 | if (ret != SUCCESS) { | 220 | if (ret != SUCCESS) { |
| 221 | - printf("%s - INFO - [XIR]: Initialize ge using ge global options failed\n", GetTime().c_str()); | 221 | + printf("%s - ERROR - [XIR]: Initialize ge using ge global options failed\n", GetTime().c_str()); |
| 222 | return FAILED; | 222 | return FAILED; |
| 223 | } | 223 | } |
| 224 | printf("%s - INFO - [XIR]: Initialize ge using ge global options success\n", GetTime().c_str()); | 224 | printf("%s - INFO - [XIR]: Initialize ge using ge global options success\n", GetTime().c_str()); |
| @@ -270,7 +270,7 @@ int main(int argc, char* argv[]) | |||
| 270 | std::vector<ge::Tensor> output; | 270 | std::vector<ge::Tensor> output; |
| 271 | ret = session->RunGraph(graph_id, input, output); | 271 | ret = session->RunGraph(graph_id, input, output); |
| 272 | if (ret != SUCCESS) { | 272 | if (ret != SUCCESS) { |
| 273 | - printf("%s - INFO - [XIR]: Run graph failed\n", GetTime().c_str()); | 273 | + printf("%s - ERROR - [XIR]: Run graph failed\n", GetTime().c_str()); |
| 274 | delete session; | 274 | delete session; |
| 275 | GEFinalize(); | 275 | GEFinalize(); |
| 276 | return FAILED; | 276 | return FAILED; |
| @@ -312,9 +312,9 @@ int main(int argc, char* argv[]) | |||
| 312 | printf("%s - INFO - [XIR]: Start to finalize ir graph session\n", GetTime().c_str()); | 312 | printf("%s - INFO - [XIR]: Start to finalize ir graph session\n", GetTime().c_str()); |
| 313 | ret = ge::GEFinalize(); | 313 | ret = ge::GEFinalize(); |
| 314 | if (ret != SUCCESS) { | 314 | if (ret != SUCCESS) { |
| 315 | - printf("%s - INFO - [XIR]: Finalize ir graph session failed\n", GetTime().c_str()); | 315 | + printf("%s - ERROR - [XIR]: Finalize ir graph session failed\n", GetTime().c_str()); |
| 316 | return FAILED; | 316 | return FAILED; |
| 317 | } | 317 | } |
| 318 | printf("%s - INFO - [XIR]: Finalize ir graph session success\n", GetTime().c_str()); | 318 | printf("%s - INFO - [XIR]: Finalize ir graph session success\n", GetTime().c_str()); |
| 319 | return SUCCESS; | 319 | return SUCCESS; |
| 320 | -} | 320 | +} |
| @@ -225,7 +225,7 @@ int main(int argc, char* argv[]) | |||
| 225 | std::map<AscendString, AscendString> global_options = {{"ge.exec.deviceId", "0"}, {"ge.graphRunMode", "1"}}; | 225 | std::map<AscendString, AscendString> global_options = {{"ge.exec.deviceId", "0"}, {"ge.graphRunMode", "1"}}; |
| 226 | Status ret = ge::GEInitialize(global_options); | 226 | Status ret = ge::GEInitialize(global_options); |
| 227 | if (ret != SUCCESS) { | 227 | if (ret != SUCCESS) { |
| 228 | - printf("%s - INFO - [XIR]: Initialize ge using ge global options failed\n", GetTime().c_str()); | 228 | + printf("%s - ERROR - [XIR]: Initialize ge using ge global options failed\n", GetTime().c_str()); |
| 229 | return FAILED; | 229 | return FAILED; |
| 230 | } | 230 | } |
| 231 | printf("%s - INFO - [XIR]: Initialize ge using ge global options success\n", GetTime().c_str()); | 231 | printf("%s - INFO - [XIR]: Initialize ge using ge global options success\n", GetTime().c_str()); |
| @@ -277,7 +277,7 @@ int main(int argc, char* argv[]) | |||
| 277 | std::vector<ge::Tensor> output; | 277 | std::vector<ge::Tensor> output; |
| 278 | ret = session->RunGraph(graph_id, input, output); | 278 | ret = session->RunGraph(graph_id, input, output); |
| 279 | if (ret != SUCCESS) { | 279 | if (ret != SUCCESS) { |
| 280 | - printf("%s - INFO - [XIR]: Run graph failed\n", GetTime().c_str()); | 280 | + printf("%s - ERROR - [XIR]: Run graph failed\n", GetTime().c_str()); |
| 281 | delete session; | 281 | delete session; |
| 282 | GEFinalize(); | 282 | GEFinalize(); |
| 283 | return FAILED; | 283 | return FAILED; |
| @@ -320,9 +320,9 @@ int main(int argc, char* argv[]) | |||
| 320 | delete session; | 320 | delete session; |
| 321 | ret = ge::GEFinalize(); | 321 | ret = ge::GEFinalize(); |
| 322 | if (ret != SUCCESS) { | 322 | if (ret != SUCCESS) { |
| 323 | - printf("%s - INFO - [XIR]: Finalize ir graph session failed\n", GetTime().c_str()); | 323 | + printf("%s - ERROR - [XIR]: Finalize ir graph session failed\n", GetTime().c_str()); |
| 324 | return FAILED; | 324 | return FAILED; |
| 325 | } | 325 | } |
| 326 | printf("%s - INFO - [XIR]: Finalize ir graph session success\n", GetTime().c_str()); | 326 | printf("%s - INFO - [XIR]: Finalize ir graph session success\n", GetTime().c_str()); |
| 327 | return SUCCESS; | 327 | return SUCCESS; |
| 328 | -} | 328 | +} |
| @@ -210,7 +210,7 @@ int main(int argc, char* argv[]) | |||
| 210 | std::map<AscendString, AscendString> global_options = {{"ge.exec.deviceId", "0"}, {"ge.graphRunMode", "1"}}; | 210 | std::map<AscendString, AscendString> global_options = {{"ge.exec.deviceId", "0"}, {"ge.graphRunMode", "1"}}; |
| 211 | Status ret = ge::GEInitialize(global_options); | 211 | Status ret = ge::GEInitialize(global_options); |
| 212 | if (ret != SUCCESS) { | 212 | if (ret != SUCCESS) { |
| 213 | - printf("%s - INFO - [XIR]: Initialize ge using ge global options failed\n", GetTime().c_str()); | 213 | + printf("%s - ERROR - [XIR]: Initialize ge using ge global options failed\n", GetTime().c_str()); |
| 214 | return FAILED; | 214 | return FAILED; |
| 215 | } | 215 | } |
| 216 | printf("%s - INFO - [XIR]: Initialize ge using ge global options success\n", GetTime().c_str()); | 216 | printf("%s - INFO - [XIR]: Initialize ge using ge global options success\n", GetTime().c_str()); |
| @@ -262,7 +262,7 @@ int main(int argc, char* argv[]) | |||
| 262 | std::vector<ge::Tensor> output; | 262 | std::vector<ge::Tensor> output; |
| 263 | ret = session->RunGraph(graph_id, input, output); | 263 | ret = session->RunGraph(graph_id, input, output); |
| 264 | if (ret != SUCCESS) { | 264 | if (ret != SUCCESS) { |
| 265 | - printf("%s - INFO - [XIR]: Run graph failed\n", GetTime().c_str()); | 265 | + printf("%s - ERROR - [XIR]: Run graph failed\n", GetTime().c_str()); |
| 266 | delete session; | 266 | delete session; |
| 267 | GEFinalize(); | 267 | GEFinalize(); |
| 268 | return FAILED; | 268 | return FAILED; |
| @@ -304,9 +304,9 @@ int main(int argc, char* argv[]) | |||
| 304 | printf("%s - INFO - [XIR]: Start to finalize ir graph session\n", GetTime().c_str()); | 304 | printf("%s - INFO - [XIR]: Start to finalize ir graph session\n", GetTime().c_str()); |
| 305 | ret = ge::GEFinalize(); | 305 | ret = ge::GEFinalize(); |
| 306 | if (ret != SUCCESS) { | 306 | if (ret != SUCCESS) { |
| 307 | - printf("%s - INFO - [XIR]: Finalize ir graph session failed\n", GetTime().c_str()); | 307 | + printf("%s - ERROR - [XIR]: Finalize ir graph session failed\n", GetTime().c_str()); |
| 308 | return FAILED; | 308 | return FAILED; |
| 309 | } | 309 | } |
| 310 | printf("%s - INFO - [XIR]: Finalize ir graph session success\n", GetTime().c_str()); | 310 | printf("%s - INFO - [XIR]: Finalize ir graph session success\n", GetTime().c_str()); |
| 311 | return SUCCESS; | 311 | return SUCCESS; |
| 312 | -} | 312 | +} |
| @@ -213,7 +213,7 @@ int main(int argc, char* argv[]) | |||
| 213 | std::map<AscendString, AscendString> global_options = {{"ge.exec.deviceId", "0"}, {"ge.graphRunMode", "1"}}; | 213 | std::map<AscendString, AscendString> global_options = {{"ge.exec.deviceId", "0"}, {"ge.graphRunMode", "1"}}; |
| 214 | Status ret = ge::GEInitialize(global_options); | 214 | Status ret = ge::GEInitialize(global_options); |
| 215 | if (ret != SUCCESS) { | 215 | if (ret != SUCCESS) { |
| 216 | - printf("%s - INFO - [XIR]: Initialize ge using ge global options failed\n", GetTime().c_str()); | 216 | + printf("%s - ERROR - [XIR]: Initialize ge using ge global options failed\n", GetTime().c_str()); |
| 217 | return FAILED; | 217 | return FAILED; |
| 218 | } | 218 | } |
| 219 | printf("%s - INFO - [XIR]: Initialize ge using ge global options success\n", GetTime().c_str()); | 219 | printf("%s - INFO - [XIR]: Initialize ge using ge global options success\n", GetTime().c_str()); |
| @@ -265,7 +265,7 @@ int main(int argc, char* argv[]) | |||
| 265 | std::vector<ge::Tensor> output; | 265 | std::vector<ge::Tensor> output; |
| 266 | ret = session->RunGraph(graph_id, input, output); | 266 | ret = session->RunGraph(graph_id, input, output); |
| 267 | if (ret != SUCCESS) { | 267 | if (ret != SUCCESS) { |
| 268 | - printf("%s - INFO - [XIR]: Run graph failed\n", GetTime().c_str()); | 268 | + printf("%s - ERROR - [XIR]: Run graph failed\n", GetTime().c_str()); |
| 269 | delete session; | 269 | delete session; |
| 270 | GEFinalize(); | 270 | GEFinalize(); |
| 271 | return FAILED; | 271 | return FAILED; |
| @@ -307,9 +307,9 @@ int main(int argc, char* argv[]) | |||
| 307 | printf("%s - INFO - [XIR]: Start to finalize ir graph session\n", GetTime().c_str()); | 307 | printf("%s - INFO - [XIR]: Start to finalize ir graph session\n", GetTime().c_str()); |
| 308 | ret = ge::GEFinalize(); | 308 | ret = ge::GEFinalize(); |
| 309 | if (ret != SUCCESS) { | 309 | if (ret != SUCCESS) { |
| 310 | - printf("%s - INFO - [XIR]: Finalize ir graph session failed\n", GetTime().c_str()); | 310 | + printf("%s - ERROR - [XIR]: Finalize ir graph session failed\n", GetTime().c_str()); |
| 311 | return FAILED; | 311 | return FAILED; |
| 312 | } | 312 | } |
| 313 | printf("%s - INFO - [XIR]: Finalize ir graph session success\n", GetTime().c_str()); | 313 | printf("%s - INFO - [XIR]: Finalize ir graph session success\n", GetTime().c_str()); |
| 314 | return SUCCESS; | 314 | return SUCCESS; |
| 315 | -} | 315 | +} |
| @@ -209,7 +209,7 @@ int main(int argc, char* argv[]) | |||
| 209 | std::map<AscendString, AscendString> global_options = {{"ge.exec.deviceId", "0"}, {"ge.graphRunMode", "1"}}; | 209 | std::map<AscendString, AscendString> global_options = {{"ge.exec.deviceId", "0"}, {"ge.graphRunMode", "1"}}; |
| 210 | Status ret = ge::GEInitialize(global_options); | 210 | Status ret = ge::GEInitialize(global_options); |
| 211 | if (ret != SUCCESS) { | 211 | if (ret != SUCCESS) { |
| 212 | - printf("%s - INFO - [XIR]: Initialize ge using ge global options failed\n", GetTime().c_str()); | 212 | + printf("%s - ERROR - [XIR]: Initialize ge using ge global options failed\n", GetTime().c_str()); |
| 213 | return FAILED; | 213 | return FAILED; |
| 214 | } | 214 | } |
| 215 | printf("%s - INFO - [XIR]: Initialize ge using ge global options success\n", GetTime().c_str()); | 215 | printf("%s - INFO - [XIR]: Initialize ge using ge global options success\n", GetTime().c_str()); |
| @@ -261,7 +261,7 @@ int main(int argc, char* argv[]) | |||
| 261 | std::vector<ge::Tensor> output; | 261 | std::vector<ge::Tensor> output; |
| 262 | ret = session->RunGraph(graph_id, input, output); | 262 | ret = session->RunGraph(graph_id, input, output); |
| 263 | if (ret != SUCCESS) { | 263 | if (ret != SUCCESS) { |
| 264 | - printf("%s - INFO - [XIR]: Run graph failed\n", GetTime().c_str()); | 264 | + printf("%s - ERROR - [XIR]: Run graph failed\n", GetTime().c_str()); |
| 265 | delete session; | 265 | delete session; |
| 266 | GEFinalize(); | 266 | GEFinalize(); |
| 267 | return FAILED; | 267 | return FAILED; |
| @@ -303,9 +303,9 @@ int main(int argc, char* argv[]) | |||
| 303 | printf("%s - INFO - [XIR]: Start to finalize ir graph session\n", GetTime().c_str()); | 303 | printf("%s - INFO - [XIR]: Start to finalize ir graph session\n", GetTime().c_str()); |
| 304 | ret = ge::GEFinalize(); | 304 | ret = ge::GEFinalize(); |
| 305 | if (ret != SUCCESS) { | 305 | if (ret != SUCCESS) { |
| 306 | - printf("%s - INFO - [XIR]: Finalize ir graph session failed\n", GetTime().c_str()); | 306 | + printf("%s - ERROR - [XIR]: Finalize ir graph session failed\n", GetTime().c_str()); |
| 307 | return FAILED; | 307 | return FAILED; |
| 308 | } | 308 | } |
| 309 | printf("%s - INFO - [XIR]: Finalize ir graph session success\n", GetTime().c_str()); | 309 | printf("%s - INFO - [XIR]: Finalize ir graph session success\n", GetTime().c_str()); |
| 310 | return SUCCESS; | 310 | return SUCCESS; |
| 311 | -} | 311 | +} |
| @@ -218,7 +218,7 @@ int main(int argc, char* argv[]) | |||
| 218 | std::map<AscendString, AscendString> global_options = {{"ge.exec.deviceId", "0"}, {"ge.graphRunMode", "1"}}; | 218 | std::map<AscendString, AscendString> global_options = {{"ge.exec.deviceId", "0"}, {"ge.graphRunMode", "1"}}; |
| 219 | Status ret = ge::GEInitialize(global_options); | 219 | Status ret = ge::GEInitialize(global_options); |
| 220 | if (ret != SUCCESS) { | 220 | if (ret != SUCCESS) { |
| 221 | - printf("%s - INFO - [XIR]: Initialize ge using ge global options failed\n", GetTime().c_str()); | 221 | + printf("%s - ERROR - [XIR]: Initialize ge using ge global options failed\n", GetTime().c_str()); |
| 222 | return FAILED; | 222 | return FAILED; |
| 223 | } | 223 | } |
| 224 | printf("%s - INFO - [XIR]: Initialize ge using ge global options success\n", GetTime().c_str()); | 224 | printf("%s - INFO - [XIR]: Initialize ge using ge global options success\n", GetTime().c_str()); |
| @@ -270,7 +270,7 @@ int main(int argc, char* argv[]) | |||
| 270 | std::vector<ge::Tensor> output; | 270 | std::vector<ge::Tensor> output; |
| 271 | ret = session->RunGraph(graph_id, input, output); | 271 | ret = session->RunGraph(graph_id, input, output); |
| 272 | if (ret != SUCCESS) { | 272 | if (ret != SUCCESS) { |
| 273 | - printf("%s - INFO - [XIR]: Run graph failed\n", GetTime().c_str()); | 273 | + printf("%s - ERROR - [XIR]: Run graph failed\n", GetTime().c_str()); |
| 274 | delete session; | 274 | delete session; |
| 275 | GEFinalize(); | 275 | GEFinalize(); |
| 276 | return FAILED; | 276 | return FAILED; |
| @@ -312,9 +312,9 @@ int main(int argc, char* argv[]) | |||
| 312 | printf("%s - INFO - [XIR]: Start to finalize ir graph session\n", GetTime().c_str()); | 312 | printf("%s - INFO - [XIR]: Start to finalize ir graph session\n", GetTime().c_str()); |
| 313 | ret = ge::GEFinalize(); | 313 | ret = ge::GEFinalize(); |
| 314 | if (ret != SUCCESS) { | 314 | if (ret != SUCCESS) { |
| 315 | - printf("%s - INFO - [XIR]: Finalize ir graph session failed\n", GetTime().c_str()); | 315 | + printf("%s - ERROR - [XIR]: Finalize ir graph session failed\n", GetTime().c_str()); |
| 316 | return FAILED; | 316 | return FAILED; |
| 317 | } | 317 | } |
| 318 | printf("%s - INFO - [XIR]: Finalize ir graph session success\n", GetTime().c_str()); | 318 | printf("%s - INFO - [XIR]: Finalize ir graph session success\n", GetTime().c_str()); |
| 319 | return SUCCESS; | 319 | return SUCCESS; |
| 320 | -} | 320 | +} |
| @@ -204,7 +204,7 @@ int main(int argc, char* argv[]) | |||
| 204 | std::map<AscendString, AscendString> global_options = {{"ge.exec.deviceId", "0"}, {"ge.graphRunMode", "1"}}; | 204 | std::map<AscendString, AscendString> global_options = {{"ge.exec.deviceId", "0"}, {"ge.graphRunMode", "1"}}; |
| 205 | Status ret = ge::GEInitialize(global_options); | 205 | Status ret = ge::GEInitialize(global_options); |
| 206 | if (ret != SUCCESS) { | 206 | if (ret != SUCCESS) { |
| 207 | - printf("%s - INFO - [XIR]: Initialize ge using ge global options failed\n", GetTime().c_str()); | 207 | + printf("%s - ERROR - [XIR]: Initialize ge using ge global options failed\n", GetTime().c_str()); |
| 208 | return FAILED; | 208 | return FAILED; |
| 209 | } | 209 | } |
| 210 | printf("%s - INFO - [XIR]: Initialize ge using ge global options success\n", GetTime().c_str()); | 210 | printf("%s - INFO - [XIR]: Initialize ge using ge global options success\n", GetTime().c_str()); |
| @@ -256,7 +256,7 @@ int main(int argc, char* argv[]) | |||
| 256 | std::vector<ge::Tensor> output; | 256 | std::vector<ge::Tensor> output; |
| 257 | ret = session->RunGraph(graph_id, input, output); | 257 | ret = session->RunGraph(graph_id, input, output); |
| 258 | if (ret != SUCCESS) { | 258 | if (ret != SUCCESS) { |
| 259 | - printf("%s - INFO - [XIR]: Run graph failed\n", GetTime().c_str()); | 259 | + printf("%s - ERROR - [XIR]: Run graph failed\n", GetTime().c_str()); |
| 260 | delete session; | 260 | delete session; |
| 261 | GEFinalize(); | 261 | GEFinalize(); |
| 262 | return FAILED; | 262 | return FAILED; |
| @@ -298,9 +298,9 @@ int main(int argc, char* argv[]) | |||
| 298 | printf("%s - INFO - [XIR]: Start to finalize ir graph session\n", GetTime().c_str()); | 298 | printf("%s - INFO - [XIR]: Start to finalize ir graph session\n", GetTime().c_str()); |
| 299 | ret = ge::GEFinalize(); | 299 | ret = ge::GEFinalize(); |
| 300 | if (ret != SUCCESS) { | 300 | if (ret != SUCCESS) { |
| 301 | - printf("%s - INFO - [XIR]: Finalize ir graph session failed\n", GetTime().c_str()); | 301 | + printf("%s - ERROR - [XIR]: Finalize ir graph session failed\n", GetTime().c_str()); |
| 302 | return FAILED; | 302 | return FAILED; |
| 303 | } | 303 | } |
| 304 | printf("%s - INFO - [XIR]: Finalize ir graph session success\n", GetTime().c_str()); | 304 | printf("%s - INFO - [XIR]: Finalize ir graph session success\n", GetTime().c_str()); |
| 305 | return SUCCESS; | 305 | return SUCCESS; |
| 306 | -} | 306 | +} |