Abstract:
The invention relates to a method (500) for assigning a computational block of a software program to cores of a multi-processor system, the method (500) comprising: evaluating (501) a first number of available cores of a first type of the multi-processor system and a second number of available cores of a second type of the multi-processor system; determining (502) a first number of loops of the computational block for binding with the cores of the first type and a second number of loops of the computational block for binding with the cores of the second type; binding (503) the first number of loops with the cores of the first type and binding the second number of loops with the cores of the second type; and executing (504) the loops of the computational block according to the binding (503).
Abstract:
The invention relates to a method for compiling a source code to a program code, the method comprising: providing a pattern graph based on the source code, the pattern graph corresponding to an intermediate representation of the source code according to a set of rules in a first programming language, wherein the set of rules comprises a specific replacement rule directing a pattern graph to be replaced by a corresponding replacement graph assigned to the pattern graph, replacing the pattern graph by the replacement graph assigned to the pattern graph, and generating the program code based on the replacement graph.