mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-28 22:56:32 +00:00
The CUDA compiler doesn't support gsl::suppress so disable when __NVCC__ is defined. (#358)
This commit is contained in:
parent
c87929e949
commit
8b55596dfe
1 changed files with 2 additions and 2 deletions
|
|
@ -150,8 +150,8 @@ std::vector<std::string> GetStackTrace();
|
|||
} \
|
||||
} while (0)
|
||||
|
||||
// C++ Core Guideline check suppression
|
||||
#ifdef _MSC_VER
|
||||
// C++ Core Guideline check suppression.
|
||||
#if defined(_MSC_VER) && !defined(__NVCC__)
|
||||
#define GSL_SUPPRESS(tag) [[gsl::suppress(tag)]]
|
||||
#else
|
||||
#define GSL_SUPPRESS(tag)
|
||||
|
|
|
|||
Loading…
Reference in a new issue