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

Bump min cxx standard to 17 #303

Merged
merged 5 commits into from
Jan 11, 2024
Merged

Conversation

oandreeva-nv
Copy link
Contributor

@oandreeva-nv oandreeva-nv commented Dec 20, 2023

This PR is one of the series PRs to update Triton to C++17 standard.

Introduced logic: either set TRITON_MIN_CXX_STANDARD to 17 or use cached value. Later,TRITON_MIN_CXX_STANDARD is used to set min required standard through target_compile_features.

Note: target_compile_features sets minimum required CXX standard

During build if the default standard == min standard , -std=... flag is not printed
If, for example, min standard is higher than default, -std=... flag will be added (tested locally with setting
-DTRITON_MIN_CXX_STANDARD to 20)

@oandreeva-nv oandreeva-nv force-pushed the oandreeva_upgrade_cxx_standard_17 branch from 439a143 to 5d2f4e8 Compare January 10, 2024 01:59
@oandreeva-nv oandreeva-nv merged commit 46fb6dd into main Jan 11, 2024
1 check passed
@oandreeva-nv oandreeva-nv deleted the oandreeva_upgrade_cxx_standard_17 branch January 11, 2024 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants