Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Benchmarks: micro benchmarks - add int8 support for cublaslt function #574

Merged
merged 5 commits into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
format
  • Loading branch information
yukirora committed Nov 17, 2023
commit 48215b3a90ebb26f97b10e255291bfa5f5e3b6a1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ using fp16 = half;
using bf16 = nv_bfloat16;
using fp8e4m3 = __nv_fp8_e4m3;
using fp8e5m2 = __nv_fp8_e5m2;
using int8= int8_t;
using int8 = int8_t;

struct Args {
int m = 16;
Expand Down Expand Up @@ -85,7 +85,7 @@ template <typename T> cudaDataType_t get_datatype() {
return CUDA_R_8F_E4M3;
if (std::is_same<T, fp8e5m2>::value)
return CUDA_R_8F_E5M2;
if (std:: is_same<T, int8>::value)
if (std::is_same<T, int8>::value)
return CUDA_R_8I;
throw std::invalid_argument("Unknown type");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void cublasLtGemm::Setup(int m, int n, int k, int batch, int lda, int ldb, int l
gemm_compute_type = CUBLAS_COMPUTE_32F;
if (a_type == CUDA_R_64F || b_type == CUDA_R_64F)
gemm_compute_type = CUBLAS_COMPUTE_64F;
if (a_type==CUDA_R_8I)
if (a_type == CUDA_R_8I)
gemm_compute_type = CUBLAS_COMPUTE_32I;

cublasLtMatmulDesc_t op_desc = nullptr;
Expand Down
Loading