Skip to content

Commit

Permalink
Use CUDA 11 cub when available (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
mphoward authored Apr 12, 2021
1 parent d54fe88 commit c9d75cd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions azplugins/MPCDReversePerturbationFlowGPU.cu
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@
#include <thrust/sort.h>
#include <thrust/device_vector.h>
#include <thrust/functional.h>

#if __CUDACC_VER_MAJOR__ >= 11
#include <cub/cub.cuh>
#else
#include "hoomd/extern/cub/cub/cub.cuh"
#endif

namespace azplugins
{
Expand Down
5 changes: 5 additions & 0 deletions azplugins/ParticleEvaporatorGPU.cu
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@
*/

#include "ParticleEvaporatorGPU.cuh"

#if __CUDACC_VER_MAJOR__ >= 11
#include <cub/cub.cuh>
#else
#include "hoomd/extern/cub/cub/cub.cuh"
#endif

namespace azplugins
{
Expand Down
5 changes: 5 additions & 0 deletions azplugins/ReversePerturbationFlowGPU.cu
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@
#include <thrust/sort.h>
#include <thrust/device_vector.h>
#include <thrust/functional.h>

#if __CUDACC_VER_MAJOR__ >= 11
#include <cub/cub.cuh>
#else
#include "hoomd/extern/cub/cub/cub.cuh"
#endif

namespace azplugins
{
Expand Down

0 comments on commit c9d75cd

Please sign in to comment.