Skip to content

Make Dispatcher::backendFallbackKernels_ an array#30340

Closed
smessmer wants to merge 2 commits intogh/smessmer/122/basefrom
gh/smessmer/122/head
Closed

Make Dispatcher::backendFallbackKernels_ an array#30340
smessmer wants to merge 2 commits intogh/smessmer/122/basefrom
gh/smessmer/122/head

Conversation

@smessmer
Copy link
Contributor

@smessmer smessmer commented Nov 22, 2019

Stack from ghstack:

We already made OperatorEntry::dispatchTable_ an array to be able to avoid the concurrency primitives there,
but Dispatcher::backendFallbackKernels_ has the same issue. Let's make it a table too.

Since there is some code duplication here, we also factor out the concept of a KernelFunctionTable to be used in both places.

Differential Revision: D18663426

We already made OperatorEntry::dispatchTable_ an array to be able to avoid the concurrency primitives there,
but Dispatcher::backendFallbackKernels_ has the same issue. Let's make it a table too.

Since there is some code duplication here, we also factor out the concept of a KernelFunctionTable to be used in both places.

Differential Revision: [D18663426](https://our.internmc.facebook.com/intern/diff/D18663426/)

[ghstack-poisoned]
smessmer added a commit that referenced this pull request Nov 22, 2019
We already made OperatorEntry::dispatchTable_ an array to be able to avoid the concurrency primitives there,
but Dispatcher::backendFallbackKernels_ has the same issue. Let's make it a table too.

Since there is some code duplication here, we also factor out the concept of a KernelFunctionTable to be used in both places.

Differential Revision: [D18663426](https://our.internmc.facebook.com/intern/diff/D18663426/)

ghstack-source-id: 94449179
Pull Request resolved: #30340
@smessmer smessmer requested a review from resistor November 22, 2019 20:54
We already made OperatorEntry::dispatchTable_ an array to be able to avoid the concurrency primitives there,
but Dispatcher::backendFallbackKernels_ has the same issue. Let's make it a table too.

Since there is some code duplication here, we also factor out the concept of a KernelFunctionTable to be used in both places.

Differential Revision: [D18663426](https://our.internmc.facebook.com/intern/diff/D18663426/)

[ghstack-poisoned]
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.

2 participants