-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Remove the cmake option: onnxruntime_DEV_MODE #13573
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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)]] | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nvcc doesn't recognize this "gsl" attribute namespace. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi! I see how onnxruntime is probably the only GSL user to build it with nvcc, but on the other hand the patch is fairly small. Have you considered upstreaming it? |
||
| #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) | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct me if I'm wrong, but the patch is safe to apply even when building with CUDA support turned off? What do you think about applying it unconditionally instead, so that both cuda-ful and cuda-free builds are built from "identical" source code?