The Fujitsu VPP5000 supports the data parallel language High Performance Fo
rtran (HPF). The HPF Library gives a user access to intrinsic functions tha
t are particularly useful in a data parallel environment. The implementatio
n of HPF Library presents the challenge that all data types, all data kinds
, all array ranks and all input distributions need to be supported. The num
ber of specific functions runs into the billions so it is not feasible to c
ode each individually. This paper presents a method to solve this problem.
We have developed a library generator, which consists of templates and a te
mplate processor along with an interface to the HPF compiler. We show that
instead of implementing billions of specific functions, we only need to imp
lement five templates.