hipBLASLt icon indicating copy to clipboard operation
hipBLASLt copied to clipboard

hipblasLtMatmul api usage

Open Cydia2018 opened this issue 1 year ago • 2 comments

I would like to ask whether it is necessary to callhipblasLtMatmulAlgoGetHeuristic() to search algo before executing hipblasLtMatmul()? When I set the three parameters of hipblasLtMatmulAlgo_t *algo, void *workspace, size_t workspaceSizeInBytes of hipblasLtMatmul() to nullptr, nullptr, and 0 respectively, the segment fault occurred.

Cydia2018 avatar Sep 07 '23 12:09 Cydia2018

Yes, it is necessary. Here is the sample, https://github.com/ROCmSoftwarePlatform/hipBLASLt/blob/a103f27d91f0dcd3abdcf262c18a601172b2d3ea/clients/samples/gemm/sample_hipblaslt_gemm.cpp#L153

or you can use getAllAlgos to get the solutions. https://github.com/ROCmSoftwarePlatform/hipBLASLt/blob/a103f27d91f0dcd3abdcf262c18a601172b2d3ea/clients/samples/gemm_get_all_algos/sample_hipblaslt_gemm_get_all_algos.cpp#L103

KKyang avatar Sep 12 '23 03:09 KKyang

@Cydia2018 Do you still need assistance with this ticket? If not, please close the ticket? Thanks!

ppanchad-amd avatar Jul 09 '24 15:07 ppanchad-amd

Hi @Cydia2018. Hopefully your issue is resolved. Closing ticket. If you still need assistance, please feel free to re-open ticket. Thanks!

ppanchad-amd avatar Oct 23 '24 19:10 ppanchad-amd