aboutsummaryrefslogtreecommitdiffstats
path: root/util/system
diff options
context:
space:
mode:
authordfyz <dfyz@yandex-team.com>2022-10-29 16:03:13 +0300
committerdfyz <dfyz@yandex-team.com>2022-10-29 16:03:13 +0300
commit8985a698521744e4065500f5945d44ca52f797a9 (patch)
treeff7d781a5f3109e28ba658bb2a81f163cbd64dcc /util/system
parent45b67d57b5cf073f8d2fa3350ff8f1156ff18e9a (diff)
downloadydb-8985a698521744e4065500f5945d44ca52f797a9.tar.gz
Remove a workaround for ancient CUDA versions
`#define noexcept throw()` is a questionable idea, since replacing `noexcept` with `throw()` in expressions such as `noexcept(true)` results in spectacular compiler errors. We stopped supporting CUDA 8 (and even CUDA 9) long ago, which means we can just get rid of the problematic define.
Diffstat (limited to 'util/system')
-rw-r--r--util/system/compiler.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/util/system/compiler.h b/util/system/compiler.h
index e7aa4eac38..c7b73ed51d 100644
--- a/util/system/compiler.h
+++ b/util/system/compiler.h
@@ -332,13 +332,6 @@ _YandexAbort();
#define Y_CUDA_AT_LEAST(x, y) 0
#endif
-// NVidia CUDA C++ Compiler did not know about noexcept keyword until version 9.0
-#if !Y_CUDA_AT_LEAST(9, 0)
- #if defined(__CUDACC__) && !defined(noexcept)
- #define noexcept throw()
- #endif
-#endif
-
#if defined(__GNUC__)
#define Y_COLD __attribute__((cold))
#define Y_LEAF __attribute__((leaf))