-
Notifications
You must be signed in to change notification settings - Fork 745
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
[SYCL][Joint Matrix] Relax matrix_combinations error handling #12866
[SYCL][Joint Matrix] Relax matrix_combinations error handling #12866
Conversation
This patch relaxes reporting of unsupported HW for matrix_combinations query. Before: exception thrown in case customer uses matrix_combinations query on platform unsupported by ext_oneapi_device_architecture. With this patch: customer gets empty vector from matrix_combinations query on platform unsupported by ext_oneapi_device_architecture.
@intel/sycl-matrix-reviewers: FYI |
@dm-vodopyanov is the idea to make matrix feature independent from ext_oneapi_device_architecture? |
Please note that the extension spec currently doesn't describe the behavior if HW is unsupported by the implementation which can be considered a gap in there. My reading of the extension spec is that since it returns a If we think that exception for unknown HW is useful, then we should probably document it explicitly in the extension spec. |
Yeah, that's correct. |
Probably there is also an option to make the exception message friendlier if we want to keep throwing the exception |
As an optional kernel feature, the extension spec does mention explicitly throwing an exception when combination is not supported: See in https://github.com/intel/llvm/blob/sycl/sycl/doc/extensions/experimental/sycl_ext_matrix/sycl_ext_oneapi_matrix.asciidoc#backend-support-status I like the fact that we make matrix independent from ext_oneapi_device_architecture, but matrix implementation relies today on ext_oneapi_device_architecture to generate such exception, right? |
The exception we see comes from
The matrix combinations runtime query is dependent on |
What happens when the query is invoked on a known HW to |
Yes. we generate an empty vector in that case |
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.
LGTM
Co-authored-by: Sergey Semenov <sergey.semenov@intel.com>
This patch relaxes reporting of unsupported HW for matrix_combinations
query.
Before: exception thrown in case customer uses matrix_combinations
query on platform unsupported by ext_oneapi_device_architecture.
With this patch: customer gets empty vector from matrix_combinations
query on platform unsupported by ext_oneapi_device_architecture.