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

[SYCL][ESIMD] Test for a fix of error when a scalar offset is provided as a parameter to the API #1534

Merged
merged 14 commits into from
Jan 31, 2023
Merged

Conversation

fineg74
Copy link

@fineg74 fineg74 commented Jan 21, 2023

Complementary compiler PR: intel/llvm#8075

@fineg74
Copy link
Author

fineg74 commented Jan 21, 2023

/verify with intel/llvm#8075

@fineg74
Copy link
Author

fineg74 commented Jan 21, 2023

/verify with intel/llvm#8075

@fineg74
Copy link
Author

fineg74 commented Jan 23, 2023

/verify with intel/llvm#8075

@fineg74
Copy link
Author

fineg74 commented Jan 28, 2023

Test failures:
SYCL :: ESIMD/api/svm_gather_scatter_scalar_off.cpp
SYCL :: ESIMD/dword_atomic_cmpxchg_scalar_off.cpp
SYCL :: ESIMD/dword_atomic_smoke_scalar_off.cpp
Are expected as it requires compiler changes to pass

@@ -98,48 +98,59 @@ int main(void) {
bool Pass = true;

Pass &= test<int8_t, 1>(Q);
#ifndef USE_SCALAR_OFFSET

Choose a reason for hiding this comment

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

Just a note: This situation reveals that this test is written in a bad way: gather and scatter are used in one kernel and gather is input for gather. This makes it impossible to test gather with scalar offset and N>1 and it creates opportunity for double-error (1 in gather, 1 in scatter) giving a pass.
I had some changes in my local ws splitting this test to gather and scatter.

if (q.get_backend() != sycl::backend::ext_intel_esimd_emulator)
passed &= test_int_types<8, ImplStore>(q, cfg);
#ifndef USE_DWORD_ATOMICS
if (q.get_backend() != sycl::backend::ext_intel_esimd_emulator)
passed &= test<float, 8, ImplStore>(q, cfg);
#endif // USE_DWORD_ATOMICS
#endif

Choose a reason for hiding this comment

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

nit (here and in few other places):

Suggested change
#endif
#endif // !USE_SCALAR_OFFSET

@fineg74
Copy link
Author

fineg74 commented Jan 31, 2023

/verify with intel/llvm#8075

@fineg74
Copy link
Author

fineg74 commented Jan 31, 2023

Test failures:
SYCL :: ESIMD/api/svm_gather_scatter_scalar_off.cpp
SYCL :: ESIMD/dword_atomic_cmpxchg_scalar_off.cpp
SYCL :: ESIMD/dword_atomic_smoke_scalar_off.cpp
Are expected as it requires compiler changes to pass

@v-klochkov v-klochkov merged commit d63b352 into intel:intel Jan 31, 2023
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants