nvc currently miscompiles this, hopefully fixed in release 23.09

This commit is contained in:
Martin Kroeker
2023-07-29 11:48:38 +02:00
committed by GitHub
parent 2a62d2df96
commit fe54ee3d15

View File

@@ -2,7 +2,9 @@
#ifdef __NVCOMPILER
#define NVCOMPVERS ( __NVCOMPILER_MAJOR__ * 100 + __NVCOMPILER_MINOR__ )
#endif
#if (( defined(__GNUC__) && __GNUC__ > 6 && defined(__AVX512CD__)) || (defined(__clang__) && __clang_major__ >= 9)) || ( defined(__NVCOMPILER) && NVCOMPVERS >= 2203 )
#if (( defined(__GNUC__) && __GNUC__ > 6 && defined(__AVX512CD__)) || (defined(__clang__) && __clang_major__ >= 9)) || ( defined(__NVCOMPILER) && NVCOMPVERS >= 2309 )
#if (!(defined(__NVCOMPILER) && NVCOMPVERS < 2309))
#define HAVE_CASUM_KERNEL 1
@@ -350,3 +352,4 @@ static FLOAT casum_kernel(BLASLONG n, FLOAT *x)
return sumf;
}
#endif
#endif