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

Add the Tofino model source code as a package in the open P4Studio #65

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

fruffy
Copy link
Contributor

@fruffy fruffy commented Feb 3, 2025

  • Compile on Ubuntu 20.04 and 22.04.
  • Use the generated binary instead of the available binary.
  • Add an option to disable model building and just use the latest binary.
  • Polish (Remove unnecessary code)

@jafingerhut
Copy link
Contributor

"Files changed 5000+" Now there is a thing you don't see in a Github PR every day :-)

// __LINE__,
// port_handle,
// port_lane_list,
// status);
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you want to merge this PR with this code commented out? Or perhaps wrap them all in an #ifdef SOME_NEW_SYMBOL_NAME with the same symbol name as each other, to make them easier to grep and find later when someone wants to update all of these calls? I guess marking them all with an identical unique string in a comment works for that, too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will remove these changes later. But I need them to build on Ubuntu 24.04, which is the distribution I am currently using.

The problem is that this code doesn't compile with newer version of GCC/CLang, which enforce the C++ standard correctly.

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