What coders can learn from supercomputing

 

Connecting state and local government leaders

Software programmers could take advantage of techniques first developed in the high-performance computer community.

COULD SOFTWARE PROGRAMMERS TAKE ADVANTAGE of techniques first developed in the high-performance computer community? For some time, this community has had to divide its programs in large clusters across hundreds or even thousands of processors.The approach of choice has been a library called the Message Passing Interface (MPI), an open-source library of bindings that can coordinate tasks among various processors when used within programs.'MPI is an interface for the hardware to pass [intra-program] messages around,' said Matthias Gobbert, a mathematics professor at University of Maryland Baltimore County and an administrator for UMBC's Center for Interdisciplinary Research and Consulting. His comment came during an on-campus talk about MPI. Volunteers originally developed MPI, and the Defense Advanced Research Projects Agency and the National Science Foundation funded later work.In an ideal world, if people have two processors, they would want a program designed to run on both processors to run twice as fast.And with three processors, they would like that program to run three times as fast.However, programs designed for concurrent execution rarely hit such benchmarks.On the hardware side, Gobbert noted, performance might be hampered by how fast the network fetches and retrieves data, and by processors competing for shared resources such as memory and communication buses. Gobbert said he has seen cases where a 32- processor system ' with two processors per node ' barely outperforms a system made up of 16 single-processor nodes. The dual-processor systems suffered when running a large job with frequent calls to memory, where large amounts of data were stored. The two processors sharing a node competed so much for memory resources that the improvements were minimal over the system with half as many processors.MPI was designed to help the programmer reduce the amount of inter-processor communication that a program undertakes. 'If you can get the number of program communications down, you can get the best performance,' Gobbert said. There are two versions of MPI: MPI-1.2, which has been widely implemented, and the newer, though less widely used, MPI-2.1.'MPI actually forces you to make decisions,' Gobbert said. Many older vector-based and shared-memory computer systems divided the work automatically. However, behind the scenes, the operating system furiously worked to eliminate cache incoherence or update all the different copies of a piece of data across the system when a change was made. Doing all this work slowed performance. MPI allows programmers to boost performance by identifying the particular parts of a program that can best be executed simultaneously on different machines.Of course, the problem is the programmer must know how to do this.One aspect of MPI is that it doesn't greatly alter a programmer's environment. The library is primarily a set of bindings, available for Fortran, C and C++ applications, among others. The program code remains a single file, even if different processes are carved off for different processors to tackle.With MPI, the programmer does not need to know how many processors the program will have to work with. The programmer defines that number as a variable, and then allows the program to get that number from the operating system at runtime. 'The program says split [the work] across all processors,' Gobbert said. Each MPI-driven program has a head node, which then assigns functions to other nodes, and coordinates the results when they are returned.Once the programmer is finished, the application is compiled with an MPI wrapper that runs in conjunction with the compiler for the native language of the program itself. Many Linux distributions offer mpicc and mpiCC, both MPI wrappers for C compilers. The MPI commands are handled by the MPI compiler while the non-MPI aspects are handled by the native compiler.MPI is not a cure-all for concurrent programming, Gobbert said.How the tasks of the program are divided up is where the genius resides in any parallel program ' and can make all the difference in how well a program performs. And this discipline requires plenty of smarts and practice. 'You have to turn around your thinking sometimes, compared to serial thinking,' Gobbert said.For a Web site of MPI resources, maintained by Argonne National Laboratory, go to GCN.com/890.

NEXT STORY: DOD tackles multicore computing

X
This website uses cookies to enhance user experience and to analyze performance and traffic on our website. We also share information about your use of our site with our social media, advertising and analytics partners. Learn More / Do Not Sell My Personal Information
Accept Cookies
X
Cookie Preferences Cookie List

Do Not Sell My Personal Information

When you visit our website, we store cookies on your browser to collect information. The information collected might relate to you, your preferences or your device, and is mostly used to make the site work as you expect it to and to provide a more personalized web experience. However, you can choose not to allow certain types of cookies, which may impact your experience of the site and the services we are able to offer. Click on the different category headings to find out more and change our default settings according to your preference. You cannot opt-out of our First Party Strictly Necessary Cookies as they are deployed in order to ensure the proper functioning of our website (such as prompting the cookie banner and remembering your settings, to log into your account, to redirect you when you log out, etc.). For more information about the First and Third Party Cookies used please follow this link.

Allow All Cookies

Manage Consent Preferences

Strictly Necessary Cookies - Always Active

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Sale of Personal Data, Targeting & Social Media Cookies

Under the California Consumer Privacy Act, you have the right to opt-out of the sale of your personal information to third parties. These cookies collect information for analytics and to personalize your experience with targeted ads. You may exercise your right to opt out of the sale of personal information by using this toggle switch. If you opt out we will not be able to offer you personalised ads and will not hand over your personal information to any third parties. Additionally, you may contact our legal department for further clarification about your rights as a California consumer by using this Exercise My Rights link

If you have enabled privacy controls on your browser (such as a plugin), we have to take that as a valid request to opt-out. Therefore we would not be able to track your activity through the web. This may affect our ability to personalize ads according to your preferences.

Targeting cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.

Social media cookies are set by a range of social media services that we have added to the site to enable you to share our content with your friends and networks. They are capable of tracking your browser across other sites and building up a profile of your interests. This may impact the content and messages you see on other websites you visit. If you do not allow these cookies you may not be able to use or see these sharing tools.

If you want to opt out of all of our lead reports and lists, please submit a privacy request at our Do Not Sell page.

Save Settings
Cookie Preferences Cookie List

Cookie List

A cookie is a small piece of data (text file) that a website – when visited by a user – asks your browser to store on your device in order to remember information about you, such as your language preference or login information. Those cookies are set by us and called first-party cookies. We also use third-party cookies – which are cookies from a domain different than the domain of the website you are visiting – for our advertising and marketing efforts. More specifically, we use cookies and other tracking technologies for the following purposes:

Strictly Necessary Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Functional Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Performance Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Sale of Personal Data

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.

Social Media Cookies

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.

Targeting Cookies

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.