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

Commit

Permalink
Notify users that CUB_NS_QUALIFIER must be set when using other NS ma…
Browse files Browse the repository at this point in the history
…cros.
  • Loading branch information
alliepiper committed Jul 28, 2021
1 parent 2e00316 commit 45e946d
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 45e946d

Please sign in to comment.