Skip to content

Make Windows build C++17 compliant#2833

Merged
anmyachev merged 11 commits into
mainfrom
amyachev/win-std
Nov 27, 2024
Merged

Make Windows build C++17 compliant#2833
anmyachev merged 11 commits into
mainfrom
amyachev/win-std

Conversation

@anmyachev
Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
…std:c++20'

Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
blockPointerStruct.getLoc(), blockPointerStruct, rewriter);
assert(elems.size() == 7 &&
"unexpected number of values unpacked from a block pointer");
BlockPointerValues values{
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This code was according to c++20 standard.

This reverts commit 462bbf9.
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
@anmyachev anmyachev changed the title Windows Debug Make Windows build C++17 compliant Nov 26, 2024
@anmyachev anmyachev linked an issue Nov 26, 2024 that may be closed by this pull request
Comment thread CMakeLists.txt
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_C_FLAGS_TRITONRELBUILDWITHASSERTS "/Zi /RTC1 /bigobj /Zc:preprocessor")
set(CMAKE_CXX_FLAGS_TRITONRELBUILDWITHASSERTS "/Zi /RTC1 /bigobj /Zc:preprocessor")
set(CMAKE_C_FLAGS_TRITONRELBUILDWITHASSERTS "/Zi /RTC1 /bigobj /Zc:preprocessor /permissive-")
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@anmyachev anmyachev requested review from gshimansky, pbchekin and whitneywhtsang and removed request for gshimansky November 26, 2024 22:21
@anmyachev anmyachev marked this pull request as ready for review November 26, 2024 22:21
Comment thread third_party/intel/lib/TritonIntelGPUToLLVM/LoadStoreOpToLLVM.cpp Outdated
Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
Copy link
Copy Markdown
Contributor

@whitneywhtsang whitneywhtsang left a comment

Choose a reason for hiding this comment

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

Do you know if upstream is opened to changing to C++20 compliant?

@anmyachev
Copy link
Copy Markdown
Contributor Author

Do you know if upstream is opened to changing to C++20 compliant?

I don't know, it seems to me that there is a connection with PyTorch, which still uses c++17 standard. I suppose that as soon as it updates the standard, Triton will do the same.

Copy link
Copy Markdown
Contributor

@whitneywhtsang whitneywhtsang left a comment

Choose a reason for hiding this comment

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

Adding Victor as a reviewer to see if he has any other ideas, otherwise this change LGTM.

Comment thread third_party/intel/lib/TritonIntelGPUToLLVM/LoadStoreOpToLLVM.cpp Outdated
@victor-eds
Copy link
Copy Markdown

LGTM but NIT.

Comment thread third_party/intel/lib/TritonIntelGPUToLLVM/LoadStoreOpToLLVM.cpp Outdated
Co-authored-by: Victor Perez <victor.perez@codeplay.com>
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.

Make Windows build C++17 compliant

4 participants