Skip to content

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

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