Skip to content

Commit

Permalink
zgemv: Add a workaround for OpenMathLib#746
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromerobert committed Jan 21, 2016
1 parent 2f77aba commit 72308e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion interface/zgemv.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,9 @@ void CNAME(enum CBLAS_ORDER order,
// for alignment
buffer_size = (buffer_size + 3) & ~3;
STACK_ALLOC(buffer_size, FLOAT, buffer);

if(trans != CblasNoTrans)
// cgemv_t.S return NaN if there are NaN or Inf in the buffer (see bug #746)
memset(buffer, 0, sizeof(FLOAT) * buffer_size);
#ifdef SMP

nthreads_max = num_cpu_avail(2);
Expand Down

0 comments on commit 72308e9

Please sign in to comment.