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

Commit

Permalink
Merge pull request #350 from allisonvacanti/missing_qualifier_macro_n…
Browse files Browse the repository at this point in the history
…otice

Notify users that CUB_NS_QUALIFIER must be set when using other NS macros
  • Loading branch information
alliepiper authored Jul 28, 2021
2 parents 253e2a6 + 6c7b8be commit 94a50bf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cub/util_namespace.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 94a50bf

Please sign in to comment.