Instructions to use kernels-community/gemm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use kernels-community/gemm with Kernels:
# !pip install kernels from kernels import get_kernel kernel = get_kernel("kernels-community/gemm") - Notebooks
- Google Colab
- Kaggle
File size: 295 Bytes
92455fe | 1 2 3 4 5 6 7 8 9 10 11 12 13 | #ifndef ARITHMETIC_H
#define ARITHMETIC_H
template <int x, int y> constexpr __device__ __host__ inline int exact_div() {
static_assert(x % y == 0);
static_assert(x >= y);
return x / y;
}
constexpr __device__ __host__ inline int ceil_div(int x, int y) { return (x + y - 1) / y; }
#endif
|