iSGTW - International Science Grid This Week
iSGTW - International Science Grid This Week

Home > iSGTW 31 March 2010 > Feature - Scientific software goes parallel

Feature - Scientific software goes parallel

Most scientists do their data analysis using commercial software over which they have little control. Yet, to take advantage of the multi-core processors new computers ship with, algorithms must be designed to run in parallel.

Luckily, many of the more popular scientific software packages have gone parallel. Some even offer versions or toolboxes that manage clusters or grids. iSGTW scoured the world of scientific software for the latest information on parallelization in scientific software.

Researchers at Cornell University used Windows HPC Server 2008 in conjunction with MATLAB to investigate turbulent combustion systems. Image courtesy Microsoft.


?More than 50 percent of customers cite lack of skills and complexity of integrated cluster solutions as inhibiting to adoption,? said Kyril Faenov, general manager of Microsoft?s technical computing group. ?On the other hand, we know that more than 50 percent of workstation users today have said that they have problems that don?t fit in their workstations and that require large-scale infrastructure, but only 10 percent of them use HPC.?

Since virtually all Windows machines already have a copy of Excel, the HPC team at Microsoft views Excel as the perfect place to start researchers on parallel computing, according to Faenov.

?We have a broad set of researchers that work for engineering firms for example and they want to look at the data coming in from their labs,? Faenov said. ?Some of them choose to very quickly whip up their models in Excel to do some simple statistical analysis. But then what you want to avoid is having to recode it.?

The latest version of Excel will automatically make use of multiple cores, but for more advanced scheduling, it should be used in conjunction with Windows HPC Server 2008 R2, which can distribute jobs across multiple workstations or even clusters, spawning new instances of Excel as needed.

Many of the algorithms scientists use on a regular basis, such as monte carlos, come in libraries which must be purchased separately.

A set of screenshots from Maple 13.

Image courtesy of MapleSoft.


Maple introduced their Grid Computing Toolbox in late 2007. The GCT allows Maple users to run computations on large networks, multi-node supercomputers, or the more commonplace multi-core computers widely available on the market.

Maple 13, which was released 27 April 2009, provides a multithreaded programming model called The Task Programming Model.

The Task Programming Model was originally inspired by the MIT Supercomputing Technologies Group?s Cilk project and Intel?s Threaded Building Blocks.

Parallelization is an ongoing area of development for Maple.

?Our goal for the future is to keep expanding the set of operations where multi-processing happens automatically and without further user intervention, while always allowing an expert user to override the defaults and interact with Maple's parallel toolkits at a low level in order to achieve the best possible performance,? said Laurent Bernardin, executive vice president of research and development at Maplesoft.

A screenshot from a promotional demonstration video for Mathematica 7.

Image courtesy of Wolfram Research.


Mathematica first dipped a toe in the parallelization pool in 2005, when they made a lot of the intensive numerical capabilities such as statistics and matrix operations automatically multi-thread over multiple local CPUs or multi-core CPUs.

The most recent version of Mathematica, which was released in 2008, introduced user-specified parallelization tools, and an extensible license model for additional computation engines.

?The idea is that a user can specify within their own programs that a particular task is to be split into parts and distributed over subordinate instances of Mathematica to be computed in parallel,? said Jon McLoone, who is currently director of business development at Wolfram Research, the makers of Mathematica. ?Then the results [are] returned and combined in the controlling Mathematica.?

Mathematica developers have tried to automate as much as possible, in as many ways as possible.

?So, for example, I can write code that says effectively ?do the following operation in parallel on 1000 data points? but not have to specify how many parts to break it into, or where the subordinate Mathematicas are or how many of them there are,? McLoone explained.

That way, whether the software is run on a single multi-core machine, or in a lab with all of the computers networked together, Mathematica will automatically split the problem into the correct number of parts and distribute them ? as long as the user has the right Mathematica licenses.

Other kinds of automation incorporated into Mathematica include automatically distributing programs, restarting subordinates in the case of a failure, and discovering and acquiring remote computers. What next?

?There are a few more well-understood parallel algorithms that are yet to be implemented, but also many algorithmic areas where no-one has ever really studied how one might parallelize in a robust and effective way,? McLoone said. ?The user-specified parallelization platform makes it easy for our developers to write parallel algorithms just as it does for end-users. It also means that many of the parallel algorithms that will be in future versions of Mathematica will also work over networked grids and clusters, not just on multi-core local hardware.?

Screenshots of the MATLAB development environment.

Image courtesy of The MathWorks.


