Skip to content

Commit de15ad6

Browse files
committed
refine xpu build
1 parent 75f0fc8 commit de15ad6

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

patches/cub/cub/util_arch.cuh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,29 @@
3737
#include <cub/util_namespace.cuh>
3838
#include <cub/util_macro.cuh>
3939

40+
/**
41+
* \def CUB_NAMESPACE_BEGIN
42+
* This macro is used to open a `cub::` namespace block, along with any
43+
* enclosing namespaces requested by CUB_WRAPPED_NAMESPACE, etc.
44+
* This macro is defined by CUB and may not be overridden.
45+
*/
46+
#define CUB_NAMESPACE_BEGIN \
47+
CUB_NS_PREFIX \
48+
namespace cub \
49+
{
50+
51+
52+
/**
53+
* \def CUB_NAMESPACE_END
54+
* This macro is used to close a `cub::` namespace block, along with any
55+
* enclosing namespaces requested by CUB_WRAPPED_NAMESPACE, etc.
56+
* This macro is defined by CUB and may not be overridden.
57+
*/
58+
#define CUB_NAMESPACE_END \
59+
} /* end namespace cub */ \
60+
CUB_NS_POSTFIX
61+
62+
4063
CUB_NAMESPACE_BEGIN
4164

4265
#ifndef DOXYGEN_SHOULD_SKIP_THIS // Do not document

0 commit comments

Comments
 (0)