Rethinking GPU Hackathons for a Pandemic and Beyond

January 13, 2021

Jan. 13, 2021 — When University of Michigan (UM) professor of aerospace engineering Venkat Raman and his team of graduate students were awarded a grant of compute time on the nation’s most powerful and smartest scientific supercomputer, the IBM AC922 Summit at the Oak Ridge Leadership Computing Facility (OLCF), they thought they had it made. Surely, Summit’s computational horsepower would vault their study of rotating detonation engines and their fluid dynamics simulation code into the stratosphere.

At first, however, the exact opposite happened when they didn’t take advantage of Summit’s biggest tool for accelerating codes: its 27,648 NVIDIA Volta GPUs. The team had no experience in optimizing code for GPU processors, so they didn’t put much effort into it. Consequently, their code actually ran slower than it had on traditional CPU computers.

“We did not think of GPUs as anything important: ‘We know how to write codes on CPUs and now people are telling us we need to use GPUs?’ So, the first day my students ran the code, we turned off all the GPUs because we thought it was a nuisance. We just ran it on the CPUs—and it was 10 times slower,” Raman said.

This caught the attention of the OLCF’s then–director of science, Jack Wells, who sent the team an email that essentially said, “Are you sure you guys are doing the right thing? You’re not using the GPUs.” The team, who had been awarded 130,000 node-hours on Summit through the US Department of Energy’s (DOE’s) Office of Advanced Scientific Computing Research’s Leadership Computing Challenge (ALCC) program, couldn’t afford for their codes to run slower.

The OLCF made the team aware of its series of hands-on seminars intended to help users optimize codes for GPUs: the OLCF GPU hackathons. The hackathons have evolved from a single, ambitious endeavor in 2014 to a series hosted at institutions across the country—and even around the world—to bolster programmers’ applications for scientific study on some of the largest GPU supercomputers. The OLCF and NVIDIA co-organize the trainings along with the local host institutions, and the OLCF also works with the Exascale Computing Project to codeliver a handful of OpenMP-specific GPU hackathons as well. Teams receive help from expert mentors at the 5-day events, aiming to leave with a piece of GPU code in hand.

“My students went to a hackathon in Oak Ridge and they sent me a message from there saying, ‘We had no idea what this machine can do—we have to rethink everything.’ So that’s what we did,” Raman said.

Raman’s trio of PhD candidates responsible for coding—Shivam Barwey, Ral Bielawski, and Supraj Prakash—had tried using the OpenACC programming model to offload a few elements of their simulation software (UM detonation FOAM, or UMdetFOAM, originally based on the code OpenFOAM, for “Open-source Field Operation and Manipulation”) to GPUs. But the results weren’t much better than their first foray. At the hackathon, where team members could talk to IBM and NVIDIA programmers directly, they found out why.

“While the OpenACC framework initially seemed very easy to use, we needed a lot more control over what data is transmitted, how that data is transmitted, and how we rewrite our algorithms in order to best use that framework,” Barwey said. “We need to rethink the way the algorithm is structured so we saturate the GPU to perform a large operation at a single time rather than constantly going back and forth between the CPU and GPU.”

Upon returning from the hackathon, the students began completely rewriting and modifying their solver—which involved replacing OpenFOAM and other external libraries with custom GPU libraries—to take full advantage of Summit’s GPUs. Now, more than 95 percent of the code runs on GPUs. Furthermore, the team recognized the opportunity to leverage the advantages GPUs have for artificial intelligence algorithms and consequently trained neural networks to speed up the modeling program even further—a first in the field. All of these improvements led to GPU performance reaching near-theoretical limits, restricted only by the communication bandwidth for transferring data between the CPU and GPU.

“This allows us to get—in some extreme cases—about 1,000-times-faster simulations compared to if we had just done conventional calculations,” Raman said. “More than even speedup, we can also answer different questions. It’s not an incremental change.”

