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

Automatically generate an overload w/o QueueId #17640

Merged
merged 20 commits into from
Feb 8, 2025
Merged

Conversation

ayerofieiev-tt
Copy link
Member

@ayerofieiev-tt ayerofieiev-tt commented Feb 6, 2025

Ticket

#10605

Problem description

This is an experiment aimed to reduce amount of code OP developers write.

What's changed

If an OP provides ::invoke which accepts QueueId as the first argument, decorator of a registered operation will handle invokes when queue_id is not provided by passing in the DefaultQueueId.

While a reduction in code, it comes at a cost of compilation time.
Besides that, the idea of passing queue_id into ops in this way is not something that I want to support.
This PR is opened to facilitate a conversation.

Checklist

Copy link
Contributor

@omilyutin-tt omilyutin-tt left a comment

Choose a reason for hiding this comment

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

+59 −1,440

This is amazing!

ttnn/cpp/ttnn/decorators.hpp Outdated Show resolved Hide resolved
ttnn/cpp/ttnn/decorators.hpp Outdated Show resolved Hide resolved
Copy link
Contributor

@ntarafdar ntarafdar left a comment

Choose a reason for hiding this comment

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

I love this, close to 1400 lines gone !

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.

9 participants