HomeNewsIndia NewsParallel programming made easy by chips created at MIT

Parallel programming made easy by chips created at MIT

Parallel programming Computer chips have stopped getting faster: The regular performance improvements we’ve come to expect are now the result of chip makers’ adding more cores, or processing units, to their chips, rather than increasing their clock speed.

In theory, doubling the number of cores doubles the chip’s efficiency, but splitting up computations so that they run efficiently in parallel isn’t easy. On the other hand, say a trio of computer scientists from MIT, Israel’s Technion, and Microsoft Research, neither is it as hard as had been feared.

Commercial software developers writing programs for multi core chips frequently use so-called “lock-free” parallel algorithms, which are relatively easy to generate from standard sequential code. In fact, in many cases the conversion can be done automatically.

Yet lock-free algorithms don’t come with very satisfying theoretical guarantees: All they promise is that at least one core will make progress on its computational task in a fixed span of time. But if they don’t exceed that standard, they squander all the additional computational power that multiple cores provide.

In recent years, theoretical computer scientists have demonstrated ingenious alternatives called “wait-free” algorithms, which guarantee that all cores will make progress in a fixed span of time. But deriving them from sequential code is extremely complicated, and commercial developers have largely neglected them.

In a paper to be presented at the Association for Computing Machinery’s Annual Symposium on the Theory of Computing in May, Nir Shavit, a professor in MIT’s Department of Electrical Engineering and Computer Science; his former student Dan Alistarh, who’s now at Microsoft Research; and Keren Censor-Hillel of the Technion demonstrate a new analytic technique suggesting that, in a wide range of real-world cases, lock-free algorithms actually give wait-free performance.

“In practice, programmers program as if everything is wait-free,” Shavit says. “This is a kind of mystery. What we are exposing in the paper is this little-talked-about intuition that programmers have about how [chip] schedulers work, that they are actually benevolent.”

The researchers’ key insight was that the chip’s performance as a whole could be characterized more simply than the performance of the individual cores. That’s because the allocation of different “threads,” or chunks of code executed in parallel, is symmetric. “It doesn’t matter whether thread 1 is in state A and thread 2 is in state B or if you just swap the states around,” says Alistarh, who contributed to the work while at MIT. “What we noticed is that by coalescing symmetric states, you can simplify this a lot.”

In a real chip, the allocation of threads to cores is “a complex interplay of latencies and scheduling policies,” Alistarh says. In practice, however, the decisions arrived at through that complex interplay end up looking a lot like randomness. So the researchers modeled the scheduling of threads as a process that has at least a little randomness in it: At any time, there’s some probability that a new thread will be initiated on any given core.

The researchers found that even with a random scheduler, a wide range of lock-free algorithms offered performance guarantees that were as good as those offered by wait-free algorithms.

ELE Times Bureau
ELE Times Bureauhttps://www.eletimes.ai/
ELE Times provides a comprehensive global coverage of Electronics, Technology and the Market. In addition to providing in depth articles, ELE Times attracts the industry’s largest, qualified and highly engaged audiences, who appreciate our timely, relevant content and popular formats. ELE Times helps you build awareness, drive traffic, communicate your offerings to right audience, generate leads and sell your products better.

Related News

Must Read

INFAC Develops 800V-to-48V Power Conversion Technology to Targets Higher EV Efficiency

South Korea's INFAC Corporation has introduced a new 800V...

Why India Needs Smarter and More Standardised EV Charging Infrastructure

India's rapidly expanding network of electric-vehicle chargers still faces...

Rare-Earth-Free EV Motors: How India Could Reduce Dependence on Critical Magnet Materials

India is exploring new electric-motor technologies that may help...

India Tightens EV Localisation Rules, Putting Traction Motor Technology in Focus

India is moving toward higher domestic manufacturing of key...

Indian Army Launches AASHVAST Lab to Detect Chinese Components and Cyber Threats

To strengthen the security of military drones and identify...

AeroVironment Receives First International Order for LOCUST Laser System

AeroVironment announced that it received the first international order...

Covenant Introduces a Mass-Produced Cruise Missile Called Anthem

US defence firm Covenant has unveiled its Anthem, a...

The DRDO’s SHIELD Programme Focused on Microwave & Drone-Electronics Testing

India is developing its directed energy capability through the...

1.10 Lakh Crore Indian Defence Technology Pipeline Approved

The DAC (Defence Acquisition Council) of India approved, to...

India Will Open AI Labs for Sri Lankan Army

India is now helping Sri Lanka set up an...