Hello all,
We are developing some software in which it would be nice to group some
arrays into a derived type. However these arrays will be accessed in
critical regions of our code and I am therefore concerned about degrading
performance. A number of questions have come to mind. For example, are
arrays within a derived type typically stored in array element order? Does
the order in which the arrays are declared within the data type matter? If
so, should the array with the largest leading dimension be first?
The leading dimension of these arrays will be modest (~1024) and we will be
performing vector operations on them. Generally speaking, will compilers on
high performance (Cray, SGI, IBM) machines be able to vectorize/pipeline
operations with these arrays? While we intend for this code to be portable,
our target platform is the Cray X1 (so I'm hoping that Bill Long will
comment).
Thank you,
Jeffrey D. Pursel
Riverside Research Institute
212 502 1706
|