Skip to content

[Runtime] ParallelFor skipping thread backend for unit extent - #16508

Merged
jinhongyii merged 1 commit into
apache:mainfrom
MasterJH5574:tvm-dev/2024-02-01-thread-backend-skip-1
Feb 2, 2024
Merged

jinhongyii merged 1 commit into
apache:mainfrom
MasterJH5574:tvm-dev/2024-02-01-thread-backend-skip-1

Conversation

@MasterJH5574

Copy link
Copy Markdown
Contributor

This PR skips launching multiple parallel threads in parallel_for_with_threading_backend when the input extent is 1, in which case we can just use the current thread to run the given function.

This PR skips launching multiple parallel threads in
`parallel_for_with_threading_backend` when the input
extent is 1, in which case we can just use the current
thread to run the given function.
@jinhongyii
jinhongyii merged commit b5f4410 into apache:main Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants