Skip to content
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] Flip default printf implementation #13055

Merged
merged 2 commits into from
Mar 20, 2024

Conversation

steffenlarsen
Copy link
Contributor

Currently, the implementation of printf uses a variadic implementation by default. This proved to be problematic as the implementation would promote float arguments to doubles, implicitly requring fp64. As a result of this, an alternative implementation was introduced, but was made enableable using a SYCL_USE_NON_VARIADIC_SPIRV_OCL_PRINTF directive to avoid problems with targets that did not support it. We expect most relevant backends to support it now, so we flip the default.

Currently, the implementation of printf uses a variadic implementation
by default. This proved to be problematic as the implementation would
promote float arguments to doubles, implicitly requring fp64. As a
result of this, an alternative implementation was introduced, but was
made enableable using a __SYCL_USE_NON_VARIADIC_SPIRV_OCL_PRINTF__
directive to avoid problems with targets that did not support it. We
expect most relevant backends to support it now, so we flip the default.

Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Copy link
Contributor

@sarnex sarnex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ESIMD/tools LGTM

@steffenlarsen steffenlarsen merged commit d704d3c into intel:sycl Mar 20, 2024
12 checks passed
aelovikov-intel added a commit to aelovikov-intel/llvm that referenced this pull request Oct 7, 2024
The default was flipped in intel#13055, we
can deprecate now and remove during the next ABI breaking window. Also,
guard with `__INTEL_PREVIEW_BREAKING_CHANGES` to ensure that removal
will actually happen.
aelovikov-intel added a commit that referenced this pull request Oct 10, 2024
The default was flipped in #13055, we
can deprecate now and remove during the next ABI breaking window. Also,
guard with `__INTEL_PREVIEW_BREAKING_CHANGES` to ensure that removal
will actually happen.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants