From 6c7b8be7079edc7473534861cfa853abd9ff6182 Mon Sep 17 00:00:00 2001 From: Allison Vacanti Date: Mon, 26 Jul 2021 21:20:37 -0400 Subject: [PATCH] Notify users that CUB_NS_QUALIFIER must be set when using other NS macros. --- cub/util_namespace.cuh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cub/util_namespace.cuh b/cub/util_namespace.cuh index b94f05e255..2a1bb38b4c 100644 --- a/cub/util_namespace.cuh +++ b/cub/util_namespace.cuh @@ -40,6 +40,12 @@ // version.cuh. #include "version.cuh" +// Prior to 1.13.1, only the PREFIX/POSTFIX macros were used. Notify users +// that they must now define the qualifier macro, too. +#if (defined(CUB_NS_PREFIX) || defined(CUB_NS_POSTFIX)) && !defined(CUB_NS_QUALIFIER) +#error CUB requires a definition of CUB_NS_QUALIFIER when CUB_NS_PREFIX/POSTFIX are defined. +#endif + /** * \def THRUST_CUB_WRAPPED_NAMESPACE * If defined, this value will be used as the name of a namespace that wraps the