The MathWorks Gets Serious About Distributed Computing

By Michael Feldman

October 21, 2008

Scientific computing is quickly moving to parallel platforms and most software vendors are following suit. The MathWorks, which started parallelizing MATLAB and the company’s other numerical and scientific computing products four years ago, is now setting its sights on cluster and grid computing — and even computing in the cloud. With this in mind, MATLAB has recently been enhanced to work more intimately with distributed computing environments.

The enhancements consist of refinements to The MathWorks’ Parallel Computing Toolbox and MATLAB Distributed Computing Server that allow MATLAB sessions to run transparently over cluster and grid platforms. In addition, new MATLAB compiler and builder upgrades now let developers incorporate MATLAB libraries or functions into standalone executables, which can then be run on clusters or grids, themselves.

The latest MATLAB upgrade includes built-in support for the European EGEE grid (Enabling Grids for E-sciencE). This was accomplished by integrating the Parallel Computing Toolbox and MATLAB Distributed Computing Server with EGEE’s middleware, gLite. This enables MATLAB parallel applications to utilize the European grid infrastructure while running from the desktop. Since EGEE contains more than 70,000 CPUs spread across the continent, that represents almost unlimited computing power for an application.

It’s also now possible for MATLAB users to tap Amazon’s Elastic Compute Cloud. This requires a little more fiddling than hooking up to EGEE, since a system admin person will be required to deal with EC2 licensing and network issues. The MathWorks has written a technical paper on how to configure its products for EC2 and has a consulting service available to help you get started. And while EC2 is not specifically geared for scientific workloads, it might provide a useful platform for loosely-coupled, but highly-scalable technical computing applications.

Making MATLAB cluster- and grid-friendly solves the problems of two related groups of customers: desktop technical computing users and traditional HPC users. The desktop contingent — engineers, analysts, scientific algorithm developers — are already heavily invested in MATLAB products, but their challenges are growing larger. “The problem they have today is that their applications exceed the capacity of their desktop machines,” explains Silvina Grad-Freilich, manager of parallel computing and application deployment marketing at The MathWorks. In many cases they want to move up to HPC clusters, but would rather not leave their familiar MATLAB environment behind.

Traditional supercomputing users, on the other hand, are looking for ease of programming, but don’t want to give up the portability and scalability of the traditional MPI/C and Fortran model. “They want a simple technical computing environment so that they can focus on their science and not on the parallel programming aspects of the problem,” says Grad-Freilich.

Whether on a local cluster or a distributed grid, the underlying model is essentially the same: Use MATLAB parallel constructs and libraries to distribute workloads off the desktop. The way this is accomplished is via the MATLAB Distributed Computing Server, which manages remote MATLAB workers in a compute cluster. A remote worker is essentially the same as a desktop MATLAB process, but it operates remotely and runs its own process in parallel. In truth, multiple workers can also be run locally on the desktop if the user wants to take advantage of multiple CPU cores and doesn’t require the level of parallelism of a distributed solution.

To the MATLAB user, the execution of the workers is usually transparent. Their presence and location is managed underneath the covers and is determined by the hardware configuration visible to MATLAB. The configuration is selected by the user before beginning a MATLAB session if something other than the default setup is required. For example, if a user wants to override his default configuration — say his desktop — he/she could select a local cluster, a remote cluster, or even Amazon’s EC2. When the user initiates the session, any parallelism encountered in the software will try to take advantage of the hardware resources available.

There are multiple ways to inject parallelism into a MATLAB program depending on the nature of the problem and how hard the developers want to work. If they don’t want to make any extra effort, developers can just rely on the latest versions of the MATLAB libraries (the Optimization Toolbox and Genetic Algorithm and Direct Search Toolbox), which come pre-parallelized. No application code changes are needed. If developers are willing to make some minimal changes, they can employ MATLAB parallel constructs in their own application code to achieve additional parallelization. The parallel-for loop (parfor) can be used to execute a loop in parallel, while the new spmd (single program, multiple data) construct allows a developer to distribute data, such as large matrices or arrays, and their associated operations across a distributed system.

Application code and the pre-built MATLAB toolbox libraries are portable across desktops, clusters and grids, since the low-level parallelization is performed by the runtime system based on the configuration resources it sees. Even for a single-core CPU environment, MATLAB is smart enough to fall back to serial execution when it encounters parallel code. Developers can insist on parallelization by specifying a number of workers to employ for a particular instance of a parfor or spmd construct. In this case, if the workers are not available (not enough resources or not enough licenses), an error is thrown back to the application, which then must deal with it.

Another way The MathWorks is expanding MATLAB’s horizons is by leveraging this new distributed functionality for standalone applications. Using the MATLAB compiler and builder, developers can construct MATLAB executables or shared libraries, which can be hooked into C, Fortran, or even Java applications. The resulting programs can take advantage of MATLAB’s parallelization abilities while maintaining portability across different platforms.

