I'd like to request a Compaq extension to ALLOCATE which allows the programmer to specify the desired data alignment for the allocated array. For example,
ALLOCATE(bigarray(20000), ALIGN = 32)
the result of this command would be an array aligned on a 32-byte boundary. This little extension would save me massive headaches... :)
ALLOCATE(bigarray(20000), ALIGN = 32)
the result of this command would be an array aligned on a 32-byte boundary. This little extension would save me massive headaches... :)
链接已复制
2 回复数
I think this would be useful, too. When you're doing scatter-gather with streaming stores you need to align to cache lines or face a 2X loss of performance. Does CVF have an extension at the present time to force streaming stores via MOVNTQ?