Download cuda_utils.h from RedHatAI/quantization: direct link, hf CLI and curl.
- Browser
- Download file 1.41 kB
-
https://huggingface.co/RedHatAI/quantization/resolve/refs%2Fpr%2F3/cuda_utils.h
- Command line
-
hf download hf://RedHatAI/quantization@refs/pr/3/cuda_utils.h
-
curl -L -o cuda_utils.h https://huggingface.co/RedHatAI/quantization/resolve/refs%2Fpr%2F3/cuda_utils.h
1.41 kB
| int64_t get_device_attribute(int64_t attribute, int64_t device_id); | |
| int64_t get_max_shared_memory_per_block_device_attribute(int64_t device_id); | |
| namespace cuda_utils { | |
| template <typename T> | |
| HOST_DEVICE_INLINE constexpr std::enable_if_t<std::is_integral_v<T>, T> | |
| ceil_div(T a, T b) { | |
| return (a + b - 1) / b; | |
| } | |
| }; // namespace cuda_utils |