-
Notifications
You must be signed in to change notification settings - Fork 778
[SYCL] Allow __spirv_ocl_printf vararg function #909
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] Allow __spirv_ocl_printf vararg function #909
Conversation
Vararg functions are generally not allowed in SYCL. However, printf is a special case, because it can be mapped to a SPIR-V instruction, and SPIR-V translator recognizes __spirv_ocl_printf function. Signed-off-by: Andrew Savonichev <andrew.savonichev@intel.com>
Signed-off-by: Andrew Savonichev <andrew.savonichev@intel.com>
Signed-off-by: Andrew Savonichev <andrew.savonichev@intel.com>
Signed-off-by: Andrew Savonichev <andrew.savonichev@intel.com>
I don't seem to have the ability to review this patch anymore (no review button at the top), but LGTM. |
@tfzhu, any ideas what could be the reason for that? |
Nothing has changed besides the day :) The 'review' button just isn't on the interface today. |
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.
works now I guess...
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 don't have objections.
… (#92302) …05)" This reverts commit 61da636. Update #90905 was causing many tests to fail. See comments in #90905.
Vararg functions are generally not allowed in SYCL. However, printf is
a special case, because it can be mapped to a SPIR-V instruction, and
SPIR-V translator recognizes __spirv_ocl_printf function.
Signed-off-by: Andrew Savonichev andrew.savonichev@intel.com