Set minimum matrix size for AmdBlas::gemm to 20 since it works incorrect for small sizes

This commit is contained in:
Alexander Karsakov
2014-08-12 18:02:29 +04:00
parent b4d3b34acf
commit 713ddb89bd
2 changed files with 6 additions and 4 deletions

View File

@@ -90,14 +90,15 @@ PARAM_TEST_CASE(Gemm,
void generateTestData()
{
Size ARoiSize = randomSize(1, MAX_VALUE);
// set minimum size to 20, since testing less sizes doesn't make sense
Size ARoiSize = randomSize(20, MAX_VALUE);
Border ABorder = randomBorder(0, use_roi ? MAX_VALUE : 0);
randomSubMat(A, A_roi, ARoiSize, ABorder, type, -11, 11);
if (atrans)
ARoiSize = Size(ARoiSize.height, ARoiSize.width);
Size BRoiSize = randomSize(1, MAX_VALUE);
Size BRoiSize = randomSize(20, MAX_VALUE);
if (btrans)
BRoiSize.width = ARoiSize.width;
else