As the team completed its ALCC project last summer with groundbreaking results—while also advancing the state of the art for computational fluid dynamics tools—the OLCF was reimagining the hackathon itself. Faced with a global pandemic, staff members were forced early on to decide whether collaborative programming seminars could transition successfully to the virtual domain. Could teams like Raman’s get as much out of long-distance interactions with mentors as they did in person? Could the OLCF risk a virtual format for the hackathons or should it forgo them altogether?

“There was a substantial discussion about whether this would be feasible and still provide value to the participants, and the organizers quickly decided that yes, it would be doable,” said Ashley Barker, section head of operations in the National Center for Computational Sciences (NCCS), which hosts the OLCF at the DOE’s Oak Ridge National Laboratory (ORNL).

In 2020, the OLCF—a DOE Office of Science User Facility—cohosted five of the virtual hackathons with NVIDIA, with a total of 296 people from 62 different institutions participating in the events. The success of the hackathons in the new format marks a milestone in the OLCF’s history and demonstrates the perseverance and tenacity of the high-performance computing (HPC) community to find creative solutions to problems—something required for code porting and development even under ideal circumstances. It also paves the way for opportunities to expand upon the hackathon’s original format and help users find new ways of collaborating at a time when it is needed most.

A new hackathon for new times

Attendees of the OLCF’s virtual hackathon in October. The OLCF cohosted five virtual hackathons with NVIDIA in 2020, with a total of 296 people from 62 different institutions participating. Image Credit: Jason Smith, ORNL.

The first-ever virtual NVIDIA GPU hackathon was hosted by the San Diego Supercomputer Center in May. Unlike typical hackathons, during which teams attend a 5-day-long consecutive event, the attending teams had one initial day of code profiling to determine which pieces of their codes were eating up their computational time. After that, they had a week’s break to implement changes and revise or adapt their strategies for porting to the GPUs in Ascent, an OLCF test bed system with an architecture similar to that of the OLCF’s Summit supercomputer. In the second week, participants had 3 full days to develop and port their codes during the virtual hackathon event.

The new format boasted many benefits right off the bat. The hackathon organizers found it easier to identify mentors due to the ability to participate virtually. Along with the greater availability of mentors, the organizers identified holding that separate introductory session was a best practice for future virtual hackathons because it better prepared participants for the 3-day event.

The success of the first event marked the new format for the remainder of the 2020 hackathon series. The virtual format wasn’t without its challenges, of course. Time zone differences and virtual meeting fatigue were some of the biggest inconveniences. However, most participants observed efficiency gains and were able to find the same value they received at the in-person events.

“People don’t have to travel, and I think they’re still able to do what they were doing before and get it done in a similar amount of time,” said Tom Papatheodore, HPC engineer in the Operations Section at NCCS.

First-timers reap big benefits

One team that saw success this year was the MOVE–computational fluid dynamics (CFD), or MOVE-CFD, team from Rensselaer Polytechnic Institute. The team works with the parallel, hierarchic, adaptive, stabilized transient analysis (PHASTA) code, which can be used for variety practical cases of interest that can involve complicated geometries—such as detailed aerospace configurations or human arterial system—as well as complex physics, such as fluid turbulence or multiphase interactions. PHASTA allows researchers to achieve high accuracy for modeling turbulent flows in these systems. The team took a mini-version of PHASTA to the OLCF-hosted GPU hackathon on October 19 and October 26–28 and, with help from NVIDIA mentors at the hackathon, ported the mini-application to the OLCF’s Ascent test bed system and achieved a 10-fold speedup.

Another team, led by aerospace researcher Ioannis Nompelis at the University of Minnesota (UMN), brought a mini-application that was purposely built to mimic the US3D CFD solver, which is used for simulating hypersonic flows around geometrically complex shapes. The team, AeroUMN, observed a 40-fold speedup of the mini-application—which is named MY3D—from a single compute unit (CPU core) when using the entire CPU resource of an Ascent-type node. And when the team employed one of the six GPU accelerators found on the compute node, MY3D performed 50 percent better than the original CPU-only version.

