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

Change CMAKE_CUDA_STANDARD to C++17 for Windows GPU build #7883

Merged
merged 3 commits into from
Jun 2, 2021
Merged

Conversation

snnn
Copy link
Member

@snnn snnn commented May 28, 2021

Description:

Otherwise it doesn't compile with the latest Visual Studio. Anyway, we will move to C++17 soon, so this change doesn't hurt.

Motivation and Context

  • Why is this change required? What problem does it solve?
  • If it fixes an open issue, please link to the issue here.

@snnn snnn requested a review from a team as a code owner May 28, 2021 20:47
@@ -18,8 +18,8 @@ constexpr const char* UpsampleModeCubic = "cubic";
// is a 4x4 matrix
const size_t CubicModeGridLength = 4;

using GetNearestPixelFunc = std::function<int64_t(float, bool)>;
using GetOriginalCoordinateFunc = std::function<float(float, float, float, float, float, float)>;
using GetNearestPixelFunc = int64_t(*)(float, bool);
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this change required for c++17?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, otherwise it doesn't build.

@snnn snnn merged commit 38ca0f4 into master Jun 2, 2021
@snnn snnn deleted the snnn/vs_cuda branch June 2, 2021 03:28
harshithapv added a commit that referenced this pull request Jun 15, 2021
* bump ORT version to 1.8.1

* Change CMAKE_CUDA_STANDARD to C++17 for Windows GPU build (#7883)

Co-authored-by: Changming Sun <chasun@microsoft.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.

3 participants