As I wrote in my last post, we focus on rather coarse-grained parallelization schemes and patterns. In our research group we developed AutoProfiler, a tool to detect parallelization potential from analyzing the runtime profile of a sequential application.
Also, our results tell us, that we detect most of the methods, that would be parallelized by an experienced developer in manual parallization process.
Today, I want to write something about how AutoProfiler reveals this.
In my post on parallelism of the future, I already stated, that a combination of static any dynamic approaches is the most promising way. So AutoProfiler start with the creation of a dynamic runtime profile. Specifically, AutoProfiler records indicators such as the number of times a method is being called, the runtime share of a method and so on. After that, a metric tries to map those indicators together with the actual indicator values to known parallel software design patterns.
One example. Let's say we have a method foo() that calls some other methods in its body, such as bar1(), bar2() and bar3(). These three methods use most of the runtime of foo(). For this specific example, AutoProfiler would come to the conclusion, that foo() is a the master ins a master/worker-pattern. The calls to bar1() to bar3() sould be made in parallel as they are the workers.
Of course, it's not as simple, as the control flow has to be seen in combination with the data flow. The method foo() might even be a whole pipeline with different pipeline stages, but I think, the main aspect of AutoProfiler comes clear to you.
If you know my blog you know that this is just one single piece of the puzzle - the big picture still is to bring all this together in one IDE. It's crucial to bring this info closer together and closer to the developer.
Greetings,
K!
Posts mit dem Label AutoProfiler werden angezeigt. Alle Posts anzeigen
Posts mit dem Label AutoProfiler werden angezeigt. Alle Posts anzeigen
Dienstag, 21. Dezember 2010
Dienstag, 23. November 2010
AutoProfiler - Mesuring method performance
Hello everybody,
explicit parallel constructs were great in the beginning of the multicore era, but now, where we're facing dozens of chips on a processor. This is not well suited anymore for general purpose applications.
We conducted studies in parallelizing sequential applications, reaching from fairly simple algorithms to general purpose-applications and learned, that the advantages of parallel computing relate to the degree of the parallelization scheme used when converting sequential to parallel code.
Of course, there is still the need to have an experienced developer dive deep into the code, analyze it and transform that to a parallel version - in other words: fine-grained explicit parallelization. Algorithmic parallelizations often profit from this scheme for example .
For general purpose applications though, it's a complete different story: Here, the focus rather lies on somewhat coarse-grained structures such as methods. Combining this aspect with object-oriented design, me and the fellow researchers Georgios Tournavitis et al. (University of Edinburgh) come to the same conclusion: A holistic approach to parallelization of general purpose applications begins with the detection of methods or blocks of coherent code.
Currently, we focus on developing an automated approach to analyzing sequential code in our research group. We developed a tool named "AutoProfiler", which extracts possibly interesting regions of code according to the runtime profile having been created and instrumented completely automatically. We see this tool as a first approach to detect software design patterns. In our evaluation, we used a benchmark set of over 20 fairly small algorithms and programs together with real-world applications having been parallelized manually such as a desktop search. We compared the results we got from AutoProfiler with the methods that have been touched in a manual parallelization process. We found, that in over 80% AutoProfiler proposes the correct methods. In other words: AutoProfiler is able to detect over 80% of those methods, that a programmer would want to parallelize - good news!
So, this proves us right - now we'll take the next step forward.
K!
explicit parallel constructs were great in the beginning of the multicore era, but now, where we're facing dozens of chips on a processor. This is not well suited anymore for general purpose applications.
We conducted studies in parallelizing sequential applications, reaching from fairly simple algorithms to general purpose-applications and learned, that the advantages of parallel computing relate to the degree of the parallelization scheme used when converting sequential to parallel code.
Of course, there is still the need to have an experienced developer dive deep into the code, analyze it and transform that to a parallel version - in other words: fine-grained explicit parallelization. Algorithmic parallelizations often profit from this scheme for example .
For general purpose applications though, it's a complete different story: Here, the focus rather lies on somewhat coarse-grained structures such as methods. Combining this aspect with object-oriented design, me and the fellow researchers Georgios Tournavitis et al. (University of Edinburgh) come to the same conclusion: A holistic approach to parallelization of general purpose applications begins with the detection of methods or blocks of coherent code.
Currently, we focus on developing an automated approach to analyzing sequential code in our research group. We developed a tool named "AutoProfiler", which extracts possibly interesting regions of code according to the runtime profile having been created and instrumented completely automatically. We see this tool as a first approach to detect software design patterns. In our evaluation, we used a benchmark set of over 20 fairly small algorithms and programs together with real-world applications having been parallelized manually such as a desktop search. We compared the results we got from AutoProfiler with the methods that have been touched in a manual parallelization process. We found, that in over 80% AutoProfiler proposes the correct methods. In other words: AutoProfiler is able to detect over 80% of those methods, that a programmer would want to parallelize - good news!
So, this proves us right - now we'll take the next step forward.
K!
Abonnieren
Posts (Atom)