Skip to content

Commit

Permalink
Fix clang compilation error (#1301)
Browse files Browse the repository at this point in the history
  • Loading branch information
KKyang authored Nov 11, 2024
1 parent a7b534b commit def6c81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/src/amd_detail/rocblaslt/src/tensile_host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2862,7 +2862,7 @@ rocblaslt_status getBestSolutions(rocblaslt_handle handle,
requestedAlgoCount);
}

auto algoCount = min(requestedAlgoCount, solutions.size());
auto algoCount = min(static_cast<size_t>(requestedAlgoCount), solutions.size());
int returnAlgoCount = 0;
heuristicResults.clear();
heuristicResults.resize(algoCount);
Expand All @@ -2886,7 +2886,7 @@ rocblaslt_status getBestSolutions(rocblaslt_handle handle,
auto solutions = library->findTopSolutionsGroupedGemm(
data->problem.gemms, *hardware, requestedAlgoCount);

auto algoCount = min(requestedAlgoCount, solutions.size());
auto algoCount = min(static_cast<size_t>(requestedAlgoCount), solutions.size());
int returnAlgoCount = 0;
heuristicResults.clear();
heuristicResults.resize(algoCount);
Expand Down

0 comments on commit def6c81

Please sign in to comment.