You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
template<int ORDER> intget_leading_dim(int dim1, int dim2)
@@ -379,8 +376,6 @@ template<int ORDER> int get_leading_dim(int dim1, int dim2)
379
376
380
377
template <typename T, int SRC, int TARGET, bool transpose, int DTYPE> voidtransform(cublasLtHandle_t ltHandle, T *A, T *out, int dim1, int dim2)
381
378
{
382
-
#ifdef NO_CUBLASLT
383
-
#else
384
379
cublasLtOrder_t orderA = get_order<SRC>();
385
380
cublasLtOrder_t orderOut = get_order<TARGET>();
386
381
int ldA = get_leading_dim<SRC>(dim1, dim2);
@@ -419,7 +414,6 @@ template <typename T, int SRC, int TARGET, bool transpose, int DTYPE> void trans
419
414
if (A_desc) checkCublasStatus(cublasLtMatrixLayoutDestroy(A_desc));
420
415
if (out_desc) checkCublasStatus(cublasLtMatrixLayoutDestroy(out_desc));
421
416
if (A2Out_desc) checkCublasStatus(cublasLtMatrixTransformDescDestroy(A2Out_desc));
422
-
#endif
423
417
}
424
418
425
419
template <int DTYPE_OUT, int SCALE_ROWS> intigemmlt(
@@ -513,9 +507,6 @@ template <int DTYPE_OUT, int SCALE_ROWS> int igemmlt(
513
507
514
508
template <int FORMATB, int DTYPE_OUT, int SCALE_ROWS> intigemmlt(cublasLtHandle_t ltHandle, int m, int n, int k, constint8_t *A, constint8_t *B, void *C, float *row_scale, int lda, int ldb, int ldc)
@@ -570,7 +561,6 @@ template <int FORMATB, int DTYPE_OUT, int SCALE_ROWS> int igemmlt(cublasLtHandle
570
561
printf("error detected");
571
562
572
563
return has_error;
573
-
#endif// NO_CUBLASLT
574
564
}
575
565
576
566
intfill_up_to_nearest_multiple(int value, int multiple)
@@ -681,10 +671,6 @@ template <int FORMAT, int TRANSPOSE> void transformRowToFormat(char * A, char *o
681
671
682
672
voidspmm_coo(cusparseHandle_t handle, int *A_rowidx, int *A_colidx, half *A_vals, int A_nnz, int A_rows, int A_cols, int B_cols, int ldb, half *B, int ldc, half* C, bool transposed_B)
683
673
{
684
-
685
-
#ifdef NO_CUBLASLT
686
-
#else
687
-
688
674
cusparseSpMatDescr_t descA;
689
675
cusparseDnMatDescr_t descB, descC;
690
676
@@ -731,7 +717,6 @@ void spmm_coo(cusparseHandle_t handle, int *A_rowidx, int *A_colidx, half *A_val
731
717
CHECK_CUSPARSE( cusparseDestroyDnMat(descB) );
732
718
CHECK_CUSPARSE( cusparseDestroyDnMat(descC) );
733
719
CUDA_CHECK_RETURN( cudaFree(dBuffer) );
734
-
#endif
735
720
}
736
721
737
722
template <typename T, int BITS> voidspmm_coo_very_sparse_naive(int *max_count, int *max_idx, int *offset_rowidx, int *rowidx, int *colidx, half *values, T *B, half *out, float *dequant_stats, int nnz_rows, int nnz, int rowsA, int rowsB, int colsB)
0 commit comments