Wider SIMD execution increases the arithmetic work represented by each instruction, but does not necessarily produce proportionally lower execution time. This paper compares GFortran and Intel \texttt{ifx} code generation for two single-threaded FP32 Fortran kernels on an Intel Tiger Lake processor: a dependency-sensitive inner product and an explicitly implemented native SGEMM. Scalar, AVX2, compiler-selected AVX-512, and explicitly requested 512-bit configurations were evaluated using repeated standalone timing, generated-assembly inspection, and Intel VTune Profiler measurements. For the inner product, GFortran widened the multiplication but performed horizontal reduction within each vector-loop iteration, yielding only a 1.05$\times$ AVX2 speedup and no material benefit from forced ZMM execution. In contrast, \texttt{ifx} generated independent partial accumulators and achieved a maximum speedup of 15.82$\times$. Native SGEMM exposed independent packed output updates and benefited more consistently from SIMD, reaching 4.38$\times$ with GFortran and 12.21$\times$ with \texttt{ifx}. IFX-AVX512-AUTO selected YMM arithmetic for both workloads despite targeting the AVX-512 architecture. Moreover, configurations with 100\% Vector Capacity Usage did not always produce the fewest clockticks or the lowest execution time. The results demonstrate that SIMD performance depends on the complete compiler-generated implementation, including accumulation structures, unrolling, register allocation, dynamic instruction count, and memory-hierarchy behavior, rather than nominal vector width alone.
翻译:暂无翻译