Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
kernels-community
/
gemm
like
0
Follow
kernels-community
244
Kernels
hip
Model card
Files
Files and versions
xet
Community
Use this model
main
gemm
/
include
/
gpu_libs.h
medmekk
HF Staff
Upload folder using huggingface_hub
92455fe
verified
2 months ago
raw
Copy download link
history
blame
contribute
delete
Safe
1.86 kB
#
ifdef
TEST_ON_CUDA
#
include
<mma.h>
#
include
<cuda_fp16.h>
#
include
<cuda_fp8.h>
namespace wmma = nvcuda::wmma;
#
define
LIB_CALL(call) \
do { \
cudaError_t err = call; \
if
(err != cudaSuccess) { \
abort(); \
} \
} while (0)
#
define
HOST_TYPE(x) cuda##x
#
else
#
ifndef
HIP_HEADERS__
#
include
<hip/hip_runtime.h>
#
include
<hip/hip_fp8.h>
#
include
<hip/hip_fp16.h>
#
include
<rocwmma/rocwmma.hpp>
#
define
HIP_HEADERS__
#
endif
namespace wmma = rocwmma;
#
define
LIB_CALL(call) \
do { \
hipError_t err = call; \
if
(err != hipSuccess) { \
abort(); \
} \
} while (0)
#
define
HOST_TYPE(x) hip##x
#
endif