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

[SYCL] Remove host from supported device types and backends #1224

Merged

Conversation

steffenlarsen
Copy link

This commit removes the host as both a valid backend and a valid device type in the LIT configuration file.

This commit removes the host as both a valid backend and a valid device
type in the LIT configuration file.

Co-authored-by: Sachkov, Alexey <alexey.sachkov@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
@steffenlarsen steffenlarsen requested a review from a team as a code owner September 2, 2022 12:38
@steffenlarsen
Copy link
Author

steffenlarsen commented Sep 2, 2022

This requires the following changes:

Following changes are related but are not hard prerequisites for this:

v-klochkov
v-klochkov previously approved these changes Sep 2, 2022
@@ -336,7 +314,7 @@
if 'cpu' in config.target_devices.split(','):
found_at_least_one_device = True
lit_config.note("Test CPU device")
cpu_run_substitute = "env SYCL_DEVICE_FILTER={SYCL_PLUGIN}:cpu,host ".format(SYCL_PLUGIN=config.sycl_be)
cpu_run_substitute = "env SYCL_DEVICE_FILTER={SYCL_PLUGIN}:cpu ".format(SYCL_PLUGIN=config.sycl_be)
Copy link

@AlexeySachkov AlexeySachkov Sep 5, 2022

Choose a reason for hiding this comment

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

We should outline those small ,host changes into a separate PR: I'm concerned that in some cases tests might be launched on host while it is still there. In combination with removal of code pieces like:

if (Queue.get_device().is_host()) {
    std::cout << "Skipping test\n";
    return 0;
  }

That could introduce new failures while we removing tests.

UPD: for example, in #1210 a test simply crashed under environment "SYCL_DEVICE_FILTER=ext_oneapi_level_zero:gpu,host". Note: I'm not entirely sure that it is because it attempted to launch the test on host

Copy link
Author

Choose a reason for hiding this comment

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

I suggest we move the tests that depend on this to be part of this PR to avoid further inter-dependencies.

Choose a reason for hiding this comment

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

I suggest we move the tests that depend on this to be part of this PR to avoid further inter-dependencies.

It is hard to grep for such. Actually, I think that the situation I described won't occur in our CI, but it is theoretically possible

Copy link
Author

Choose a reason for hiding this comment

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

Most cases should work as long as the host device isn't the only device. Even if that happens, it should only happen between those tests being merged and this being merged.

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

Changes to subdevice.cpp and subsubdevice.cpp were moved from #1198 to this as the host will be picked up if it is not filtered out, causing the tests to fail.

Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
@steffenlarsen steffenlarsen merged commit ee421ec into intel:intel Sep 12, 2022
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
* [SYCL] Add MAJOR_VERSION to the name of the sycl library on Win (intel#1237)

* Update version of sycl library on Win (intel#1285)

Co-authored-by: aelovikov-intel <andrei.elovikov@intel.com>
Co-authored-by: Nikita <nikita.kornev@intel.com>
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
This commit removes the host as both a valid backend and a valid device
type in the LIT configuration file.

Co-authored-by: Sachkov, Alexey <alexey.sachkov@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
This commit removes the host as both a valid backend and a valid device
type in the LIT configuration file.

Co-authored-by: Sachkov, Alexey <alexey.sachkov@intel.com>
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#1224)

This commit removes the host as both a valid backend and a valid device
type in the LIT configuration file.

Co-authored-by: Sachkov, Alexey <alexey.sachkov@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
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