Skip to content

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

Merged
snnn merged 3 commits intomasterfrom
snnn/vs_cuda
Jun 2, 2021
Merged

Change CMAKE_CUDA_STANDARD to C++17 for Windows GPU build#7883
snnn merged 3 commits intomasterfrom
snnn/vs_cuda

Conversation

@snnn
Copy link
Contributor

@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

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
Contributor 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