Portable Hardware Locality - portable abstraction of hierarchical architectures