After running several hours, the code with OpenMP or MKL would lock at
libiomp5md.dll!__kmp_suspend_64()
libiomp5md.dll!__kmp_barrier()
libiomp5md.dll!__kmp_join_barrier()
libiomp5md.dll!__kmp_join_call()
libiomp5md.dll!_vcomp_fork()
The code example with OpenMP could be:
for (long long n = 0; n < N; n++) // N=2^50
{
#pragma omp parallel for
for (int i = 0; i < Z; i++)
{
y[i] = a[i] * b[i];
}
}
Who can solve this problem completely?
Thank you very much.