Parallelware Analyzer is the first static code analyzer specializing in performance.
It provides actionable insights through optimization reports that help ensure best practices to speedup the code through parallel computing in vector, multicore and accelerator processors.
Performance Optimization Report
Parallelware Analyzer provides a performance optimization report with human-readable actionable items: recommendations, defects, remarks and opportunities for parallelization. The information is displayed at the function level and at the loop level, followed by a code coverage summary and a performance metrics summary. You can control the amount of detail to be displayed and you will get clear suggestions on what your next actions should be, no matter whether they correspond to code changes or further invocations of Parallelware Analyzer to dig into more information.
How does it impact the development workflow?
Parallelware Analyzer usage is similar to any other static code analysis tool. It provides several command-line tools that can be invoked by the programmer from the operating system terminal, by the Integrated Development Environment (IDE) upon modification and compilation of the source code, as well as by the Continuous Integration (CI) and Continuous Delivery (CD) frameworks that automate software testing.
As the first static code analyzer specializing in performance, Parallelware Analyzer helps following performance optimization common practice by the programmer. Boosting the performance of software is an iterative process guided by the identification of the performance bottlenecks and hotspots of the code. This process repeats until the performance requirements of the project are met. The integration of Parallelware Analyzer is as follows:
Set up Parallelware Analyzer to enable the analysis of large scale codes
Boost the performance focusing on the bottlenecks and hotspots
Consult the open catalog of actionable items specializing in performance
The actionable insights provided by Parallelware Analyzer will guide the developer on how to invoke the pwreport, pwcheck, pwloops, pwdirectives and pwtrainer tools in order to boost the performance of the code on vector, multicore and accelerator processors.
Check the step-by-step guide on how to use Parallelware Analyzer tools to speedup the matrix multiplication code.
How does it work internally?
Parallelware Analyzer advances the state of the art of static code analyzers in order to tackle the performance optimization problem. It provides several command-line tools and a graphical user interface that leverage the Parallelware Artificial Intelligence engine through the LIBPW Application Program Interface (API). Inside LIBPW, the Parallelware middle-end is responsible for the analysis of the source code and the Parallelware back-end is responsible for the rewriting of the source code using compiler directives specializing in parallel computing for vector, multicore and accelerator processors. In order to parse C/C++ and Fortran source codes, the Parallelware Generic Front-End defines the programming language subset to be supported by the LLVM compiler intermediate representation produced by the CLANG C/C++ compiler front-end and FLANG Fortran API.
The Parallelware middle-end advances the state-of-the-art in static code analyzers through a proprietary pattern-based Artificial Intelligence engine that takes the analysis of the source code to a new level. Existing tools fit into levels 1, 2 and 3. Typically, level 1 covers simple stylistic and code formatting issues only by using pattern-matching techniques, while level 2 exploits the classical data-flow analysis technology to detect semantic issues across all the potential execution paths of the code. Data-flow analysis is slow for real applications, requiring minutes or even hours to finish. Thus, level 3 combines data-flow with symbolic and interprocedural analyses in order to try to alleviate this performance problem. However, in practice it is still significantly slow for complex real codes.
Goals: Find stylistic issues, code formatting issues, duplicated code, and unused code.
Code conditions & Decision-making
Goals: Find reaching definitions, liveness analysis, definite assignment analysis, available expression, constant propagation.
Symbolic & Interprocedural
Goals: Find dead code, out-of-bound array indices, and buffer overflows.
Parallelware Analyzer goes beyond the state-of-the-art, defining one additional level 4 that enables deep source code analysis as required by performance optimization through vectorization, multi-threaded execution and offloading to accelerator processors. The architecture of the Parallelware Analyzer’s AI engine comprises three layers. The first layer is Code normalization, which abstracts away different variations of the implementation of a code. The second layer is called Classification of semantic patterns, which interprets the source code in terms of a set of semantic patterns specializing in performance and parallelism. And the third layer Pattern-based abstract reasoning uses the knowledge about semantic patterns to support key use cases of parallel programming in C/C++/Fortran targeting multicore CPUs and GPUs
Get started with Parallelware Analyzer
Subscribe to our newsletter and get all of our updates