Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
RedHatAI
/
quantization
like
6
Follow
Red Hat AI
1.88k
kernel
License:
apache-2.0
Model card
Files
Files and versions
xet
Community
3
refs/pr/3
quantization
/
cub_helpers.h
danieldk
HF Staff
Sync updates for CUDA 13 compat
70da85f
21 days ago
raw
Copy download link
history
blame
416 Bytes
#
pragma
once
#
ifndef
USE_ROCM
#
include
<cub/cub.cuh>
#
if
CUB_VERSION >= 200800
#
include
<cuda/std/functional>
using CubAddOp = cuda::
std
::plus<>;
using CubMaxOp = cuda::maximum<>;
#
else
// if CUB_VERSION < 200800
using CubAddOp = cub::Sum;
using CubMaxOp = cub::Max;
#
endif
// CUB_VERSION
#
else
#
include
<hipcub/hipcub.hpp>
using CubAddOp = cub::Sum;
using CubMaxOp = cub::Max;
#
endif
// USE_ROCM