Rename FMT_NVHPC_VERSION to FMT_NVCOMPILER_VERSION
This commit is contained in:
parent
ffba4c74f0
commit
384dc2a4c5
@ -50,9 +50,10 @@
|
||||
#endif
|
||||
|
||||
#ifdef __NVCOMPILER
|
||||
# define FMT_NVHPC_VERSION (__NVCOMPILER_MAJOR__ * 100 + __NVCOMPILER_MINOR__)
|
||||
# define FMT_NVCOMPILER_VERSION \
|
||||
(__NVCOMPILER_MAJOR__ * 100 + __NVCOMPILER_MINOR__)
|
||||
#else
|
||||
# define FMT_NVHPC_VERSION 0
|
||||
# define FMT_NVCOMPILER_VERSION 0
|
||||
#endif
|
||||
|
||||
#ifdef __NVCC__
|
||||
@ -293,7 +294,7 @@
|
||||
|
||||
// Enable minimal optimizations for more compact code in debug mode.
|
||||
FMT_GCC_PRAGMA("GCC push_options")
|
||||
#if !defined(__OPTIMIZE__) && !FMT_NVHPC_VERSION
|
||||
#if !defined(__OPTIMIZE__) && !FMT_NVCOMPILER_VERSION
|
||||
FMT_GCC_PRAGMA("GCC optimize(\"Og\")")
|
||||
#endif
|
||||
|
||||
|
||||
@ -160,11 +160,11 @@ FMT_END_NAMESPACE
|
||||
// https://github.com/fmtlib/fmt/issues/2510.
|
||||
#ifndef __ICL
|
||||
# if FMT_HAS_BUILTIN(__builtin_ctz) || FMT_GCC_VERSION || \
|
||||
FMT_ICC_VERSION || FMT_NVHPC_VERSION
|
||||
FMT_ICC_VERSION || FMT_NVCOMPILER_VERSION
|
||||
# define FMT_BUILTIN_CTZ(n) __builtin_ctz(n)
|
||||
# endif
|
||||
# if FMT_HAS_BUILTIN(__builtin_ctzll) || FMT_GCC_VERSION || \
|
||||
FMT_ICC_VERSION || FMT_NVHPC_VERSION
|
||||
FMT_ICC_VERSION || FMT_NVCOMPILER_VERSION
|
||||
# define FMT_BUILTIN_CTZLL(n) __builtin_ctzll(n)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
Loading…
Reference in New Issue
Block a user