For the future, not virtual but virtual-inspired

Papatheodore said the organizers intend for the 2021 GPU hackathons to continue in the virtual format.

“I think we have proven this year that we can run these events virtually and see similar results to the in-person events,” Papatheodore said.

Papatheodore emphasized that the hackathons likely won’t remain virtual forever. But the organizers plan to keep some form of the hackathons virtual even after a return to in-person events. This will allow participants to reap the benefits of the new format, such as increased availability of mentors.

“In the future, we’ll likely incorporate some of the most successful aspects of the virtual hackathons into our in-person events as well, so we have forever changed the format of these hackathons,” Papatheodore said.

UT-Battelle LLC manages Oak Ridge National Laboratory for DOE’s Office of Science, the single largest supporter of basic research in the physical sciences in the United States. DOE’s Office of Science is working to address some of the most pressing challenges of our time. For more information, visit https://energy.gov/science.

Click here for the full post.


Source: Coury Turczyn and Rachel McDowell, OLCF

Subscribe to HPCwire's Weekly Update!

Be the most informed person in the room! Stay ahead of the tech trends with industy updates delivered to you every week!

Why HPC Storage Matters More Now Than Ever: Analyst Q&A

September 17, 2021

With soaring data volumes and insatiable computing driving nearly every facet of economic, social and scientific progress, data storage is seizing the spotlight. Hyperion Research analyst and noted storage expert Mark No Read more…

GigaIO Gets $14.7M in Series B Funding to Expand Its Composable Fabric Technology to Customers

September 16, 2021

Just before the COVID-19 pandemic began in March 2020, GigaIO introduced its Universal Composable Fabric technology, which allows enterprises to bring together any HPC and AI resources and integrate them with networking, Read more…

What’s New in HPC Research: Solar Power, ExaWorks, Optane & More

September 16, 2021

In this regular feature, HPCwire highlights newly published research in the high-performance computing community and related domains. From parallel programming to exascale to quantum computing, the details are here. Read more…

Cerebras Brings Its Wafer-Scale Engine AI System to the Cloud

September 16, 2021

Five months ago, when Cerebras Systems debuted its second-generation wafer-scale silicon system (CS-2), co-founder and CEO Andrew Feldman hinted of the company’s coming cloud plans, and now those plans have come to fruition. Today, Cerebras and Cirrascale Cloud Services are launching... Read more…

AI Hardware Summit: Panel on Memory Looks Forward

September 15, 2021

What will system memory look like in five years? Good question. While Monday's panel, Designing AI Super-Chips at the Speed of Memory, at the AI Hardware Summit, tackled several topics, the panelists also took a brief glimpse into the future. Unlike compute, storage and networking, which... Read more…

AWS Solution Channel

Supporting Climate Model Simulations to Accelerate Climate Science

The Amazon Sustainability Data Initiative (ASDI), AWS is donating cloud resources, technical support, and access to scalable infrastructure and fast networking providing high performance computing (HPC) solutions to support simulations of near-term climate using the National Center for Atmospheric Research (NCAR) Community Earth System Model Version 2 (CESM2) and its Whole Atmosphere Community Climate Model (WACCM). Read more…

ECMWF Opens Bologna Datacenter in Preparation for Atos Supercomputer

September 14, 2021

In January 2020, the European Centre for Medium-Range Weather Forecasts (ECMWF) – a juggernaut in the weather forecasting scene – signed a four-year, $89-million contract with European tech firm Atos to quintuple its supercomputing capacity. With the deal approaching the two-year mark, ECMWF... Read more…

GigaIO Gets $14.7M in Series B Funding to Expand Its Composable Fabric Technology to Customers

September 16, 2021

Just before the COVID-19 pandemic began in March 2020, GigaIO introduced its Universal Composable Fabric technology, which allows enterprises to bring together Read more…

Cerebras Brings Its Wafer-Scale Engine AI System to the Cloud

September 16, 2021

