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

[SYCL] Fix UNSUPPORTED syntax for DiscardEvents/invalid_event.cpp #665

Merged
merged 1 commit into from
Dec 23, 2021

Conversation

AGindinson
Copy link

As shown by CI for #569, the unsupported combination of opencl && acc
still shows up. Attempt to fix this by using a common operator style
as a follow-up to #652.

Signed-off-by: Artem Gindinson artem.gindinson@intel.com

As shown by CI for intel#569, the unsupported combination of opencl && acc
still shows up. Attempt to fix this by using a common operator style
as a follow-up to intel#652.

Signed-off-by: Artem Gindinson <artem.gindinson@intel.com>
@AGindinson AGindinson requested a review from vmaksimo December 23, 2021 08:30
@AGindinson AGindinson requested a review from a team as a code owner December 23, 2021 08:30
Copy link

@bader bader left a comment

Choose a reason for hiding this comment

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

@vmaksimo, @AGindinson, @sergey-semenov, could you clarify how this (opencl && acc) disables the test?
I still see in the logs that test is executed. AFAIK, llvm-test-suite is not executed on acc in a separate invocation. Accelerator is tested as part of the OpenCL back-end validation. I think the right way to disable testing on accelerator is it remove RUN: %ACC_RUN_PLACEHOLDER %t.out line.

@bader
Copy link

bader commented Dec 23, 2021

I think we can merge this version of the patch to fix validation on HIP back-end, but someone need to verify that validation on OpenCL accelerator type of devices is disabled.

@AGindinson
Copy link
Author

Could you clarify how this (opencl && acc) disables the test?

I would expect this to work like https://github.com/intel/llvm-test-suite/blob/intel/SYCL/Basic/image/image_max_size.cpp#L1 does - the test does get launched, but the corresponding RUN_PLACEHOLDER line is not executed. I have to say I'm unsure of the exact mechanism.

@bader bader merged commit 9b7a15a into intel:intel Dec 23, 2021
@bader
Copy link

bader commented Dec 23, 2021

Could you clarify how this (opencl && acc) disables the test?

I would expect this to work like https://github.com/intel/llvm-test-suite/blob/intel/SYCL/Basic/image/image_max_size.cpp#L1 does - the test does get launched, but the corresponding RUN_PLACEHOLDER line is not executed. I have to say I'm unsure of the exact mechanism.

It doesn't work like this. Take a look at https://github.com/intel/llvm-test-suite/blob/intel/SYCL/lit.cfg.py#L310-L322 to learn how placeholder line work. It doesn't take into account particular test LIT commands. It uses configuration provided to the test runner script. i.e. whether acc was requested as a target device for llvm-test-suite.

It would work if you specify accelerator instead of acc, but it will disable the whole test, not specific RUN command (i.e. disable testing on other devices).
https://github.com/intel/llvm-test-suite/blob/intel/SYCL/lit.cfg.py#L317 - UNSUPPORTED is tested against available_features, which is named accelerator.

@bader
Copy link

bader commented Dec 23, 2021

It would work if you specify accelerator instead of acc, but it will disable the whole test, not specific RUN command (i.e. disable testing on other devices).

I mean CI system here, which run tests on machines with all devices available. If we run on the system w/o FPGA runtime, UNSUPPORTED: opencl && accelerator will not disable the test.

@bader
Copy link

bader commented Dec 23, 2021

You can read more about how UNSUPPORTED work in llvm documentation - https://llvm.org/docs/TestingGuide.html#constraining-test-execution.

REQUIRES and UNSUPPORTED and XFAIL all accept a comma-separated list of boolean expressions. The values in each expression may be:

  • Features added to config.available_features by configuration files such as lit.cfg. String comparison of features is case-sensitive. Furthermore, a boolean expression can contain any Python regular expression enclosed in {{ }}, in which case the boolean expression is satisfied if any feature matches the regular expression. Regular expressions can appear inside an identifier, so for example he{{l+}}o would match helo, hello, helllo, and so on.
  • Substrings of the target triple (UNSUPPORTED and XFAIL only).

REQUIRES enables the test if all expressions are true.
UNSUPPORTED disables the test if any expression is true.

@bader
Copy link

bader commented Dec 23, 2021

Another attempt to disable the test - #671.

aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
…tel/llvm-test-suite#665)

As shown by CI for intel#569, the unsupported combination of opencl && acc
still shows up. Attempt to fix this by using a common operator style
as a follow-up to intel#652.

Signed-off-by: Artem Gindinson <artem.gindinson@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