. 24/7 Space News .
TECH SPACE
A new programming language for high-performance computers
by Steve Nadis for MIT News
Boston MA (SPX) Feb 09, 2022

A new tensor language developed at MIT, with formally verified optimizations, could have benefits for high-performance computing.

High-performance computing is needed for an ever-growing number of tasks - such as image processing or various deep learning applications on neural nets - where one must plow through immense piles of data, and do so reasonably quickly, or else it could take ridiculous amounts of time. It's widely believed that, in carrying out operations of this sort, there are unavoidable trade-offs between speed and reliability. If speed is the top priority, according to this view, then reliability will likely suffer, and vice versa.

However, a team of researchers, based mainly at MIT, is calling that notion into question, claiming that one can, in fact, have it all. With the new programming language, which they've written specifically for high-performance computing, says Amanda Liu, a second-year PhD student at the MIT Computer Science and Artificial Intelligence Laboratory (CSAIL), "speed and correctness do not have to compete. Instead, they can go together, hand-in-hand, in the programs we write."

Liu - along with University of California at Berkeley postdoc Gilbert Louis Bernstein, MIT Associate Professor Adam Chlipala, and MIT Assistant Professor Jonathan Ragan-Kelley - described the potential of their recently developed creation, "A Tensor Language" (ATL), last month at the Principles of Programming Languages conference in Philadelphia.

"Everything in our language," Liu says, "is aimed at producing either a single number or a tensor." Tensors, in turn, are generalizations of vectors and matrices. Whereas vectors are one-dimensional objects (often represented by individual arrows) and matrices are familiar two-dimensional arrays of numbers, tensors are n-dimensional arrays, which could take the form of a 3x3x3 array, for instance, or something of even higher (or lower) dimensions.

The whole point of a computer algorithm or program is to initiate a particular computation. But there can be many different ways of writing that program - "a bewildering variety of different code realizations," as Liu and her coauthors wrote in their soon-to-be published conference paper - some considerably speedier than others.

The primary rationale behind ATL is this, she explains: "Given that high-performance computing is so resource-intensive, you want to be able to modify, or rewrite, programs into an optimal form in order to speed things up. One often starts with a program that is easiest to write, but that may not be the fastest way to run it, so that further adjustments are still needed."

As an example, suppose an image is represented by a 100x100 array of numbers, each corresponding to a pixel, and you want to get an average value for these numbers. That could be done in a two-stage computation by first determining the average of each row and then getting the average of each column. ATL has an associated toolkit - what computer scientists call a "framework" - that might show how this two-step process could be converted into a faster one-step process.

"We can guarantee that this optimization is correct by using something called a proof assistant," Liu says. Toward this end, the team's new language builds upon an existing language, Coq, which contains a proof assistant. The proof assistant, in turn, has the inherent capacity to prove its assertions in a mathematically rigorous fashion.

Coq had another intrinsic feature that made it attractive to the MIT-based group: programs written in it, or adaptations of it, always terminate and cannot run forever on endless loops (as can happen with programs written in Java, for example). "We run a program to get a single answer - a number or a tensor," Liu maintains. "A program that never terminates would be useless to us, but termination is something we get for free by making use of Coq."

The ATL project combines two of the main research interests of Ragan-Kelley and Chlipala. Ragan-Kelley has long been concerned with the optimization of algorithms in the context of high-performance computing. Chlipala, meanwhile, has focused more on the formal (as in mathematically-based) verification of algorithmic optimizations. This represents their first collaboration. Bernstein and Liu were brought into the enterprise last year, and ATL is the result.

It now stands as the first, and so far the only, tensor language with formally verified optimizations. Liu cautions, however, that ATL is still just a prototype - albeit a promising one - that's been tested on a number of small programs. "One of our main goals, looking ahead, is to improve the scalability of ATL, so that it can be used for the larger programs we see in the real world," she says.

In the past, optimizations of these programs have typically been done by hand, on a much more ad hoc basis, which often involves trial and error, and sometimes a good deal of error. With ATL, Liu adds, "people will be able to follow a much more principled approach to rewriting these programs - and do so with greater ease and greater assurance of correctness."


Related Links
Computer Science and Artificial Intelligence Laboratory (CSAIL)
Space Technology News - Applications and Research


Thanks for being there;
We need your help. The SpaceDaily news network continues to grow but revenues have never been harder to maintain.

