Skip to content

[SYCL] Switch to preview implementation of sycl::vec #14317

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
merged 4 commits into from
Jul 16, 2024

Conversation

aelovikov-intel
Copy link
Contributor

@aelovikov-intel aelovikov-intel commented Jun 26, 2024

I'm keeping the vector_preview.hpp file name to avoid misleading diff in this PR.

Also, a minor fix in swizzles implementation is included in this change fixing a bug that would have affected SubGroup/load_store.cpp E2E test otherwise.

@aelovikov-intel aelovikov-intel added the abi-break change that's breaking abi and waiting for the next window to be able to merge label Jun 26, 2024
@aelovikov-intel

This comment was marked as outdated.

steffenlarsen pushed a commit that referenced this pull request Jul 11, 2024
… O0 (#14498)

There seems to be a bug in CodeGen for OpenCL CPU which causes a
seg-fault in `vec::convert<>`, when converting to `vec<long, 8>` at O0.
To unblock #14317, this PR proposes a
non-functional change as a workaround for the CodeGen bug.
@aelovikov-intel aelovikov-intel marked this pull request as ready for review July 11, 2024 22:31
@aelovikov-intel aelovikov-intel requested a review from a team as a code owner July 11, 2024 22:31
@@ -1429,8 +1429,7 @@ class SwizzleOp {
DataT getValue(EnableIfMultipleIndexes<IdxNum, size_t> Index) const {
if (std::is_same_v<OperationCurrentT<DataT>, GetOp<DataT>>) {
std::array<int, getNumElements()> Idxs{Indexes...};
// Cast required for int8_t -> std::byte
return static_cast<DataT>(m_Vector->getValue(Idxs[Index]));
return (*m_Vector)[Idxs[Index]];
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the bugfix mentioned in the description.

Copy link
Contributor

@uditagarwal97 uditagarwal97 left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks :)

Copy link
Contributor

@steffenlarsen steffenlarsen left a comment

Choose a reason for hiding this comment

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

LGTM!

@aelovikov-intel
Copy link
Contributor Author

CUDA testing succeeded in https://github.com/intel/llvm/actions/runs/9963598138, re-run was triggered by re-run of the AMDGPU task that was necessary due to the infrastructure issues on the runner (GPU not visible).

@aelovikov-intel aelovikov-intel merged commit 8e40bb5 into intel:sycl Jul 16, 2024
13 of 14 checks passed
@aelovikov-intel aelovikov-intel deleted the abi-vec-impl branch July 16, 2024 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
abi-break change that's breaking abi and waiting for the next window to be able to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants