New! Sign up for our free email newsletter.
Science News
from research organizations

Speedier network analysis for a range of computer hardware developed

Date:
February 22, 2021
Source:
Massachusetts Institute of Technology
Summary:
MIT researchers developed software to more efficiently run graph applications on a range of computing hardware, including both CPUs and GPUs. The advance could boost analysis of social networks, recommendation algorithms, and internet search.
Share:
FULL STORY

Graphs -- data structures that show the relationship among objects -- are highly versatile. It's easy to imagine a graph depicting a social media network's web of connections. But graphs are also used in programs as diverse as content recommendation (what to watch next on Netflix?) and navigation (what's the quickest route to the beach?). As Ajay Brahmakshatriya summarizes: "graphs are basically everywhere."

Brahmakshatriya has developed software to more efficiently run graph applications on a wider range of computer hardware. The software extends GraphIt, a state-of-the-art graph programming language, to run on graphics processing units (GPUs), hardware that processes many data streams in parallel. The advance could accelerate graph analysis, especially for applications that benefit from a GPU's parallelism, such as recommendation algorithms.

Brahmakshatriya, a PhD student in MIT's Department of Electrical Engineering and Computer Science and the Computer Science and Artificial Intelligence Laboratory, will present the work at this month's International Symposium on Code Generation and Optimization. Co-authors include Brahmakshatriya's advisor, Professor Saman Amarasinghe, as well as Douglas T. Ross Career Development Assistant Professor of Software Technology Julian Shun, postdoc Changwan Hong, recent MIT PhD student Yunming Zhang PhD '20 (now with Google), and Adobe Research's Shoaib Kamil.

When programmers write code, they don't talk directly to the computer hardware. The hardware itself operates in binary -- 1s and 0s -- while the coder writes in a structured, "high-level" language made up of words and symbols. Translating that high-level language into hardware-readable binary requires programs called compilers. "A compiler converts the code to a format that can run on the hardware," says Brahmakshatriya. One such compiler, specially designed for graph analysis, is GraphIt.

The researchers developed GraphIt in 2018 to optimize the performance of graph-based algorithms regardless of the size and shape of the graph. GraphIt allows the user not only to input an algorithm, but also to schedule how that algorithm runs on the hardware. "The user can provide different options for the scheduling, until they figure out what works best for them," says Brahmakshatriya. "GraphIt generates very specialized code tailored for each application to run as efficiently as possible."

A number of startups and established tech firms alike have adopted GraphIt to aid their development of graph applications. But Brahmakshatriya says the first iteration of GraphIt had a shortcoming: It only runs on central processing units or CPUs, the type of processor in a typical laptop.

"Some algorithms are massively parallel," says Brahmakshatriya, "meaning they can better utilize hardware like a GPU that has 10,000 cores for execution." He notes that some types of graph analysis, including recommendation algorithms, require a high degree of parallelism. So Brahmakshatriya extended GraphIt to enable graph analysis to flourish on GPUs.

Brahmakshatriya's team preserved the way GraphIt users input algorithms, but adapted the scheduling component for a wider array of hardware. "Our main design decision in extending GraphIt to GPUs was to keep the algorithm representation exactly the same," says Brahmakshatriya. "Instead, we added a new scheduling language. So, the user can keep the same algorithms that they had before written before [for CPUs], and just change the scheduling input to get the GPU code."

This new, optimized scheduling for GPUs gives a boost to graph algorithms that require high parallelism -- including recommendation algorithms or internet search functions that sift through millions of websites simultaneously. To confirm the efficacy of GraphIt's new extension, the team ran 90 experiments pitting GraphIt's runtime against other state-of-the-art graph compilers on GPUs. The experiments included a range of algorithms and graph types, from road networks to social networks. GraphIt ran fastest in 65 of the 90 cases and was close behind the leading algorithm in the rest of the trials, demonstrating both its speed and versatility.

Brahmakshatriya says the new GraphIt extension provides a meaningful advance in graph analysis, enabling users to go between CPUs and GPUs with state-of-the-art performance with ease. "The field these days is tooth-and-nail competition. There are new frameworks coming out every day," He says. But he emphasizes that the payoff for even slight optimization is worth it. "Companies are spending millions of dollars each day to run graph algorithms. Even if you make it run just 5 percent faster, you're saving many thousands of dollars."

This research was funded, in part, by the National Science Foundation, U.S. Department of Energy, the Applications Driving Architectures Center, and the Defense Advanced Research Projects Agency.


Story Source:

Materials provided by Massachusetts Institute of Technology. Original written by Daniel Ackerman. Note: Content may be edited for style and length.


Cite This Page:

Massachusetts Institute of Technology. "Speedier network analysis for a range of computer hardware developed." ScienceDaily. ScienceDaily, 22 February 2021. <www.sciencedaily.com/releases/2021/02/210222124516.htm>.
Massachusetts Institute of Technology. (2021, February 22). Speedier network analysis for a range of computer hardware developed. ScienceDaily. Retrieved December 20, 2024 from www.sciencedaily.com/releases/2021/02/210222124516.htm
Massachusetts Institute of Technology. "Speedier network analysis for a range of computer hardware developed." ScienceDaily. www.sciencedaily.com/releases/2021/02/210222124516.htm (accessed December 20, 2024).

Explore More

from ScienceDaily

RELATED STORIES