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

[NativeCPU] Handle local args. #2512

Merged
merged 1 commit into from
Jan 8, 2025
Merged

Conversation

hvdijk
Copy link
Contributor

@hvdijk hvdijk commented Jan 2, 2025

Depending on the number of available threads, NativeCPU goes through different code paths for launching kernels. Some of these were missing the call to kernel.handleLocalArgs, resulting in local pointers being left as nullptr.

intel/llvm#16500

@hvdijk hvdijk requested a review from a team as a code owner January 2, 2025 12:05
@github-actions github-actions bot added the native-cpu Native CPU adapter specific issues label Jan 2, 2025
@hvdijk hvdijk force-pushed the handle-local-args branch 2 times, most recently from 129289a to 7f53239 Compare January 4, 2025 02:57
@coldav
Copy link
Contributor

coldav commented Jan 7, 2025

I think #2367 is a fuller version of this.

@hvdijk
Copy link
Contributor Author

hvdijk commented Jan 7, 2025

I think #2367 is a fuller version of this.

Agreed, if we can get that, we should. As discussed, since that will take a while to get reviewed, still going ahead with this as a short term solution.

@hvdijk hvdijk added ready to merge Added to PR's which are ready to merge and removed ready to merge Added to PR's which are ready to merge labels Jan 7, 2025
Depending on the number of available threads, NativeCPU goes through
different code paths for launching kernels. Some of these were missing
the call to kernel.handleLocalArgs, resulting in local pointers being
left as nullptr. Skip this code path for kernels that use local
pointers.
@hvdijk hvdijk force-pushed the handle-local-args branch from 7f53239 to 6972fbb Compare January 7, 2025 11:08
@hvdijk hvdijk added the ready to merge Added to PR's which are ready to merge label Jan 7, 2025
@kbenzie kbenzie merged commit 9d2a711 into oneapi-src:main Jan 8, 2025
73 checks passed
@hvdijk hvdijk deleted the handle-local-args branch January 8, 2025 18:25
martygrant pushed a commit to intel/llvm that referenced this pull request Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
native-cpu Native CPU adapter specific issues ready to merge Added to PR's which are ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants