Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Commit 45e946d

Browse files
committed
Notify users that CUB_NS_QUALIFIER must be set when using other NS macros.
1 parent 2e00316 commit 45e946d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cub/util_namespace.cuh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@
4040
// version.cuh.
4141
#include "version.cuh"
4242

43+
// Prior to 1.13.1, only the PREFIX/POSTFIX macros were used. Notify users
44+
// that they must now define the qualifier macro, too.
45+
#if (defined(CUB_NS_PREFIX) || defined(CUB_NS_POSTFIX)) && !defined(CUB_NS_QUALIFIER)
46+
#error CUB requires a definition of CUB_NS_QUALIFIER when CUB_NS_PREFIX/POSTFIX are defined.
47+
#endif
48+
4349
/**
4450
* \def THRUST_CUB_WRAPPED_NAMESPACE
4551
* If defined, this value will be used as the name of a namespace that wraps the

0 commit comments

Comments
 (0)