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

[SYCL][ESIMD] Introduce test to validate thread ID API #1644

Merged
merged 6 commits into from
Mar 10, 2023
Merged

[SYCL][ESIMD] Introduce test to validate thread ID API #1644

merged 6 commits into from
Mar 10, 2023

Conversation

fineg74
Copy link

@fineg74 fineg74 commented Mar 8, 2023

No description provided.

@fineg74
Copy link
Author

fineg74 commented Mar 8, 2023

Complementary compiler PR: intel/llvm#8569

sycl::nd_range<1> Range(GlobalRange, LocalRange);

{
auto e = queue.submit([&](sycl::handler &cgh) {

Choose a reason for hiding this comment

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

minor comment: e is unused

Suggested change
auto e = queue.submit([&](sycl::handler &cgh) {
queue.submit([&](sycl::handler &cgh) {

shared_vector<int32_t> vector_output_thread_id(SIZE, -1, allocator);
shared_vector<int32_t> vector_output_subdevice_id(SIZE, -1, allocator);

auto GlobalRange = sycl::range<1>(SIZE);

Choose a reason for hiding this comment

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

Minor comment: The test has great mix of 2 naming styles: 'GlobalRange' and 'vector_output_subdevice_id_ptr'
It is a common problem for tests/sycl/esimd, but for new tests it would be nice to choose one style.

// UNSUPPORTED: cuda || hip
// RUN: %clangxx -fsycl %s -o %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// XFAIL: gpu

Choose a reason for hiding this comment

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

Does it really fail with esimd-emulator?

Choose a reason for hiding this comment

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

@fineg74 - This test probably passes with esimd_emulator (also coded as 'gpu'), but it is supposed to fail with this XFAIL.

@v-klochkov
Copy link

/verify with intel/llvm#8569

@v-klochkov v-klochkov merged commit a100181 into intel:intel Mar 10, 2023
@fineg74 fineg74 deleted the ThreadIDTest branch March 10, 2023 22:16
@fineg74 fineg74 restored the ThreadIDTest branch March 10, 2023 22:16
@fineg74 fineg74 deleted the ThreadIDTest branch March 10, 2023 22:16
myler added a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
…e-topic

CMPLRTST-19973: skip run matrix_amxint8* on non-avx512 machine.
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 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.

3 participants