-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the cmake option: onnxruntime_DEV_MODE (#13573)
1. Remove the cmake option onnxruntime_DEV_MODE and replace it with "--compile-no-warning-as-error" 2. Suppress some GSL warnings because now we treat nvcc diag warnings as errors
- Loading branch information
Showing
7 changed files
with
101 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/include/gsl/assert b/include/gsl/assert | ||
index a6012048..a5c216f8 100644 | ||
--- a/include/gsl/assert | ||
+++ b/include/gsl/assert | ||
@@ -48,7 +48,7 @@ | ||
#if defined(__clang__) | ||
#define GSL_SUPPRESS(x) [[gsl::suppress("x")]] | ||
#else | ||
-#if defined(_MSC_VER) && !defined(__INTEL_COMPILER) | ||
+#if defined(_MSC_VER) && !defined(__INTEL_COMPILER) && !defined(__NVCC__) | ||
#define GSL_SUPPRESS(x) [[gsl::suppress(x)]] | ||
#else | ||
#define GSL_SUPPRESS(x) | ||
diff --git a/include/gsl/byte b/include/gsl/byte | ||
index 9231340b..f92a91c9 100644 | ||
--- a/include/gsl/byte | ||
+++ b/include/gsl/byte | ||
@@ -24,7 +24,7 @@ | ||
#if defined(__clang__) | ||
#define GSL_SUPPRESS(x) [[gsl::suppress("x")]] | ||
#else | ||
-#if defined(_MSC_VER) && !defined(__INTEL_COMPILER) | ||
+#if defined(_MSC_VER) && !defined(__INTEL_COMPILER) && !defined(__NVCC__) | ||
#define GSL_SUPPRESS(x) [[gsl::suppress(x)]] | ||
#else | ||
#define GSL_SUPPRESS(x) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters