Skip to content

[SYCL] Fix vec::convert method. #416

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

Merged

Conversation

alexeyvoronov-intel
Copy link
Contributor

Fixed non-compiling code.
Added support for rounding modes on the host device.

Signed-off-by: Alexey Voronov [email protected]

@hidekisaito
Copy link
Contributor

Was the old code for device completely broken? If yes, approved. Else, salvage where floor/ceil was working.

@hidekisaito
Copy link
Contributor

@alexeyvoronov wrote privately:
Before my changes the code of the convert method didn't compile.

If this is the case, I don't have any more comments. Please address the comment by @bader where applicable.

sycl::int8{2, 3, 3, -2, -3, -3, 0, 0});
test<float, int, 8, rounding_mode::automatic>(
sycl::float8{+2.3f, +2.5f, +2.7f, -2.3f, -2.5f, -2.7f, 0.f, 0.f},
#ifdef ROUNDING_MODES_IMPLEMENTED
Copy link
Contributor

Choose a reason for hiding this comment

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

Please, remove this macro.
Rounding modes must be supported by convert method.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Fixed non-compiling code.
Added support for rounding modes on the host device.

Signed-off-by: Alexey Voronov <[email protected]>
@alexeyvoronov-intel alexeyvoronov-intel force-pushed the private/avoronov/vec_convert_host_side branch from 6d41818 to e78c51d Compare August 15, 2019 15:32
@bader bader merged commit fe3bbf9 into intel:sycl Aug 16, 2019
@alexeyvoronov-intel alexeyvoronov-intel deleted the private/avoronov/vec_convert_host_side branch September 12, 2019 13:14
vmaksimo pushed a commit to vmaksimo/llvm that referenced this pull request Jan 18, 2021
  CONFLICT (content): Merge conflict in llvm/lib/Support/Triple.cpp
  CONFLICT (content): Merge conflict in llvm/include/llvm/ADT/Triple.h
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