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

Don't use designated initializers in CuptiPCSampling.cpp as it relates to c++20 #5291

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

Conversation

anmyachev
Copy link
Contributor

@anmyachev anmyachev commented Nov 29, 2024

Hi @Jokeren,

these changes relates to your PR: #4674, so I would like to ask if this was done on purpose? (considering that the project declares support for the c++17 standard).

I discovered this while trying to compile proton using MSVC. It looked like this:
\CuptiPCSampling.cpp(18): error C7555: use of designated initializers requires at least '/std:c++20'.

This might also be a good opportunity to ask you about your plans to transition Triton to с++20.

.cubinSize = size,
.cubin = cubin,
.cubinCrc = 0,
/*size=*/CUpti_GetCubinCrcParamsSize,
Copy link
Contributor

@Jokeren Jokeren Nov 30, 2024

Choose a reason for hiding this comment

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

The change is fine to me but I would like all the assignment comments to be changed to

/*variable name=*/

by adding an equal sign

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.

2 participants