Skip to content

Commit

Permalink
Disable ublkcp CUB transform kernel for NVHPC (#2664)
Browse files Browse the repository at this point in the history
Fixes: #2402
  • Loading branch information
bernhardmgruber authored Nov 4, 2024
1 parent 9cc3cee commit 1ad4798
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions cub/cub/device/dispatch/dispatch_transform.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,19 @@ _CCCL_NV_DIAG_SUPPRESS(186)

#include <cassert>

#include <cooperative_groups.h>
#include <cooperative_groups/memcpy_async.h>
// cooperative groups do not support NVHPC yet
#ifndef _CCCL_CUDA_COMPILER_NVHPC
# include <cooperative_groups.h>
# include <cooperative_groups/memcpy_async.h>
#endif

CUB_NAMESPACE_BEGIN

// the ublkcp kernel needs PTX features that are only available and understood by CTK 12 and later
#if _CCCL_CUDACC_VER_MAJOR >= 12
// The ublkcp kernel needs PTX features that are only available and understood by nvcc >=12.
// Also, cooperative groups do not support NVHPC yet.
#if _CCCL_CUDACC_VER_MAJOR >= 12 && !defined(_CCCL_CUDA_COMPILER_NVHPC)
# define _CUB_HAS_TRANSFORM_UBLKCP
#endif // _CCCL_CUDACC_VER_MAJOR >= 12
#endif // _CCCL_CUDACC_VER_MAJOR >= 12 && !defined(_CCCL_CUDA_COMPILER_NVHPC)

namespace detail
{
Expand Down

0 comments on commit 1ad4798

Please sign in to comment.