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

Guard windows definitions with "include guards" #606

Merged
merged 3 commits into from
Mar 29, 2024
Merged

Conversation

SamirDroubi
Copy link
Collaborator

@SamirDroubi SamirDroubi commented Mar 29, 2024

  • We need to define exo window structs within the headers we generate
    because those definition depend on the kernel.
  • However, this means that including multiple headers generated by Exo
    can cause a compilation error because of duplicate definitions.
  • This commit wraps those definitions with "include guards" to avoid
    such conflicts.

* We need to define exo window structs within the headers we generate
  because those definition depend on the kenrnel.
* However, this means that including multiple headers generated by Exo
  can cause a compilation error because of duplicate definitions.
* This commit wraps those definitions with "include guards" to avoid
  such conflicts.
@SamirDroubi
Copy link
Collaborator Author

This will break the BLAS codegen tests (the last step in the workflow), but we sure verify that it passes the build and correctness tests.

@codecov-commenter
Copy link

codecov-commenter commented Mar 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.66%. Comparing base (f768558) to head (649782f).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #606   +/-   ##
=======================================
  Coverage   86.66%   86.66%           
=======================================
  Files          91       91           
  Lines       21360    21362    +2     
=======================================
+ Hits        18511    18513    +2     
  Misses       2849     2849           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@SamirDroubi
Copy link
Collaborator Author

This will break the BLAS codegen tests (the last step in the workflow), but we sure verify that it passes the build and correctness tests.

Actually, it turns out we don't test the headers codegen there so the tests didn't fail.

Copy link
Collaborator

@skeqiqevian skeqiqevian left a comment

Choose a reason for hiding this comment

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

LGTM

@SamirDroubi SamirDroubi merged commit 773afdf into main Mar 29, 2024
7 checks passed
@SamirDroubi SamirDroubi deleted the guard-win-def branch March 29, 2024 19:16
yamaguchi1024 pushed a commit that referenced this pull request Apr 24, 2024
* We need to define exo window structs within the headers we generate
    because those definition depend on the kernel.
* However, this means that including multiple headers generated by Exo
   can cause a compilation error because of duplicate definitions.
* This commit wraps those definitions with "include guards" to avoid
   such conflicts.
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.

None yet

3 participants