[cpp]#include "mkl_lapack.h" #includevoid test() { #define NSIZE 20 #pragma omp parallel for for( int iLoop=0;iLoop<20;iLoop++){ MKL_Complex16 a[NSIZE][NSIZE]; for( int i=0;i .real=1; a .imag=0; }else{ a .real=0; a .imag=0; } } } int M = NSIZE; int N = NSIZE; int info; int ipvt[NSIZE]; zgetrf(&M, &N, (MKL_Complex16 *)a, &M, ipvt, &info); //std::cout << info << std::endl; } } int main(int argc, char * argv[]) { test(); return 0; } [/cpp]
Link Copied
For more complete information about compiler optimizations, see our Optimization Notice.