For example, a quantitative analyst (quant) could develop a MATLAB-based financial model on his or her desktop and then incorporate that model into a portfolio manager’s high-level spreadsheet application. The idea is an old one in software engineering: build a repository of portable software libraries to be used for a wide range of applications. In this case, since the libraries can utilize MATLAB’s distributed computing capabilities, it becomes a path to parallelization.

There are no royalty fees associated with deployed MATLAB code. But the end user has to buy enough MATLAB worker licenses to support the level of parallelization required by the application. A worker license is checked out from the license manager when a worker starts up and is returned to the pool when the worker is shut down. The hardware that the application is being executed upon is only indirectly related to the number of licenses purchased. It’s up to the user how to map workers to hardware.

Loren Dean, director in the MATLAB development organization, says their general recommendation is to map one worker per socket. And although MATLAB supports multithreading to some extent, one computational thread per worker is probably optimal in most cases, especially if the application is memory bound. While in many cases, that means cores are going to be idle, the economics of distributed computing may allow for such inefficiencies. Says Dean: “When you look at the cloud and grid resources that are becoming available, for the most part, that’s all about multi-processing. So when you really want to have once piece of code that’s going to scale naturally, multi-processing just seems more logical.”

Subscribe to HPCwire's Weekly Update!

Be the most informed person in the room! Stay ahead of the tech trends with industy updates delivered to you every week!

Hedge Funds (with Supercomputing help) Rank First Among Investors

May 22, 2017

In case you didn’t know, The Quants Run Wall Street Now, or so says a headline in today’s Wall Street Journal. Quant-run hedge funds now control the largest Read more…

By John Russell

IBM, D-Wave Report Quantum Computing Advances

May 18, 2017

IBM said this week it has built and tested a pair of quantum computing processors, including a prototype of a commercial version. That progress follows an an Read more…

By George Leopold

PRACEdays 2017 Wraps Up in Barcelona

May 18, 2017

Barcelona has been absolutely lovely; the weather, the food, the people. I am, sadly, finishing my last day at PRACEdays 2017 with two sessions: an in-depth loo Read more…

By Kim McMahon

US, Europe, Japan Deepen Research Computing Partnership

May 18, 2017

On May 17, 2017, a ceremony was held during the PRACEdays 2017 conference in Barcelona to announce the memorandum of understanding (MOU) between PRACE in Europe Read more…

By Tiffany Trader

HPE Extreme Performance Solutions

Exploring the Three Models of Remote Visualization

The explosion of data and advancement of digital technologies are dramatically changing the way many companies do business. With the help of high performance computing (HPC) solutions and data analytics platforms, manufacturers are developing products faster, healthcare providers are improving patient care, and energy companies are improving planning, exploration, and production. Read more…

NSF, IARPA, and SRC Push into “Semiconductor Synthetic Biology” Computing

May 18, 2017

Research into how biological systems might be fashioned into computational technology has a long history with various DNA-based computing approaches explored. N Read more…

By John Russell

DOE’s HPC4Mfg Leads to Paper Manufacturing Improvement

May 17, 2017

Papermaking ranks third behind only petroleum refining and chemical production in terms of energy consumption. Recently, simulations made possible by the U.S. D Read more…

By John Russell

PRACEdays 2017: The start of a beautiful week in Barcelona

May 17, 2017

Touching down in Barcelona on Saturday afternoon, it was warm, sunny, and oh so Spanish. I was greeted at my hotel with a glass of Cava to sip and treated to a Read more…

By Kim McMahon

NSF Issues $60M RFP for “Towards a Leadership-Class” System

May 16, 2017

In case you missed it, the National Science Foundation issued the request for proposals (RFP) for the next ‘Towards a Leadership-Class Computing Facility – Read more…

By John Russell

Cray Offers Supercomputing as a Service, Targets Biotechs First

May 16, 2017

Leading supercomputer vendor Cray and datacenter/cloud provider the Markley Group today announced plans to jointly deliver supercomputing as a service. The init Read more…

By John Russell

HPE’s Memory-centric The Machine Coming into View, Opens ARMs to 3rd-party Developers

May 16, 2017

Announced three years ago, HPE’s The Machine is said to be the largest R&D program in the venerable company’s history, one that could be progressing tow Read more…

By Doug Black

What’s Up with Hyperion as It Transitions From IDC?

May 15, 2017

If you’re wondering what’s happening with Hyperion Research – formerly the IDC HPC group – apparently you are not alone, says Steve Conway, now senior V Read more…

By John Russell

Nvidia’s Mammoth Volta GPU Aims High for AI, HPC

May 10, 2017

At Nvidia's GPU Technology Conference (GTC17) in San Jose, Calif., this morning, CEO Jensen Huang announced the company's much-anticipated Volta architecture a Read more…

By Tiffany Trader

HPE Launches Servers, Services, and Collaboration at GTC

May 10, 2017

Hewlett Packard Enterprise (HPE) today launched a new liquid cooled GPU-driven Apollo platform based on SGI ICE architecture, a new collaboration with NVIDIA, a Read more…

By John Russell

IBM PowerAI Tools Aim to Ease Deep Learning Data Prep, Shorten Training 

May 10, 2017

