Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
RedHatAI
/
quantization
like
7
Follow
Red Hat AI
2.95k
kernel
License:
apache-2.0
Model card
Files
Files and versions
xet
Community
3
Copy to bucket
new
refs/pr/3
quantization
/
cub_helpers.h
danieldk
HF Staff
Sync updates for CUDA 13 compat
70da85f
7 months ago
Raw
Download with hf CLI
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