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

[NFC][SYCL] Switch to std:: equivalents for utilities in stl_type_traits.hpp #7668

Merged
merged 6 commits into from
Dec 7, 2022

Conversation

aelovikov-intel
Copy link
Contributor

No description provided.


// Custom type traits.
// FIXME: Those doesn't seem to be a part of any published/future C++ standard
// so should probably be moved to a different place.
Copy link
Contributor

Choose a reason for hiding this comment

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

We probably can drop stl_ prefix from the file name to avoid confusion. What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We have detail/type_traits.hpp already that has lots of custom stuff (and remove_pointer that seems to behave differently than std:: version). I think that the best would be to move this code to detail/type_traits.hpp.

As for this file, I'm planning to add C++20's remove_cvref_t here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Following up on the previous comment - sycl::detail::remove_pointer difference comes from sycl::multi_ptr support, I think.

@aelovikov-intel
Copy link
Contributor Author

Unresolved Tests (5):
  SYCL :: Assert/assert_in_kernels.cpp
  SYCL :: Assert/assert_in_multiple_tus.cpp
  SYCL :: Assert/assert_in_multiple_tus_one_ndebug.cpp
  SYCL :: Assert/assert_in_one_kernel.cpp
  SYCL :: Assert/assert_in_simultaneously_multiple_tus_one_ndebug.cpp

known, #7634.

@aelovikov-intel
Copy link
Contributor Author

Unresolved Tests (5):
  SYCL :: Assert/assert_in_kernels.cpp
  SYCL :: Assert/assert_in_multiple_tus.cpp
  SYCL :: Assert/assert_in_multiple_tus_one_ndebug.cpp
  SYCL :: Assert/assert_in_one_kernel.cpp
  SYCL :: Assert/assert_in_simultaneously_multiple_tus_one_ndebug.cpp

are known - #7634. @intel/llvm-gatekeepers , this PR is ready.

@steffenlarsen steffenlarsen merged commit f4fc927 into intel:sycl Dec 7, 2022
aelovikov-intel added a commit to aelovikov-intel/llvm that referenced this pull request Dec 14, 2022
…type_traits.hpp (intel#7668)"

This reverts commit f4fc927.

We found issues when trying to build the project on RHEL7 systems that
we need in our OS support matrix.
pvchupin pushed a commit that referenced this pull request Dec 14, 2022
…type_traits.hpp (#7668)" (#7776)

This reverts commit f4fc927.

We found issues when trying to build the project on RHEL7 systems that
we need in our OS support matrix.
aelovikov-intel added a commit to aelovikov-intel/llvm that referenced this pull request Apr 21, 2023
…its.hpp

Re-commits intel#7628 and intel#7668 that were previously reverted due to build
issues on RHEL systems. The issues were fixed by introducing
`SYCL_LIBDEVICE_GCC_TOOLCHAIN` cmake configuration option in intel#7771.
againull pushed a commit that referenced this pull request Apr 24, 2023
…its.hpp (#9162)

Re-commits #7628 and #7668 that were previously reverted due to build
issues on RHEL systems. The issues were fixed by introducing
`SYCL_LIBDEVICE_GCC_TOOLCHAIN` cmake configuration option in #7771.
@aelovikov-intel aelovikov-intel deleted the remove-stl-type-traits branch May 1, 2023 16:12
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