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

[SYCL] Add LIT tests for handler::host_task() (#3837) #299

Merged
merged 3 commits into from
Jun 8, 2021

Conversation

v-klochkov
Copy link

This patch tests intel/llvm#3837

Signed-off-by: Vyacheslav N Klochkov [email protected]

@v-klochkov
Copy link
Author

Some tests check both handler::host_task() and handler::codeplay_host_task() to provide reasonable amount of testing for the deprecated codeplay_host_task() method.
Other tests did not get checks for codeplay_host_task() because a) there are no good reasons to think results would be different from host_task() as both are identical under the hood.
Also, adding checks for both to all tests would only cause longer testing time.

For example, the test 'SYCL/HostInteropTask/host-task-dependency3.cpp' runs about 37 secs on CPU and my initial move was to add checks for both methods there, which resulted into about 75 secs run on CPU, which seems not reasonable. Thus I simply replaced calls of codeplay_host_task() with host_task() there.

v-klochkov added a commit to intel/llvm that referenced this pull request Jun 1, 2021
The method handler::codeplay_host_task() is marked as deprecated.

The corresponding changes in LIT tests:
intel/llvm-test-suite#299

Signed-off-by: Vyacheslav N Klochkov <[email protected]>
@v-klochkov v-klochkov force-pushed the public_vklochkov_host_task branch 2 times, most recently from 75f550d to b2df990 Compare June 2, 2021 23:44
@v-klochkov v-klochkov marked this pull request as ready for review June 3, 2021 05:07
@v-klochkov v-klochkov requested a review from a team as a code owner June 3, 2021 05:07
@v-klochkov v-klochkov requested a review from vladimirlaz June 3, 2021 05:07
@@ -146,7 +155,7 @@ void test() {
Context Ctx{{false}, Queue, {10}, {10}, {10}, {}, {}};

// 0. setup: thread 1 T1: exec smth; thread 2 T2: waits; init flag F = false
auto A1 = std::async(std::launch::async, Thread1Fn, &Ctx);
auto A1 = std::async(std::launch::async, Thread1Fn<true>, &Ctx);

Choose a reason for hiding this comment

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

Is it intended to be hardcoded and the next line is unspecified?

Copy link
Author

@v-klochkov v-klochkov Jun 4, 2021

Choose a reason for hiding this comment

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

Fixed in abca7580e61609a7ad2bdaeee9c00c9b7c9b885b. Thank you!

@v-klochkov v-klochkov force-pushed the public_vklochkov_host_task branch 2 times, most recently from 87e9d5f to abca758 Compare June 4, 2021 06:50
This patch tests intel/llvm#3837

Signed-off-by: Vyacheslav N Klochkov <[email protected]>
Signed-off-by: Vyacheslav N Klochkov <[email protected]>
@v-klochkov v-klochkov force-pushed the public_vklochkov_host_task branch from abca758 to 939dc29 Compare June 7, 2021 17:42
@v-klochkov v-klochkov requested a review from againull June 7, 2021 20:30
Copy link

@againull againull left a comment

Choose a reason for hiding this comment

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

LGTM

@v-klochkov v-klochkov merged commit 6cf7cfd into intel:intel Jun 8, 2021
@v-klochkov v-klochkov deleted the public_vklochkov_host_task branch June 8, 2021 17:21
smaslov-intel pushed a commit to smaslov-intel/llvm-test-suite that referenced this pull request Aug 12, 2021
* [SYCL] Add LIT tests for handler::host_task() (#3837)

This patch tests intel/llvm#3837

Signed-off-by: Vyacheslav N Klochkov <[email protected]>
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
…3837) (intel/llvm-test-suite#299)

* [SYCL] Add LIT tests for handler::host_task() (intel/llvm-test-suite#3837)

This patch tests intel#3837

Signed-off-by: Vyacheslav N Klochkov <[email protected]>
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