Five months ago, when Cerebras Systems debuted its second-generation wafer-scale silicon system (CS-2), co-founder and CEO Andrew Feldman hinted of the company’s coming cloud plans, and now those plans have come to fruition. Today, Cerebras and Cirrascale Cloud Services are launching... Read more…

AI Hardware Summit: Panel on Memory Looks Forward

September 15, 2021

What will system memory look like in five years? Good question. While Monday's panel, Designing AI Super-Chips at the Speed of Memory, at the AI Hardware Summit, tackled several topics, the panelists also took a brief glimpse into the future. Unlike compute, storage and networking, which... Read more…

ECMWF Opens Bologna Datacenter in Preparation for Atos Supercomputer

September 14, 2021

In January 2020, the European Centre for Medium-Range Weather Forecasts (ECMWF) – a juggernaut in the weather forecasting scene – signed a four-year, $89-million contract with European tech firm Atos to quintuple its supercomputing capacity. With the deal approaching the two-year mark, ECMWF... Read more…

Quantum Computer Market Headed to $830M in 2024

September 13, 2021

What is one to make of the quantum computing market? Energized (lots of funding) but still chaotic and advancing in unpredictable ways (e.g. competing qubit tec Read more…

Amazon, NCAR, SilverLining Team for Unprecedented Cloud Climate Simulations

September 10, 2021

Earth’s climate is, to put it mildly, not in a good place. In the wake of a damning report from the Intergovernmental Panel on Climate Change (IPCC), scientis Read more…

After Roadblocks and Renewals, EuroHPC Targets a Bigger, Quantum Future

September 9, 2021

The EuroHPC Joint Undertaking (JU) was formalized in 2018, beginning a new era of European supercomputing that began to bear fruit this year with the launch of several of the first EuroHPC systems. The undertaking, however, has not been without its speed bumps, and the Union faces an uphill... Read more…

How Argonne Is Preparing for Exascale in 2022

September 8, 2021

Additional details came to light on Argonne National Laboratory’s preparation for the 2022 Aurora exascale-class supercomputer, during the HPC User Forum, held virtually this week on account of pandemic. Exascale Computing Project director Doug Kothe reviewed some of the 'early exascale hardware' at Argonne, Oak Ridge and NERSC (Perlmutter), while Ti Leggett, Deputy Project Director & Deputy Director... Read more…

Ahead of ‘Dojo,’ Tesla Reveals Its Massive Precursor Supercomputer

June 22, 2021

In spring 2019, Tesla made cryptic reference to a project called Dojo, a “super-powerful training computer” for video data processing. Then, in summer 2020, Tesla CEO Elon Musk tweeted: “Tesla is developing a [neural network] training computer called Dojo to process truly vast amounts of video data. It’s a beast! … A truly useful exaflop at de facto FP32.” Read more…

Berkeley Lab Debuts Perlmutter, World’s Fastest AI Supercomputer

May 27, 2021

A ribbon-cutting ceremony held virtually at Berkeley Lab's National Energy Research Scientific Computing Center (NERSC) today marked the official launch of Perlmutter – aka NERSC-9 – the GPU-accelerated supercomputer built by HPE in partnership with Nvidia and AMD. Read more…

Esperanto, Silicon in Hand, Champions the Efficiency of Its 1,092-Core RISC-V Chip

August 27, 2021

Esperanto Technologies made waves last December when it announced ET-SoC-1, a new RISC-V-based chip aimed at machine learning that packed nearly 1,100 cores onto a package small enough to fit six times over on a single PCIe card. Now, Esperanto is back, silicon in-hand and taking aim... Read more…

Enter Dojo: Tesla Reveals Design for Modular Supercomputer & D1 Chip

August 20, 2021

Two months ago, Tesla revealed a massive GPU cluster that it said was “roughly the number five supercomputer in the world,” and which was just a precursor to Tesla’s real supercomputing moonshot: the long-rumored, little-detailed Dojo system. “We’ve been scaling our neural network training compute dramatically over the last few years,” said Milan Kovac, Tesla’s director of autopilot engineering. Read more…

CentOS Replacement Rocky Linux Is Now in GA and Under Independent Control

June 21, 2021

The Rocky Enterprise Software Foundation (RESF) is announcing the general availability of Rocky Linux, release 8.4, designed as a drop-in replacement for the soon-to-be discontinued CentOS. The GA release is launching six-and-a-half months after Red Hat deprecated its support for the widely popular, free CentOS server operating system. The Rocky Linux development effort... Read more…

Intel Completes LLVM Adoption; Will End Updates to Classic C/C++ Compilers in Future

August 10, 2021

Intel reported in a blog this week that its adoption of the open source LLVM architecture for Intel’s C/C++ compiler is complete. The transition is part of In Read more…

Google Launches TPU v4 AI Chips

May 20, 2021

Google CEO Sundar Pichai spoke for only one minute and 42 seconds about the company’s latest TPU v4 Tensor Processing Units during his keynote at the Google I Read more…

AMD-Xilinx Deal Gains UK, EU Approvals — China’s Decision Still Pending

July 1, 2021

AMD’s planned acquisition of FPGA maker Xilinx is now in the hands of Chinese regulators after needed antitrust approvals for the $35 billion deal were receiv Read more…

Leading Solution Providers

Contributors

Hot Chips: Here Come the DPUs and IPUs from Arm, Nvidia and Intel

August 25, 2021

The emergence of data processing units (DPU) and infrastructure processing units (IPU) as potentially important pieces in cloud and datacenter architectures was Read more…

10nm, 7nm, 5nm…. Should the Chip Nanometer Metric Be Replaced?

June 1, 2020

The biggest cool factor in server chips is the nanometer. AMD beating Intel to a CPU built on a 7nm process node* – with 5nm and 3nm on the way – has been i Read more…

Julia Update: Adoption Keeps Climbing; Is It a Python Challenger?

January 13, 2021

The rapid adoption of Julia, the open source, high level programing language with roots at MIT, shows no sign of slowing according to data from Julialang.org. I Read more…

HPE Wins $2B GreenLake HPC-as-a-Service Deal with NSA

September 1, 2021

In the heated, oft-contentious, government IT space, HPE has won a massive $2 billion contract to provide HPC and AI services to the United States’ National Security Agency (NSA). Following on the heels of the now-canceled $10 billion JEDI contract (reissued as JWCC) and a $10 billion... Read more…

Quantum Roundup: IBM, Rigetti, Phasecraft, Oxford QC, China, and More

July 13, 2021

IBM yesterday announced a proof for a quantum ML algorithm. A week ago, it unveiled a new topology for its quantum processors. Last Friday, the Technical Univer Read more…

Intel Launches 10nm ‘Ice Lake’ Datacenter CPU with Up to 40 Cores

April 6, 2021

The wait is over. Today Intel officially launched its 10nm datacenter CPU, the third-generation Intel Xeon Scalable processor, codenamed Ice Lake. With up to 40 Read more…

Frontier to Meet 20MW Exascale Power Target Set by DARPA in 2008

July 14, 2021

After more than a decade of planning, the United States’ first exascale computer, Frontier, is set to arrive at Oak Ridge National Laboratory (ORNL) later this year. Crossing this “1,000x” horizon required overcoming four major challenges: power demand, reliability, extreme parallelism and data movement. Read more…

Intel Unveils New Node Names; Sapphire Rapids Is Now an ‘Intel 7’ CPU

July 27, 2021

What's a preeminent chip company to do when its process node technology lags the competition by (roughly) one generation, but outmoded naming conventions make it seem like it's two nodes behind? For Intel, the response was to change how it refers to its nodes with the aim of better reflecting its positioning within the leadership semiconductor manufacturing space. Intel revealed its new node nomenclature, and... Read more…

  • arrow
  • Click Here for More Headlines
  • arrow
HPCwire