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: generic: Fix dropout tests #2677

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

Conversation

s-Nick
Copy link
Contributor

@s-Nick s-Nick commented Feb 12, 2025

Description

The signature of dropout function doesn't respect arguments type it receives. Due to implicit casting, it doesn't appear as an issue but adding dropout to matmul would make it fails.
This patch fixes the issue.

To reproduce, run the following command on main:
./tests/benchdnn/benchdnn --mode-modifier=P --matmul --engine=gpu --dt=bf16:bf16:bf16 --stag=ab --dtag=ab --attr-dropout=0.5:12345678 100x1:1x1

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?

Bug fixes

  • Have you included information on how to reproduce the issue (either in a github issue or in this PR)?

@s-Nick s-Nick requested review from Rbiessy and AD2605 February 12, 2025 10:50
@s-Nick s-Nick requested a review from a team as a code owner February 12, 2025 10:50
@github-actions github-actions bot added the platform:gpu-generic Codeowner: @oneapi-src/onednn-gpu-generic label Feb 12, 2025
@s-Nick s-Nick changed the title gpu: generic: Fix dropout function signature to fix dropout tests gpu: generic: Fix dropout tests Feb 12, 2025
The signature of dropout function doesn't respect arguments type
it receives. Due to implicit casting, it doesn't appear as an issue
but adding dropout to matmul would make it fail.
This commit fixes the issue.

Signed-off-by: nscipione <[email protected]>
@s-Nick s-Nick force-pushed the fix_generic_matmul_dropout branch from 16e8f66 to 0ace8b9 Compare February 12, 2025 16:10
@s-Nick
Copy link
Contributor Author

s-Nick commented Feb 12, 2025

make test
disable test_device_cpu
disable build_vendor_intel
disable build_vendor_amd
enable arch_rtx

@s-Nick
Copy link
Contributor Author

s-Nick commented Feb 14, 2025

make test
disable device_cpu
enable device_gpu
enable thr_cuda
enable arch_rtx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform:gpu-generic Codeowner: @oneapi-src/onednn-gpu-generic
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants