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

[SYCL] E2E test to retain PI events until they have signaled #180

Merged
merged 2 commits into from
Apr 6, 2021

Conversation

smaslov-intel
Copy link

Covers the change in intel/llvm#3350
Signed-off-by: Sergey V Maslov sergey.v.maslov@intel.com

Signed-off-by: Sergey V Maslov <sergey.v.maslov@intel.com>
bso-intel
bso-intel previously approved these changes Mar 12, 2021
Copy link

@bso-intel bso-intel left a comment

Choose a reason for hiding this comment

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

LGTM

std::fill(dst, dst + N, 0);

for (int i = 0; i < 256; ++i) {
sycl::queue Q { C , D, async_sycl_error };//, sycl::property::queue::enable_profiling() };

Choose a reason for hiding this comment

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

Suggested change
sycl::queue Q { C , D, async_sycl_error };//, sycl::property::queue::enable_profiling() };
sycl::queue Q { C , D, async_sycl_error };

bader pushed a commit to intel/llvm that referenced this pull request Mar 15, 2021
It is illegal to destroy an event until it is completed in the GPU.
This change prevents sporadic failures due to Level-Zero RT crashes because we released event too early.
I am adding E2E test: intel/llvm-test-suite#180

Signed-off-by: Sergey V Maslov <sergey.v.maslov@intel.com>
@vladimirlaz
Copy link

@smaslov-intel, could you please fix clang-format issue?

Copy link

@vladimirlaz vladimirlaz left a comment

Choose a reason for hiding this comment

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

@smaslov-intel, could you please fix clang-format issue?

Signed-off-by: Sergey V Maslov <sergey.v.maslov@intel.com>
@vladimirlaz vladimirlaz merged commit 07c9c5c into intel:intel Apr 6, 2021
});
});
}

Copy link

Choose a reason for hiding this comment

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

@smaslov-intel, @againull, shouldn't we set SYCL_PI_LEVEL_ZERO_TRACK_INDIRECT_ACCESS_MEMORY or wait for all kernels to complete before freeing USM memory to make this test valid?

Copy link

Choose a reason for hiding this comment

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

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.

4 participants