Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gpu: reduction: fix failing gtests #2453

Closed
wants to merge 1 commit into from

Conversation

sgeor255
Copy link
Contributor

Description

#2243 caused some failures in the reduction gtests on intel GPU. This PR reverts a skip which was incorrectly removed which skips the tests on non-cpu engines. The ifdef for INTEL vendor is added as the tests should be enabled on generic backend.

Checklist

General

  • Do all unit and benchdnn tests (make test and make test_benchdnn_*) pass locally for each commit?
  • Have you formatted the code using clang-format?

@sgeor255 sgeor255 requested a review from a team as a code owner January 20, 2025 15:39
@github-actions github-actions bot added the component:tests Codeowner: @oneapi-src/onednn-arch label Jan 20, 2025
#if DNNL_GPU_VENDOR == DNNL_VENDOR_INTEL
SKIP_IF(get_test_engine().get_kind() != engine::kind::cpu,
"Engine does not support this primitive.");
#endif
Copy link
Contributor

Choose a reason for hiding this comment

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

The Intel GPU backend should have a bunch of implementation to pick from, for both OCL and SYCL runtimes.
So even though your previous PR made those bugs visible, I don't think rehiding these issues is the proper fix here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My bad, I assumed those tests had been disabled on purpose and I re-added the check. From a quick look, both intel::ocl::atomic_reduction_t & intel::ocl::combined_reduction_t implementations (which are the top 2 in the implementation list) can't handle 0-dimensional inputs correctly. intel::ocl::ref_reduction_t seems to work correctly.

Copy link
Contributor

Choose a reason for hiding this comment

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

For the record, I've created #2469 which fixes these failures by handling the zero-dim cases "correctly".

@sgeor255 sgeor255 closed this Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:tests Codeowner: @oneapi-src/onednn-arch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants