-
Notifications
You must be signed in to change notification settings - Fork 769
[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
[SYCL] Remove mentions of host device from in-tree LIT tests #6683
Conversation
This is ready for review. The removed tests will be moved to the test-suite in an upcoming PR. |
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>
There was a problem hiding this 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.
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>
@steffenlarsen, ping. |
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
…e-tests-using-host-device
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([=]() { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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>
fsycl-host-compiler tests were moved to the test suite in intel/llvm-test-suite#1240 |
…e-tests-using-host-device
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>
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>
…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>
…ntel#6683)" This reverts commit ba01a30.
No description provided.