As transistors get smaller, they also become less reliable. So far, computer-chip designers have been able to work around that problem, but in the future, it could mean that computers stop improving at the rate we've come to expect.
A third possibility, which some researchers have begun to float (http://web.mit.edu/newsoffice/2010/fuzzy-logic-0103.html), is that we could simply let our computers make more mistakes. If, for instance, a few pixels in each frame of a high-definition video are improperly decoded, viewers probably won't notice -- but relaxing the requirement of perfect decoding could yield gains in speed or energy efficiency.
In anticipation of the dawning age of unreliable chips,
"If the hardware really is going to stop working, this is a pretty big deal for computer science," says Rinard, a professor in the
Last week, two graduate students in Rinard's group,
On the dot
The researchers' system, which they've dubbed Rely, begins with a specification of the hardware on which a program is intended to run. That specification includes the expected failure rates of individual low-level instructions, such as the addition, multiplication, or comparison of two values. In its current version, Rely assumes that the hardware also has a failure-free mode of operation -- one that might require slower execution or higher power consumption.
A developer who thinks that a particular program instruction can tolerate a little error simply adds a period -- a "dot," in programmers' parlance -- to the appropriate line of code. So the instruction "total = total + new_value" becomes "total = total +. new_value." Where Rely encounters that telltale dot, it knows to evaluate the program's execution using the failure rates in the specification. Otherwise, it assumes that the instruction needs to be executed properly.
Compilers -- applications that convert instructions written in high-level programming languages like C or Java into low-level instructions intelligible to computers -- typically produce what's called an "intermediate representation," a generic low-level program description that can be straightforwardly mapped onto the instruction set specific to any given chip. Rely simply steps through the intermediate representation, folding the probability that each instruction will yield the right answer into an estimation of the overall variability of the program's output.
"One thing you can have in programs is different paths that are due to conditionals," Misailovic says. "When we statically analyze the program, we want to make sure that we cover all the bases. When you get the variability for a function, this will be the variability of the least-reliable path."
"There's a fair amount of sophisticated reasoning that has to go into this because of these kind of factors," Rinard adds. "It's the difference between reasoning about any specific execution of the program where you've just got one single trace and all possible executions of the program."
The researchers tested their system on several benchmark programs standard in the field, using a range of theoretically predicted failure rates. "We went through the literature and found the numbers that people claimed for existing designs," Carbin says.
With the existing version of Rely, a programmer who finds that permitting a few errors yields an unacceptably low probability of success can go back and tinker with his or her code, removing dots here and there and adding them elsewhere. Re-evaluating the code, the researchers say, generally takes no more than a few seconds.
But in ongoing work, they're trying to develop a version of the system that allows the programmer to simply specify the accepted failure rate for whole blocks of code: say, pixels in a frame of video need to be decoded with 97 percent reliability. The system would then go through and automatically determine how the code should be modified to both meet those requirements and maximize either power savings or speed of execution.
Most Popular Stories
- Updates on Everglades' Stranded Pilot Whales
- Stolen Cobalt-60 Recovered in Mexico
- Hezbollah Chief's Assassination Claimed by Sunni Group
- Allstate Seeks to Invest in Minority Firms
- Sarmiento to Handle Greeley Latin Ops
- Wind Power and Wildlife Can Coexist
- First-time Jobless Claims Drop Below 300,000
- White House Pushes to Extend Unemployment Benefits
- Ford Mustang Still Packs Power
- Elizabeth Warren Ends 2016 Presidential Rumors