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

cpu: aarch64: Fix Threadpool not initializing issue causing test to fail. #2066

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

renato-arantes
Copy link
Contributor

@renato-arantes renato-arantes commented Aug 30, 2024

Description

Test cpu-tutorials-matmul-matmul-quantization-cpp is failing due to Threadpool not being initialised. This patch fixes the issue by executing the task on a single thread when Threadpool is unavailable. It is a response to the comment made by @mgouicem here.

The error can be reproduced executing:

DNNL_VERBOSE=1 ./examples/cpu-tutorials-matmul-matmul-quantization-cpp

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)?

Test cpu-tutorials-matmul-matmul-quantization-cpp is failing due to
Threadpool not being initialised. This patch fixes the issue by
executing the task on a single thread when Threadpool is unavailable.

Change-Id: Id20f445ac82a66b696082491507e4e16ac142850
Signed-off-by: Renato Arantes <renato.arantes@arm.com>
@renato-arantes renato-arantes requested a review from a team as a code owner August 30, 2024 09:54
@renato-arantes renato-arantes changed the title cpu:aarch64 Fix Threadpool not initializing issue causing test to fail. cpu: aarch64: Fix Threadpool not initializing issue causing test to fail. Aug 30, 2024
Copy link
Contributor

@theComputeKid theComputeKid left a comment

Choose a reason for hiding this comment

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

Reviewed internally. Good catch with the issue.

@theComputeKid theComputeKid added this to the v3.6 milestone Aug 30, 2024
@github-actions github-actions bot added the platform:cpu-aarch64 Codeowner: @oneapi-src/onednn-cpu-aarch64 label Aug 30, 2024
@dzarukin dzarukin merged commit 3292be7 into uxlfoundation:main Sep 3, 2024
11 checks passed
theComputeKid pushed a commit to theComputeKid/oneDNN that referenced this pull request Sep 16, 2024
…ail (uxlfoundation#2066)

Signed-off-by: Renato Arantes <renato.arantes@arm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform:cpu-aarch64 Codeowner: @oneapi-src/onednn-cpu-aarch64
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants