A static approach to process mapping in massively parallel systems