Intel's pragma simd vs OpenMP's pragma omp simd
问题 The Intel compiler allows us to vectorize loops via #pragma simd for ( ... ) However, you also have the option to do this with OpenMP 4's directive: #pragma omp simd for ( ... ) Is there any difference between the two? 回答1: For all intents and purposes they should be identical. The difference is that the OpenMP 4.0 #pragma omp simd directive is portable and should work with other compilers that support OpenMP 4.0 as well as Intel's. Furthemore, there are several clauses in the OpenMP version