Skip to content

[SYCL] Remove mentions of host device from in-tree LIT tests #6683

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

Conversation

AlexeySachkov
Copy link
Contributor

No description provided.

@steffenlarsen
Copy link
Contributor

This is ready for review. The removed tests will be moved to the test-suite in an upcoming PR.

steffenlarsen added a commit to steffenlarsen/llvm-test-suite that referenced this pull request Sep 2, 2022
With the removal of the host device a selection of in-tree LIT tests
can potentially fail as they rely on a device being available on the
system. intel/llvm#6683 removes these tests, but
since most are still valid this commit migrates these to the test-suite.

Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
v-klochkov
v-klochkov previously approved these changes Sep 2, 2022
Copy link
Contributor

@v-klochkov v-klochkov left a comment

Choose a reason for hiding this comment

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

Ok for ESIMD. Thank you.

@bader bader changed the title Remove mentions of host device from in-tree SYCL LIT tests [SYCL] Remove mentions of host device from in-tree LIT tests Sep 3, 2022
@bader bader requested a review from steffenlarsen September 5, 2022 16:18
AlexeySachkov pushed a commit to intel/llvm-test-suite that referenced this pull request Sep 7, 2022
With the removal of the host device a selection of in-tree LIT tests
can potentially fail as they rely on a device being available on the
system. intel/llvm#6683 removes these tests, but
since most are still valid this commit migrates these to the test-suite.

Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
@bader
Copy link
Contributor

bader commented Sep 9, 2022

@steffenlarsen, ping.

Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
steffenlarsen
steffenlarsen previously approved these changes Sep 9, 2022
v-klochkov
v-klochkov previously approved these changes Sep 9, 2022
@v-klochkov v-klochkov dismissed their stale review September 9, 2022 12:43

One of tests started failing. Need to re-check: regression/fsycl-host-compiler.cpp

auto B = b.get_access<access::mode::write>(cgh);
cgh.parallel_for<class test>(range<1>(3), [=](id<1> idx) {
B[idx] = 1;
cgh.host_task([=]() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Does 'host_task' remains supported even though 'host' is being removed?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes! host_task does not have anything to do with the host device. However, these tests are arguably not independent from the presence of a device, so they should be moved to the test-suite.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

host_task is executed on host and host != host device.

host device term only exists in SYCL 1.2.1 specification and it means the ability to execute SYCL Kernel Functions even if no OpenCL devices are available. host term still exists in SYCL 2020 and host_task is related to it, not to host device

Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
@steffenlarsen
Copy link
Contributor

fsycl-host-compiler tests were moved to the test suite in intel/llvm-test-suite#1240

v-klochkov
v-klochkov previously approved these changes Sep 9, 2022
@steffenlarsen steffenlarsen merged commit ba01a30 into intel:sycl Sep 12, 2022
steffenlarsen pushed a commit that referenced this pull request Sep 15, 2022
The idea behind this PR is to introduce an infrastructure which allows
to write unit-tests, which are not dependent on a presence of actual
backends (like OpenCL, L0, etc.) or devices (like CPU, GPU, etc.).

Motivation for the patch: host device is going to be removed and we have
a number of in-tree LIT tests, which can't pass if there are no devices
available, so they are likely to be removed/disabled in short-term
(#6683), unless we move them into llvm-test-suite or unit-tests with new
infrastructure suggested here.

Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Co-authored-by: Sachkov, Alexey <alexey.sachkov@intel.com>
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Feb 23, 2023
With the removal of the host device a selection of in-tree LIT tests
can potentially fail as they rely on a device being available on the
system. intel#6683 removes these tests, but
since most are still valid this commit migrates these to the test-suite.

Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
…vm-test-suite#1195)

With the removal of the host device a selection of in-tree LIT tests
can potentially fail as they rely on a device being available on the
system. intel#6683 removes these tests, but
since most are still valid this commit migrates these to the test-suite.

Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
PietroGhg added a commit to PietroGhg/llvm that referenced this pull request Apr 24, 2023
@AlexeySachkov AlexeySachkov deleted the private/asachkov/remove-tests-using-host-device branch May 22, 2024 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants