Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions clients/include/testing_matmul.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,11 +376,11 @@ void testing_matmul(const Arguments& arg)
HIPBLAS_STATUS_SUCCESS);
}
// Get Heuristic results
hipblasLtMatmulHeuristicResult_t heuristicResult[1] = {0};
hipblasLtMatmulHeuristicResult_t heuristicResult[3] = {0};
int returnedAlgoCount = 0;
EXPECT_HIPBLAS_STATUS(
(hipblasLtMatmulAlgoGetHeuristic(
handle, matmul, matA, matB, matC, matD, pref, 1, heuristicResult, &returnedAlgoCount)),
handle, matmul, matA, matB, matC, matD, pref, 3, heuristicResult, &returnedAlgoCount)),
HIPBLAS_STATUS_SUCCESS);

if(arg.unit_check || arg.norm_check)
Expand Down
2 changes: 1 addition & 1 deletion library/src/amd_detail/rocblaslt/src/tensile_host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ getBestSolutions(RocblasltContractionProblem<Ti, To, Tc> prob,

auto solutions =
library->findTopSolutions(tensile_prob, *hardware, requestedAlgoCount);
*returnAlgoCount = std::max((int)solutions.size(), requestedAlgoCount);
*returnAlgoCount = std::min((int)solutions.size(), requestedAlgoCount);
for (size_t i = 0; i < *returnAlgoCount; i++) {
auto solution = solutions[i];
heuristicResultsArray[i].algo.data.ptr =
Expand Down