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

#16339: parameterize dispatch_constants #16355

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nhuang-tt
Copy link
Member

@nhuang-tt nhuang-tt commented Dec 30, 2024

Ticket

#16339

Problem description

Parameterize dispatch constants

What's changed

  • Add DispatchSettings

  • Add DispatchConstants. Struct with only static constexpr values. Later to remove those values from dispatch_constants which is doing memory/address layout calculations

  • Put align methods into helper file

  • Some namespace pollution reduced

Checklist

@nhuang-tt nhuang-tt force-pushed the nhuang/parameterize-fd branch 2 times, most recently from 667bf31 to f4ecd39 Compare December 30, 2024 21:42
- Add DispatchSettings

- Add DispatchConstants. Struct with only static constexpr
  values. Later to remove those values from dispatch_constants
  which is doing memory/address layout calculations

- Put align methods into helper file

- Some namespace pollution reduced
@nhuang-tt nhuang-tt force-pushed the nhuang/parameterize-fd branch from f4ecd39 to 26c2625 Compare December 30, 2024 22:04

// FIXME: Don't do this in header files
using namespace tt::tt_metal;

namespace tt::tt_metal {

// todo consider moving these to dispatch_addr_map
static constexpr uint32_t MAX_HUGEPAGE_SIZE = 1 << 30; // 1GB;
Copy link
Member Author

Choose a reason for hiding this comment

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

Moved these to DispatchConstants

@nhuang-tt nhuang-tt marked this pull request as ready for review December 31, 2024 15:24
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.

1 participant