Open jaredhoberock opened 4 years ago
Is the intent that it is actually #pragma simd
(which i believe under some compilers allows non-standard float behaviour) or should this example be change to the weaker form of #pragma ivdep
?
I'm not sure it matters a great deal for this example. As I recall, we've generally used #pragma simd
in examples rather than #pragma ivdep
because the former forces SIMD execution while the latter does not. Using #pragma omp simd
would be another option that is likely more portable across compilers.
While I don't think it matters a lot for this example, I also don't think we should do something that would forbid programmers from writing an executor using #pragma simd
if they're motivated to do so.
From Billy: