Adding CUB Version Check
Bug
MODIFY
thrust/system/cuda/config.h
thrust/system/cuda/config.h
#define THRUST_CUB_NS_PREFIX namespace thrust { namespace cuda_cub {
#define THRUST_CUB_NS_POSTFIX } }
+#ifndef THRUST_IGNORE_CUB_VERSION_CHECK
+#include <thrust/version.h>
+#include <cub/version.cuh>
+#if THRUST_VERSION != CUB_VERSION
+#error The version of CUB in your include path is not compatible with this release of Thrust. Define THRUST_IGNORE_CUB_VERSION_CHECK to ignore this.
+#endif
+#endif

Adding CUB Version Check

Bug 2880957

Reviewed-by:  Bryce Adelstein Lelbach aka wash <brycelelbach@gmail.com>
Reviewed-by: Allison Vacanti <alliepiper16@gmail.com>