The MathWorks? Parallel Computing Toolbox allows users to take advantage of multiprocessing on a multicore computer, while the MATLAB Distributed Computing Server extends that ability to larger pools of processors such as clusters.

A variety of MATLAB algorithms incorporate support for the use of parallel processing; these work in conjunction with the PCT and DCS.

?Users are looking to easily access the power of high performance computing resources, whether it be maximizing the multicore capabilities of their local desktops or using clusters and grids,? said Silvina Grad-Freilich, manager of parallel computing and application deployment marketing at The MathWorks. ?Parallel Computing Toolbox supports up to eight desktop cores, enabling users to leverage the increased hardware capabilities without requiring significant programming.?

Researchers can also use the Parallel Computing Toolbox to create their own programs.

?Parallel Computing Toolbox language constructs, such as spmd, simplify the development of data-intensive parallel applications,? Grad-Freilich said. ?With language features such as spmd, users solve large computationally- and data-intensive technical problems by making minimal to no code changes to their existing code.?

A data plot created using Stata 11.

Image courtesy of StataCorp.


As a statistical package, many of the operations in Stata require substantial computational power. That?s why a multiprocessing version that runs on up to 64 cores, called Stata/MP, was introduced in April of 2006.

?Stata/MP works by parallelizing the computations that underlie the commands,? said Vince Wiggins, vice president of scientific development at StataCorp. ?That means that Stata users do not have to change anything to obtain performance improvements.?

According to Wiggins, thanks to the three years of development they put into developing Stata/MP, many of their algorithms approach the theoretical limit of running twice as fast every time you double the number of cores.

?Because we implemented parallel algorithms and tuned the use of multiple processors, rather than rely on compiler switches, we were able to effectively parallelize more commands and approach theoretical performance limits for many commands,? Wiggins said.

Since then, they have tried using the new compiler switches that automatically provide multiprocessor support, with little success.

?Compared to our hand-rolled algorithms, the results were dismal,? Wiggins said. ?For statistical computations, compilers cannot adequately identify large code blocks that can be parallelized, and they clearly cannot automagically apply wholly different algorithms that are naturally parallelizeable.?

Stata also has an integrated matrix programming language called Mata. The Stata/MP version of Stata 11, which was released in July of 2009, included 109 parallelized functions in Mata.

It doesn?t stop there, either. ?We continue to parallelize new commands in Stata and new functions in Mata,? Wiggins said.

Screenshots of Statistica 9.

Image courtesy of StatSoft.


?We introduced this capability with the release of the server-based WebSTATISTICA solutions back in January 2004,? said Thomas Hill, the vice president of analytic solutions at StatSoft. ?In this architecture, instances of STATISTICA would run in parallel to support significant computational load.?

WebSTATISTICA is scalable, supporting multiple servers and intelligent fail-over (that is, requests for analyses will automatically be routed to available servers).

STATISTICA Version 9, the desktop version of the software, supports multithreading for most analytic tasks. These include all of the data mining algorithms such as classification and regression trees and stochastic gradient boosting. For true parallel processing, however, users will have to go with WebSTATISTICA.

What next? In addition to considering a possible move into the realms of cloud computing and software as a service, StatSoft will focus on improving integration between desktop and server-based computing, continuous development of efficient interfaces to STATISTICA analytic services to support automated scoring and analysis solutions.

- Miriam Boon, iSGTW


Share this page:

These are external Web sites and iSGTW cannot guarantee their security nor endorse their content.

 iSGTW 31 March 2010

Feature - Scientific software goes parallel

Opinion - Grid security vulnerabilities

Feature - Campus grids secret to productive grid sites

Link of the week - eScience and Google Summer of Code

Video of the Week - Monitoring with the fishes


Proposals due: Access to CESGA resources

Register for virtual conference CLOUD LAB '10

HPC 2010 Advanced Workshop in Cetraro, Italy

Call for applications: SuperComputing Camp

Jobs in grid


Enter your email address to subscribe to iSGTW.


 iSGTW Blog Watch

Keep up with the grid?s blogosphere

 Mark your calendar

March 2010

29-April 2, IEEE PerCom 2010

April 2010

6-8, IX DOSAR Workshop

11-15, SpringSim '10

12-16, EGEE User Forum

13-16, EuroSys 2010

13-14, HUBbub 2010


20-22, BioIT World Conference

May 2010

3-4, CCV 2010

10-12, DEISA-PRACE Symposium

More calendar items...

Footer INFSOM European Commission Department of Energy National?‚ Science?‚ Foundation RSSHeadlines?|?Site Map