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

[SYCL] Remove host run and dependencies from SYCL/ESIMD tests #1206

Merged
merged 1 commit into from
Sep 12, 2022

Conversation

steffenlarsen
Copy link

This commit removes the host run and any assumptions and operations related to the host device from the tests in SYCL/ESIMD.

This commit removes the host run and any assumptions and operations
related to the host device from the tests in SYCL/ESIMD.

Co-authored-by: Sachkov, Alexey <alexey.sachkov@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
@@ -33,8 +33,7 @@ int main(int, char **) {
sycl::device device = queue.get_device();
// verify aspect::fp16 due to using sycl::half data type
// verify aspect::fp64 due to using double data type
if (!device.is_host() && !device.has(sycl::aspect::fp16) &&
!device.has(sycl::aspect::fp64)) {
if (!device.has(sycl::aspect::fp16) && !device.has(sycl::aspect::fp64)) {

Choose a reason for hiding this comment

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

The fix is correct.
But the underlying code (that is being fixed here) is totally incorrect IMO.

  1. The test ctor_vector_core.cpp tests "core" types, i.e. all types except specific. "core" does not include double/half.
    So, this check must be not in this file, but in ctor_vector_fp_extra.cpp.
  2. The check must be 'if (!has_fp16 || !has_fp64)' instead of '(!has_fp16 && !has_fp64).

There are several other tests like that.
This can be fixed in a separate PR (I can do that).

@steffenlarsen steffenlarsen merged commit 390f24c into intel:intel Sep 12, 2022
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
…1206)

This commit removes the host run and any assumptions and operations
related to the host device from the tests in SYCL/ESIMD.

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
…1206)

This commit removes the host run and any assumptions and operations
related to the host device from the tests in SYCL/ESIMD.

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
…llvm-test-suite#1206)

This commit removes the host run and any assumptions and operations
related to the host device from the tests in SYCL/ESIMD.

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.

2 participants