A new set of GPU-powered AI software announced by IBM today brings automation to many of the tedious, time consuming and complex aspects of AI project on-rampin Read more…

By Doug Black

Bright Computing 8.0 Adds Azure, Expands Machine Learning Support

May 9, 2017

Bright Computing, long a prominent provider of cluster management tools for HPC, today released version 8.0 of Bright Cluster Manager and Bright OpenStack. The Read more…

By John Russell

Microsoft Azure Will Debut Pascal GPU Instances This Year

May 8, 2017

As Nvidia's GPU Technology Conference gets underway in San Jose, Calif., Microsoft today revealed plans to add Pascal-generation GPU horsepower to its Azure clo Read more…

By Tiffany Trader

Quantum Bits: D-Wave and VW; Google Quantum Lab; IBM Expands Access

March 21, 2017

For a technology that’s usually characterized as far off and in a distant galaxy, quantum computing has been steadily picking up steam. Just how close real-wo Read more…

By John Russell

Google Pulls Back the Covers on Its First Machine Learning Chip

April 6, 2017

This week Google released a report detailing the design and performance characteristics of the Tensor Processing Unit (TPU), its custom ASIC for the inference Read more…

By Tiffany Trader

Trump Budget Targets NIH, DOE, and EPA; No Mention of NSF

March 16, 2017

President Trump’s proposed U.S. fiscal 2018 budget issued today sharply cuts science spending while bolstering military spending as he promised during the cam Read more…

By John Russell

HPC Compiler Company PathScale Seeks Life Raft

March 23, 2017

HPCwire has learned that HPC compiler company PathScale has fallen on difficult times and is asking the community for help or actively seeking a buyer for its a Read more…

By Tiffany Trader

Nvidia Responds to Google TPU Benchmarking

April 10, 2017

Last week, Google reported that its custom ASIC Tensor Processing Unit (TPU) was 15-30x faster for inferencing workloads than Nvidia's K80 GPU (see our coverage Read more…

By Tiffany Trader

CPU-based Visualization Positions for Exascale Supercomputing

March 16, 2017

Since our first formal product releases of OSPRay and OpenSWR libraries in 2016, CPU-based Software Defined Visualization (SDVis) has achieved wide-spread adopt Read more…

By Jim Jeffers, Principal Engineer and Engineering Leader, Intel

TSUBAME3.0 Points to Future HPE Pascal-NVLink-OPA Server

February 17, 2017

Since our initial coverage of the TSUBAME3.0 supercomputer yesterday, more details have come to light on this innovative project. Of particular interest is a ne Read more…

By Tiffany Trader

Facebook Open Sources Caffe2; Nvidia, Intel Rush to Optimize

April 18, 2017

From its F8 developer conference in San Jose, Calif., today, Facebook announced Caffe2, a new open-source, cross-platform framework for deep learning. Caffe2 is Read more…

By Tiffany Trader

Leading Solution Providers

Nvidia’s Mammoth Volta GPU Aims High for AI, HPC

May 10, 2017

At Nvidia's GPU Technology Conference (GTC17) in San Jose, Calif., this morning, CEO Jensen Huang announced the company's much-anticipated Volta architecture a Read more…

By Tiffany Trader

Tokyo Tech’s TSUBAME3.0 Will Be First HPE-SGI Super

February 16, 2017

In a press event Friday afternoon local time in Japan, Tokyo Institute of Technology (Tokyo Tech) announced its plans for the TSUBAME3.0 supercomputer, which w Read more…

By Tiffany Trader

Is Liquid Cooling Ready to Go Mainstream?

February 13, 2017

Lost in the frenzy of SC16 was a substantial rise in the number of vendors showing server oriented liquid cooling technologies. Three decades ago liquid cooling Read more…

By Steve Campbell

MIT Mathematician Spins Up 220,000-Core Google Compute Cluster

April 21, 2017

On Thursday, Google announced that MIT math professor and computational number theorist Andrew V. Sutherland had set a record for the largest Google Compute Eng Read more…

By Tiffany Trader

IBM Wants to be “Red Hat” of Deep Learning

January 26, 2017

IBM today announced the addition of TensorFlow and Chainer deep learning frameworks to its PowerAI suite of deep learning tools, which already includes popular Read more…

By John Russell

HPC Technique Propels Deep Learning at Scale

February 21, 2017

Researchers from Baidu's Silicon Valley AI Lab (SVAIL) have adapted a well-known HPC communication technique to boost the speed and scale of their neural networ Read more…

By Tiffany Trader

US Supercomputing Leaders Tackle the China Question

March 15, 2017

As China continues to prove its supercomputing mettle via the Top500 list and the forward march of its ambitious plans to stand up an exascale machine by 2020, Read more…

By Tiffany Trader

DOE Supercomputer Achieves Record 45-Qubit Quantum Simulation

April 13, 2017

In order to simulate larger and larger quantum systems and usher in an age of "quantum supremacy," researchers are stretching the limits of today's most advance Read more…

By Tiffany Trader

  • arrow
  • Click Here for More Headlines
  • arrow
Share This