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

Sampler Lit Tests #152

Merged
merged 11 commits into from
Mar 4, 2021

Conversation

cperkinsintel
Copy link

Between the coordinate_normalization_mode , addressing_mode and filtering_mode there are 16 valid combinations that a sampler should support for RGBA images. Here we are adding each combination as its own test.
Some of the devices do not support particular combinations. For example, the CPU device is not correctly supporting linear interpolation at this time. In those cases, I have simply skipped the //RUN: directive for the not-yet-supporting device and left a comment in its place. Let me know if this is not the correct approach.

Signed-off-by: Chris Perkins chris.perkins@intel.com

Signed-off-by: Chris Perkins <chris.perkins@intel.com>
@vladimirlaz
Copy link

The failures are dependency issue. Will restart tests once it is fixed.

Copy link

@vladimirlaz vladimirlaz left a comment

Choose a reason for hiding this comment

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

The dependency issues have been resolved. Please fix RUN line to have tests run properly.

Signed-off-by: Chris Perkins <chris.perkins@intel.com>
@cperkinsintel
Copy link
Author

@vladimirlaz - How does one find out how/where these tests are supposedly failing? When I click the Details link it just results in a Network error.

I pull this branch, merged it against the latest of intel/llvm-test-suite, and tested it locally. I have the latest pull of intel/llvm sycl branch built. For me the ESIMD tests fail, but they are the only ones, and they seem to always fail.

Signed-off-by: Chris Perkins <chris.perkins@intel.com>
Signed-off-by: Chris Perkins <chris.perkins@intel.com>
Signed-off-by: Chris Perkins <chris.perkins@intel.com>
Signed-off-by: Chris Perkins <chris.perkins@intel.com>
Signed-off-by: Chris Perkins <chris.perkins@intel.com>
@vladimirlaz
Copy link

If the test caused timeout on some configuration we can only mark them UNSUPPORTED.
SYCL :: Plugin/interop-level-zero-keep-ownership.cpp failyure can be ignored.

Signed-off-by: Chris Perkins <chris.perkins@intel.com>
@cperkinsintel cperkinsintel marked this pull request as ready for review March 1, 2021 17:18
@cperkinsintel cperkinsintel marked this pull request as draft March 1, 2021 17:18
Signed-off-by: Chris Perkins <chris.perkins@intel.com>
@cperkinsintel cperkinsintel marked this pull request as ready for review March 3, 2021 00:00
@vladimirlaz vladimirlaz merged commit 5e9e234 into intel:intel Mar 4, 2021
@pvchupin
Copy link

pvchupin commented Mar 8, 2021

@cperkinsintel, Sampler/unnormalized-none-linear.cpp is failing for NFC change: intel/llvm#3319

@pvchupin pvchupin requested a review from bader March 8, 2021 19:10
@pvchupin
Copy link

pvchupin commented Mar 8, 2021

@bader, does it make sense to add such sort of tests to CTS instead?

@bader
Copy link

bader commented Mar 9, 2021

@bader, does it make sense to add such sort of tests to CTS instead?

It does if CTS doesn't cover this already.

@cperkinsintel
Copy link
Author

@bader @pvchupin - The CTS tests don't cover the samplers at all. All they do is make sure the interface is fully defined and available. There is no actual testing of functionality.
I was hoping to re-do these tests as CTS tests at a later date and submit them to the Khronos repo. But my guess is that the process might be longer? We wanted these tests available immediately, because we have tickets that teams are actively working, and having tests here and now is valuable.

@pvchupin
Copy link

pvchupin commented Mar 9, 2021

@cperkinsintel, it sounds reasonable for this case. Thanks. For the future (and less urgent) cases we may want to consider to contribute directly to CTS. Let's keep that in mind.

aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
Between the coordinate_normalization_mode , addressing_mode and filtering_mode there are 16 valid combinations that a sampler should support for RGBA images. Here we are adding each combination as its own test.
Some of the devices do not support particular combinations. For example, the CPU device is not correctly supporting linear interpolation at this time. In those cases, I have simply skipped the //RUN: directive for the not-yet-supporting device and left a comment in its place.

Signed-off-by: Chris Perkins <chris.perkins@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