Skip to content

Commit

Permalink
Increase paralellism threshold for matrix multiplication to avoid blo…
Browse files Browse the repository at this point in the history
…ck size errors
  • Loading branch information
Steve Kerrison committed Nov 24, 2011
1 parent 6be2b1f commit c915478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module_matrix/src/matrix.xc
Expand Up @@ -289,7 +289,7 @@ int matrix_mul(int A[], short dimA[2], int B[], short dimB[2],
}

/* Small matrix, use a single thread... */
if (dstSize < MATRIX_NTHREADS)
if (dstSize < MATRIX_NTHREADS * MATRIX_NTHREADS)
{
matrix_mul_worker_new(ptA,ptDimA,ptB,ptDimB,ptC,0,dimA[0] * dimB[1],ptRetval);
return retval[0];
Expand Down

0 comments on commit c915478

Please sign in to comment.