[WIN] Fix error C7555: use of designated initializers requires at least '/std:c++20'#4889
Conversation
3b01905 to
f2b081d
Compare
…ast '/std:c++20'` Signed-off-by: Whitney Tsang <whitney.tsang@intel.com>
f2b081d to
28e67d0
Compare
etiotto
left a comment
There was a problem hiding this comment.
Can we simply change the std level to C++20 instead of changing the code ?
It is intentionally made Windows build C++17 compliant: #2837. |
|
trying to switch to 20 here, not sure about effects: #4891 |
@kwasd Do you know why the error is not reported on Linux? Note upstream set to C++17: https://github.com/triton-lang/triton/blob/main/CMakeLists.txt#L11. |
|
I have only an assumption: other compiler is not very strict about the standard. Something similar described here. |
|
It seems like on Linux it use |
By Anatoly
|
|
Triton doesn't have to use the same C++ std level that PyTorch uses. Using |
There's other C++20-related upstream PRs and discussions |
Fixes #4890