With the rise of Ad Blockers, and Facebook - our traditional revenue sources via quality network advertising continues to decline. And unlike so many other news sites, we don't have a paywall - with those annoying usernames and passwords.

Our news coverage takes time and effort to publish 365 days a year.

If you find our news sites informative and useful then please consider becoming a regular supporter or for now make a one off contribution.
SpaceDaily Monthly Supporter
$5+ Billed Monthly


paypal only
SpaceDaily Contributor
$5 Billed Once


credit card or paypal


TECH SPACE
New DAF software factory aims to digitally transform AFRL
Wright-Patterson AFB OH (SPX) Jan 28, 2022
The chief software officer for the Air Force recently designated Hangar 18 as a Department of the Air Force software factory. Hangar 18 joins 16 other DAF software factories-including the first, Kessel Run-that have sprung up across the nation since the Air Force began its digital transformation efforts in 2017. These efforts were initially driven by the release of the Air Force Science and Technology Strategy for 2030, released in 2017, and then influenced by the digital engineering initiative laid out ... read more

Comment using your Disqus, Facebook, Google or Twitter login.



Share this article via these popular social media networks
del.icio.usdel.icio.us DiggDigg RedditReddit GoogleGoogle

TECH SPACE
Northrop Grumman's 17th Resupply Mission packed with science and technology for ISS

China joins industrial design IP treaty

Astronaut hits 300 days in space, on way to break NASA record

New ISS National Laboratory tool expands visibility of ISS-related educational resources

TECH SPACE
Gilmour Space, SENER Aeroespacial to develop Autonomous Flight Termination System for Eris rocket

NASA, SpaceX investigate Dragon capsule parachute openings

UCF lands new project to study effect of rain on hypersonic travel

Astra Space scrubs first Florida launch a second time

TECH SPACE
How easy is it to turn water into oxygen on Mars

Shocked zircon find a 'one-off gift' from Mars

Predicting the efficiency of oxygen-evolving electrolysis on the Moon and Mars

Sols 3381-3382: Whence We Came

TECH SPACE
China Focus: China to explore lunar polar regions, mulling human landing: white paper

China to boost satellite services, space technology application: white paper

China Focus: China to explore space science more: white paper

China to improve space debris monitoring: white paper

TECH SPACE
Protecting dark and quiet skies from satellite constellation interference

Solar storm knocks out 40 SpaceX Starlink satellites

Sidus Space announces deal with Red Canyon Software to support LizzieSat Constellation

New Center for Satellite Constellation Interference

TECH SPACE
Indian Space Agency decommissions communication satellite

Scientists discover a mysterious transition in an electronic crystal

A new programming language for high-performance computers

Beyond sci-fi: manipulating liquid metals without contact

TECH SPACE
Puffy planets lose atmospheres, become Super Earths

Warps drive disruptions in planet formation in young solar systems

AI for Earth and Space: Call for researchers and experts

Giant sponge gardens discovered on seamounts in the Arctic deep sea

TECH SPACE
Juno and Hubble data reveal electromagnetic 'tug-of-war' lights up Jupiter's upper atmosphere

Oxygen ions in Jupiter's innermost radiation belts

Ocean Physics Explain Cyclones on Jupiter

Looking Back, Looking Forward To New Horizons









The content herein, unless otherwise known to be public domain, are Copyright 1995-2024 - Space Media Network. All websites are published in Australia and are solely subject to Australian law and governed by Fair Use principals for news reporting and research purposes. AFP, UPI and IANS news wire stories are copyright Agence France-Presse, United Press International and Indo-Asia News Service. ESA news reports are copyright European Space Agency. All NASA sourced material is public domain. Additional copyrights may apply in whole or part to other bona fide parties. All articles labeled "by Staff Writers" include reports supplied to Space Media Network by industry news wires, PR agencies, corporate press officers and the like. Such articles are individually curated and edited by Space Media Network staff on the basis of the report's information value to our industry and professional readership. Advertising does not imply endorsement, agreement or approval of any opinions, statements or information provided by Space Media Network on any Web page published or hosted by Space Media Network. General Data Protection Regulation (GDPR) Statement Our advertisers use various cookies and the like to deliver the best ad banner available at one time. All network advertising suppliers have GDPR policies (Legitimate Interest) that conform with EU regulations for data collection. By using our websites you consent to cookie based advertising. If you do not agree with this then you must stop using the websites from May 25, 2018. Privacy Statement. Additional information can be found here at About Us.