Closed pna961 closed 4 months ago
@pna961 What's your types of A, B, C? Is it possible to make a reproducer?
@j4yan ummm.....Problems already solved. Anyway, type_AB = CUDA_R_16F; type_C = CUDA_R_16F; computeType = CUSPARSE_COMPUTE_32F.
Actually, it's not the code that went wrong. It's because that I'm using pybind11 and forget to link libcusparseLt.so to the project.
Also because I included
@pna961 Good to know. We can close.
CHECK_CUSPARSE( cusparseLtMatmulDescriptorInit( handle.get(), &matmul, opA, opB, &matA, &matB, &matC, &matC, compute_type) ) Cry for help:when I use cuSPARSELt API to do 2:4 SPGEMM, the cusparseLtMatmulDescriptorInit always has errors as follows: "On entry to cusparseLtMatmulDescriptorInit() parameter number 9 (computeType) had an illegal value: (cusparseComputeType) UNKNOWN=(cusparseComputeType) 2". Strangely, when compute_type=CUSPARSE_COMPUTE_32F and no matter what type of A, B or C is, it's always the same error. I have already updated newest cuSPARSELt version(0.6.1). PS: I was implementing 2:4 spgemm plugins in TensorRT-LLM. The code is written in enqueue function.