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

Commit

Permalink
Adding CUB Version Check
Browse files Browse the repository at this point in the history
Bug 2880957
  • Loading branch information
Balnian committed Mar 30, 2020
1 parent ebc90b0 commit 5911ab2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions thrust/system/cuda/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,10 @@
#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 Thrust version must match cub version exactly. Define THRUST_IGNORE_CUB_VERSION_CHECK to ignore.
#endif
#endif

0 comments on commit 5911ab2

Please sign in to comment.