Skip to content

Conversation

@dnmokhov
Copy link
Contributor

@dnmokhov dnmokhov commented Jan 26, 2021

  • Keep long long and unsigned long long in is_standard_type.
    Excluding them resulted in duplicate convertImpl definitions on
    Windows when converting from long long or unsigned long long:
    SPIR-V-based and the non-standard type version.
  • For to-int SPIR-V-based convertImpl overload resolution, compare
    the OpenCL return type with cl_DestType instead of simply DestType
    ((u)char, (u)short, (u)int, (u)long). When converting to long long
    or unsigned long long on Windows, the non-standard type version
    was used instead of these functions, because cl_long == long long != long there.

@dnmokhov
Copy link
Contributor Author

/summary:run

- Keep `long long` and `unsigned long long` in `is_standard_type`.
  Excluding them resulted in duplicate `convertImpl` definitions on
  Windows when converting from `long long` or `unsigned long long`:
  SPIR-V-based and the non-standard type version.
- For to-int SPIR-V-based `convertImpl` overload resolution, compare
  the OpenCL return type with cl_DestType instead of simply DestType
  ((u)char, (u)short, (u)int, (u)long). When converting to `long long`
  or `unsigned long long` on Windows, the non-standard type version
  was used instead of these functions, because `cl_long == long long
  != long` there.
@dnmokhov dnmokhov changed the title [SYCL] Keep long long and unsigned long long types in is_standard_type [SYCL] Fix long long support in vec::convert on Windows Jan 29, 2021
@dnmokhov
Copy link
Contributor Author

/summary:run

@dnmokhov dnmokhov marked this pull request as ready for review January 29, 2021 19:05
@dnmokhov dnmokhov requested a review from turinevgeny as a code owner January 29, 2021 19:05
@romanovvlad
Copy link
Contributor

@bader @turinevgeny Could you please review?

@dnmokhov dnmokhov requested a review from a team as a code owner February 1, 2021 18:46
turinevgeny
turinevgeny previously approved these changes Feb 2, 2021
Copy link
Contributor

@turinevgeny turinevgeny left a comment

Choose a reason for hiding this comment

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

LGTM,

@romanovvlad romanovvlad merged commit 5b49cd3 into intel:sycl Feb 3, 2021
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.

4 participants