-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NPU] Add pfn build log to pfn-related function #26772
[NPU] Add pfn build log to pfn-related function #26772
Conversation
24779ef
to
a4e8679
Compare
db7943b
to
f5b7f8f
Compare
d43a22c
to
6db5c1c
Compare
9673977
to
6db5c1c
Compare
} | ||
} | ||
|
||
static inline void throwOnFail(const std::string& step, const ze_result_t result, const std::string& hintOnError) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this still needed? Can we keep the same design for all 3 functions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, This function is not actually used. It is not known whether it will be used in the future, so the original version is retained. I can change it to a macro definition if we need to.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think maybe we can remove the function because it is not actually used.
df5b297
to
2633758
Compare
…ve exception handle fuction that would never be called
2633758
to
ad0b9c5
Compare
ad0b9c5
to
c6089e7
Compare
5e5c987
There are many OPENVINO_THROW, OPENVINO_ASSERT inside https://github.com/openvinotoolkit/openvino/blob/master/src/plugins/intel_npu/src/compiler/src/zero_compiler_in_driver.cpp, call getLatestBuildError to show error info when pfn-related function is called and remove exception handle fuction that would never be called. Use a macro THROW_ON_FAIL_FOR_LEVELZERO_EXT to simplify exception handling code. There are two functions zeroUtils::throwOnFail() in zero_utils.hpp, but only the two-parameters function zeroUtils::throwOnFail() is actually used. And zeroUtils::throwOnFail() will use its code location instead of the real location where issue happen, so use a macro THROW_ON_FAIL_FOR_LEVELZERO instead of the function zeroUtils::throwOnFail() with two parameters. Function zeroUtils::throwOnFail() with three parameters is preserved. - [EISW-139871](https://jira.devtools.intel.com/browse/EISW-139871)
### Details: There are many OPENVINO_THROW, OPENVINO_ASSERT inside https://github.com/openvinotoolkit/openvino/blob/master/src/plugins/intel_npu/src/compiler/src/zero_compiler_in_driver.cpp, call getLatestBuildError to show error info when pfn-related function is called and remove exception handle fuction that would never be called. Use a macro THROW_ON_FAIL_FOR_LEVELZERO_EXT to simplify exception handling code. There are two functions zeroUtils::throwOnFail() in zero_utils.hpp, but only the two-parameters function zeroUtils::throwOnFail() is actually used. And zeroUtils::throwOnFail() will use its code location instead of the real location where issue happen, so use a macro THROW_ON_FAIL_FOR_LEVELZERO instead of the function zeroUtils::throwOnFail() with two parameters. Function zeroUtils::throwOnFail() with three parameters is preserved. ### Tickets: - [EISW-139871](https://jira.devtools.intel.com/browse/EISW-139871)
Details:
There are many OPENVINO_THROW, OPENVINO_ASSERT inside https://github.com/openvinotoolkit/openvino/blob/master/src/plugins/intel_npu/src/compiler/src/zero_compiler_in_driver.cpp, call getLatestBuildError to show error info when pfn-related function is called and remove exception handle fuction that would never be called. Use a macro THROW_ON_FAIL_FOR_LEVELZERO_EXT to simplify exception handling code.
There are two functions zeroUtils::throwOnFail() in zero_utils.hpp, but only the two-parameters function zeroUtils::throwOnFail() is actually used. And zeroUtils::throwOnFail() will use its code location instead of the real location where issue happen, so use a macro THROW_ON_FAIL_FOR_LEVELZERO instead of the function zeroUtils::throwOnFail() with two parameters.
Function zeroUtils::throwOnFail() with three parameters is preserved.
Tickets: