Intel® Advisor Help
User-defined functions in the loop body are preventing the compiler from vectorizing the loop
Inlining of user-defined functions is disabled by compiler option. To fix: When using the Ob or inline-level compiler option to control inline expansion, replace the 0 argument with the 1 argument to enable inlining when an inline keyword or attribute is specified or the 2 argument to enable inlining of any function at compiler discretion.
Read More:
Some user-defined function(s) are not vectorized or inlined by the compiler. To fix: Do one of the following:
Example:
#pragma omp declare simd int f (int x) { return x+1; } #pragma omp simd for (int k = 0; k < N; k++) { a[k] = f(k); }
Read More: