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

[SYCL] Prevent use of fp64 and fp16 when unsupported in more tests #1353

Merged

Conversation

steffenlarsen
Copy link

A number of tests currently use double and sycl::half despite them not being supported by the used device. Although it does not necessarily fail to run on those devices, they are not considered supported by the SYCL specification and should not be used in testing on those devices. This commit prevent parts of a selection of tests from running on devices that do not support the types used.

A number of tests currently use double and sycl::half despite them not
being supported by the used device. Although it does not necessarily
fail to run on those devices, they are not considered supported by the
SYCL specification and should not be used in testing on those devices.
This commit prevent parts of a selection of tests from running on
devices that do not support the types used.

Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
@steffenlarsen steffenlarsen requested a review from a team as a code owner November 3, 2022 12:55
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Copy link

@AlexeySachkov AlexeySachkov left a comment

Choose a reason for hiding this comment

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

Overall LGTM, just a couple of minor comments/questions

Comment on lines 101 to 102
// NOTE: Double-precision floating point tests cannot be done here as
// they may not be supported by the device.

Choose a reason for hiding this comment

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

Did we move them into a separate test? Or do we rely on SYCL-CTS for double?

Copy link
Author

Choose a reason for hiding this comment

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

You're right, we should keep the coverage. I've given it the same treatment as printf tests.

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

@v-klochkov - I have added a handful more cases, most of which are for ESIMD with fp16. Could you please have another pass over it?

Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
@AlexeySachkov AlexeySachkov merged commit f6dffae into intel:intel Nov 4, 2022
@steffenlarsen
Copy link
Author

Failure in SYCL :: KernelAndProgram/kernel-bundle-merge-options-env.cpp for OpenCL is seen in other PRs.

myler pushed a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
…-topic

[SYCL] Update inlineASM tests to use subgroup size 16 instead of 8.
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
…ntel#1353)

A number of tests currently use double and sycl::half despite them not
being supported by the used device. Although it does not necessarily
fail to run on those devices, they are not considered supported by the
SYCL specification and should not be used in testing on those devices.
This commit prevent parts of a selection of tests from running on
devices that do not support the types used.

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
…ntel#1353) (intel#1396)

A number of tests currently use double and sycl::half despite them not
being supported by the used device. Although it does not necessarily
fail to run on those devices, they are not considered supported by the
SYCL specification and should not be used in testing on those devices.
This commit prevent parts of a selection of tests from running on
devices that do not support the types used.

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

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

A number of tests currently use double and sycl::half despite them not
being supported by the used device. Although it does not necessarily
fail to run on those devices, they are not considered supported by the
SYCL specification and should not be used in testing on those devices.
This commit prevent parts of a selection of tests from running on
devices that do not support the types used.

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.

4 participants