Skip to content

Commit

Permalink
Drop cub::ValueCache (#3346)
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber authored Jan 10, 2025
1 parent 094b9e8 commit 9a04941
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions cub/cub/util_device.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -130,24 +130,6 @@ CUB_RUNTIME_FUNCTION inline int DeviceCountUncached()
return count;
}

/**
* \brief Cache for an arbitrary value produced by a nullary function.
* deprecated [Since 2.6.0]
*/
template <typename T, T (*Function)()>
struct CCCL_DEPRECATED ValueCache
{
T const value;

/**
* \brief Call the nullary function to produce the value and construct the
* cache.
*/
_CCCL_HOST inline ValueCache()
: value(Function())
{}
};

// Host code. This is a separate function to avoid defining a local static in a host/device function.
_CCCL_HOST inline int DeviceCountCachedValue()
{
Expand Down

0 comments on commit 9a04941

Please sign in to comment.