From def6c8131b049f1944af6e04328c4eda6c1a0195 Mon Sep 17 00:00:00 2001 From: KKyang Date: Tue, 12 Nov 2024 03:27:40 +0800 Subject: [PATCH] Fix clang compilation error (#1301) --- library/src/amd_detail/rocblaslt/src/tensile_host.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/src/amd_detail/rocblaslt/src/tensile_host.cpp b/library/src/amd_detail/rocblaslt/src/tensile_host.cpp index 1b706a695f..c1bfef0dea 100644 --- a/library/src/amd_detail/rocblaslt/src/tensile_host.cpp +++ b/library/src/amd_detail/rocblaslt/src/tensile_host.cpp @@ -2862,7 +2862,7 @@ rocblaslt_status getBestSolutions(rocblaslt_handle handle, requestedAlgoCount); } - auto algoCount = min(requestedAlgoCount, solutions.size()); + auto algoCount = min(static_cast(requestedAlgoCount), solutions.size()); int returnAlgoCount = 0; heuristicResults.clear(); heuristicResults.resize(algoCount); @@ -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(requestedAlgoCount), solutions.size()); int returnAlgoCount = 0; heuristicResults.clear(); heuristicResults.resize(algoCount);