When I run my threaded application (several threads calling Fortran subroutines that use MKL lapack function DGEMM), Im getting the "DGEMM parameter number x had an illegal value" where X could be 8, 10 ...and also 0! Im sure that Im not using shared memory among the DGEMM calls. Could be this a heap corruption? How can I figure out what is going on (only reproduced once in a thousand execution, for example)
Thanks in advance