Patent ID: 7913254

Claim:
A method for mapping threads or tasks to CPUs in a parallel computer, wherein at least one parallel program is running in said parallel computer which starts tasks that includes threads, said method comprising the steps of: providing a mapping description at runtime, wherein said mapping description specifies a plurality of different mapping strategies of tasks or threads to CPUs; selecting a one of the different mapping strategies from the plurality of mapping strategies as a selected mapping; distributing said selected mapping to all tasks; determining for each task its assigned CPU based on selected mapping strategy; and calling a function from the task for binding each of said tasks to its assigned CPU; wherein said mapping description is laid down in a three-dimensional table, wherein each row corresponds to a different task identifier, each column represents a different thread identifier, and vertical levels describe various mapping strategies; and wherein selection of the selected mapping strategy is done manually or automatically by specifying a row in said three-dimensional table.