Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[SYCL] Add test for sycl::vec with std::byte #478

Merged
merged 5 commits into from
Oct 5, 2021

Conversation

maximdimakov
Copy link

In intel/llvm#4637 added support for std::byte in sycl::vec class. The test is aimed to check functionality of sycl::vec class with std::byte.
Signed-off-by: mdimakov maxim.dimakov@intel.com

vladimirlaz
vladimirlaz previously approved these changes Sep 29, 2021
s-kanaev
s-kanaev previously approved these changes Oct 1, 2021
@maximdimakov maximdimakov dismissed stale reviews from s-kanaev and vladimirlaz via 9eb50ce October 1, 2021 12:20
dm-vodopyanov pushed a commit to intel/llvm that referenced this pull request Oct 1, 2021
sycl::byte is deprecated and std::byte must be used instead. sycl::vec has unsigned char data under the hood when sycl::byte (the sycl::byte is alias to uint8_t) is used.
I added helper struct for explicit casting std::byte to uint8_t and vice versa. When std::byte is used in sycl::vec, vec's realization will use uint8_t for all the operations.
The test : intel/llvm-test-suite#478
Signed-off-by: mdimakov maxim.dimakov@intel.com
@maximdimakov
Copy link
Author

precommit is failing due to problems that are not related to this patch. Fix in the #494

@vladimirlaz
Copy link

@maximdimakov please note that SYCL :: Basic/vector_byte.cpp has failed on CUDA

@maximdimakov
Copy link
Author

@vladimirlaz I fixed problem with cuda

@vladimirlaz vladimirlaz merged commit 6ff631b into intel:intel Oct 5, 2021
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
* Add test for vec with std::byte

* Clang-format fix

* Added c++17 compile options

* Remove assert from kernel

* Clang-format fix
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants