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:amd: Update bnorm lambda capture #2506

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ShanoToni
Copy link
Contributor

Description

When compiling oneDNN with C++20, the current bnorm operator causes errors due to the lambda capturing this.
In C++20 implicit capture of this is an error, while in C++17 explicit capture will flag as a warning.

PR adds use of the already existing compiler workaround for the lambda capture WA_THIS_COPY_CAPTURE

Checklist

General

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

@ShanoToni ShanoToni requested a review from a team as a code owner January 24, 2025 17:02
@github-actions github-actions bot added the platform:gpu-amd Codeowner: @oneapi-src/onednn-gpu-amd label Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform:gpu-amd Codeowner: @oneapi-src/onednn-gpu-amd
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant