Accelerating drug discovery with Amazon EC2 Spot Instances

By Amazon Web Services

January 20, 2022

This post was contributed by Cristian Măgherușan-Stanciu, Sr. Specialist Solution Architect, EC2 Spot, with contributions from Cristian Kniep, Sr. Developer Advocate for HPC and AWS Batch at AWS, Carlos Manzanedo Rueda, Principal Solutions Architect, EC2 Spot at AWS, Ludvig Nordstrom, Principal Solutions Architect at AWS, Vytautas Gapsys, project group leader at the Max Planck Institute for Biophysical Chemistry, and Carsten Kutzner, staff scientist at the Max Planck Institute for Biophysical Chemistry.

This blog is part of a blog series that covers how we have been working with a team of researchers at the Max Planck Institute for Biophysical Chemistry, helping them leverage the cloud for drug research applications in the pharmaceutical industry.

In this post, we’ll focus on how the team at Max Planck obtained thousands of EC2 Spot Instances spread across multiple AWS Regions for running their compute intensive simulations in a cost-effective manner, and how their solution will be enhanced further using the new Spot Placement Score API.

Computer Aided Drug Design in the cloud

The drug research and development process usually starts with a really large number of potentially promising compounds. From this virtually infinite chemical space, it’s the researcher’s goal to identify potent molecules that might be life-saving. These compounds are then gradually filtered through a multi-stage selection process until eventually a small subset of them are synthesized and thoroughly tested before further approval for use.

After identifying a potential drug candidate (the “lead compound”), the aim is to further optimize this lead into an actual active molecule. Computational methods based on molecular dynamics simulations help this by efficiently reducing the search space to only a few hundred candidates. These can then be processed and tested in later stages, which are increasingly laborious – and expensive.

Computer aided drug design (CADD) is increasingly used in the early drug discovery stage, and thanks to advancements in technology, highly accurate and computationally-intensive methods can be used to select the best possible candidates. This includes a class of methods using molecular dynamics where we simulate the protein-ligand interaction at the atomic level.

These Early drug discovery simulations are usually performed on-premises using large supercomputers shared by multiple research and development institutions. Building that kind of infrastructure takes years and once it’s built it’s expensive to maintain, has limited capacity, and a lot of other users, which means it sometimes takes a long time to get results.

AWS can offer massive capacity which is only provisioned and charged for the duration of a simulation. Besides the lower costs and reduced time to provision the capacity, it also offers increased flexibility by using multiple instance types, different families, and purchasing options. This flexibility means researchers can experiment with many of the available options to find a best fit for each application. This empowers them to achieve the best possible trade-off between time to results and cost for each simulation.

Running GROMACS at scale on EC2 Spot Instances

EC2 Spot Instances enable AWS customers to request unused EC2 capacity at steep discounts, up to 90% compared to On-Demand prices. They’re a great fit for many stateless, fault-tolerant and/or flexible workloads, and are especially suited for loosely coupled computationally-intensive applications running over hundreds or thousands of instances. In these cases, Spot savings can add up to significant amounts of money which can ensure the feasibility of a given workload.

Spot uses capacity pools, which are sets of unused EC2 instances with the same instance type and operating system running within an Availability Zone. When EC2 needs this capacity for another customer, instances are claimed back, with (at least) a two-minute warning.

To be successful with Spot, it helps to be flexible – especially when it comes to your preferred instance types. Diversification across multiple Spot capacity pools means EC2 can provision new instances from other capacity pools in the event of Spot interruptions in a specific pool. Your workload can then resume on the new instances and continue on, often without any visible impact.

For most workloads, Spot diversification is achieved by using multiple instance types and tapping into all the Availability Zones within a Region; the more Availability Zones and instance types, the better the chance to get the desired Spot capacity, and the lower the frequency of Spot interruptions.

The Max Planck research team was interested in using EC2 Spot to provision thousands of instances for running their computationally-intensive simulations. Their GROMACS workload has a few characteristics that make it a great fit for Spot:

  • It’s loosely coupled and instance type flexible – it runs well on CPUs and GPUs.
  • It’s Region flexible – there’s relatively little input data and output data that need to be moved from one place to the next.
  • The acceptable time to get the end results is flexible – it can be measured in hours, days or even more than a week depending on the simulation. Time-flexible workloads like this often present trade-offs between cost and time-to-results.
  • It can implement checkpointing – a job can resume quickly in the face of a Spot interruption. For compute-heavy workloads like molecular dynamics, a task might take hours or days to compute.

In our previous blogs from this series, the Max Planck research team showed benchmark results across multiple instance types, and figured out that the most cost-effective instance types for them are G4dn.xlarge, G4dn.2xlarge and G4dn.4xlarge. But they knew they could also use a larger number of instance types – cost-efficiency varied. They summarized their results, which we’ve shown in Table 1.

Considering the workload’s regional flexibility, and its large capacity needs, we helped the team run them over multiple AWS Regions in parallel using a tool called ‘HyperBatch’. This is a solution, designed by an AWS Solution Architect, which is designed to run AWS Batch across multiple AWS Regions, to secure the required capacity by leveraging large numbers of capacity pools.

Depending on the trade-off between cost and time-to-results that the Max Planck research team is trying to achieve for a given simulation, they had some options for achieving their workload’s Spot capacity:

  • for the lowest possible cost, they could run only on the preferred G4dn GPU instance types – this doesn’t offer much diversification. Since G4dn instances are popular and used for many workloads including HPC, deep learning and graphics rendering, they can often be in short supply in the Spot capacity pools. That can increase the rate of interruptions, which might increase the simulation time to multiple days, which is not always workable.
  • for a faster time-to-results, the team could use a highly-diversified mix of instance types, including a variety of EC2 compute-optimized instances. By increasing the diversification of instances, there’s more compute capacity overall that could satisfy our needs, and we’ll be able to run the simulations sooner.

For this simulation run, the team optimized for shorter time-to-results and used a mix of C5 and G4dn instance types of various sizes, as per the Spot diversification best practices.

To see results for the run, please read the full blog here.

 Reminder: You can learn a lot from AWS HPC engineers by subscribing to the HPC Tech Short YouTube channel, and following the AWS HPC Blog channel.

 

Return to Solution Channel Homepage
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!

Hyperion Study Tracks Rise and Impact of Linux Supercomputers

May 17, 2022

That supercomputers produce impactful, lasting value is a basic tenet among the HPC community. To make the point more formally, Hyperion Research has issued a new report, The Economic and Societal Benefits of Linux Super Read more…

ECP Director Doug Kothe Named ORNL Associate Laboratory Director

May 16, 2022

The Department of Energy's Oak Ridge National Laboratory (ORNL) has selected Doug Kothe to be the next Associate Laboratory Director for its Computing and Computational Sciences Directorate (CCSD), HPCwire has learned. K Read more…

Google Cloud’s New TPU v4 ML Hub Packs 9 Exaflops of AI

May 16, 2022

Almost exactly a year ago, Google launched its Tensor Processing Unit (TPU) v4 chips at Google I/O 2021, promising twice the performance compared to the TPU v3. At the time, Google CEO Sundar Pichai said that Google’s datacenters would “soon have dozens of TPU v4 Pods, many of which will be... Read more…

Q&A with Candace Culhane, SC22 General Chair and an HPCwire Person to Watch in 2022

May 14, 2022

HPCwire is pleased to present our interview with SC22 General Chair Candace Culhane, program/project director at Los Alamos National Lab and an HPCwire 2022 Person to Watch. In this exclusive Q&A, Culhane covers her Read more…

Argonne Supercomputer Advances Energy Storage Research

May 13, 2022

The lack of large-scale energy storage bottlenecks many sources of renewable energy, such as sunlight-reliant solar power and unpredictable wind power. Researchers from Lawrence Livermore National Laboratory (LLNL) are w Read more…

AWS Solution Channel

shutterstock 1103121086

Encoding workflow dependencies in AWS Batch

Most users of HPC or Batch systems need to analyze data with multiple operations to get meaningful results. That’s really driven by the nature of scientific research or engineering processes – it’s rare that a single task generates the insight you need. Read more…

Supercomputing an Image of Our Galaxy’s Supermassive Black Hole

May 13, 2022

A supermassive black hole called Sagittarius A* (yes, the asterisk is part of it!) sits at the center of the Milky Way. Now, for the first time, we can see it. The resulting direct image of Sagittarius A*, revealed this Read more…

Google Cloud’s New TPU v4 ML Hub Packs 9 Exaflops of AI

May 16, 2022

Almost exactly a year ago, Google launched its Tensor Processing Unit (TPU) v4 chips at Google I/O 2021, promising twice the performance compared to the TPU v3. At the time, Google CEO Sundar Pichai said that Google’s datacenters would “soon have dozens of TPU v4 Pods, many of which will be... Read more…

Q&A with Candace Culhane, SC22 General Chair and an HPCwire Person to Watch in 2022

May 14, 2022

HPCwire is pleased to present our interview with SC22 General Chair Candace Culhane, program/project director at Los Alamos National Lab and an HPCwire 2022 Per Read more…

Supercomputing an Image of Our Galaxy’s Supermassive Black Hole

May 13, 2022

A supermassive black hole called Sagittarius A* (yes, the asterisk is part of it!) sits at the center of the Milky Way. Now, for the first time, we can see it. Read more…

Royalty-free stock illustration ID: 1919750255

Intel Says UCIe to Outpace PCIe in Speed Race

May 11, 2022

Intel has shared more details on a new interconnect that is the foundation of the company’s long-term plan for x86, Arm and RISC-V architectures to co-exist in a single chip package. The semiconductor company is taking a modular approach to chip design with the option for customers to cram computing blocks such as CPUs, GPUs and AI accelerators inside a single chip package. Read more…

Intel Extends IPU Roadmap Through 2026

May 10, 2022

Intel is extending its roadmap for infrastructure processors through 2026, the company said at its Vision conference being held in Grapevine, Texas. The company's IPUs (infrastructure processing units) are megachips that are designed to improve datacenter efficiency by offloading functions such as networking control, storage management and security that were traditionally... Read more…

Exascale Watch: Aurora Installation Underway, Now Open for Reservations

May 10, 2022

Installation has begun on the Aurora supercomputer, Rick Stevens (associate director of Argonne National Laboratory) revealed today during the Intel Vision event keynote taking place in Dallas, Texas, and online. Joining Intel exec Raja Koduri on stage, Stevens confirmed that the Aurora build is underway – a major development for a system that is projected to deliver more... Read more…

Intel’s Habana Labs Unveils Gaudi2, Greco AI Processors

May 10, 2022

At the hybrid Intel Vision event today, Intel’s Habana Labs team launched two major new products: Gaudi2, the second generation of the Gaudi deep learning training processor; and Greco, the successor to the Goya deep learning inference processor. Intel says that the processors offer significant speedups relative to their predecessors and the... Read more…

IBM Unveils Expanded Quantum Roadmap; Talks Up ‘Quantum-Centric Supercomputer’

May 10, 2022

IBM today issued an extensive and detailed expansion of its Quantum Roadmap that calls for developing a new 1386-qubit processor – Kookaburra – built from modularly scaled chips, and delivering a 4,158-qubit POC system built using three connected Kookaburra processors by 2025. Kookaburra (Australian Kingfisher) is a new architecture... Read more…

Nvidia R&D Chief on How AI is Improving Chip Design

April 18, 2022

Getting a glimpse into Nvidia’s R&D has become a regular feature of the spring GTC conference with Bill Dally, chief scientist and senior vice president of research, providing an overview of Nvidia’s R&D organization and a few details on current priorities. This year, Dally focused mostly on AI tools that Nvidia is both developing and using in-house to improve... Read more…

Royalty-free stock illustration ID: 1919750255

Intel Says UCIe to Outpace PCIe in Speed Race

May 11, 2022

Intel has shared more details on a new interconnect that is the foundation of the company’s long-term plan for x86, Arm and RISC-V architectures to co-exist in a single chip package. The semiconductor company is taking a modular approach to chip design with the option for customers to cram computing blocks such as CPUs, GPUs and AI accelerators inside a single chip package. Read more…

Facebook Parent Meta’s New AI Supercomputer Will Be ‘World’s Fastest’

January 24, 2022

Fresh off its rebrand last October, Meta (née Facebook) is putting muscle behind its vision of a metaversal future with a massive new AI supercomputer called the AI Research SuperCluster (RSC). Meta says that RSC will be used to help build new AI models, develop augmented reality tools, seamlessly analyze multimedia data and more. The supercomputer’s... Read more…

AMD/Xilinx Takes Aim at Nvidia with Improved VCK5000 Inferencing Card

March 8, 2022

AMD/Xilinx has released an improved version of its VCK5000 AI inferencing card along with a series of competitive benchmarks aimed directly at Nvidia’s GPU line. AMD says the new VCK5000 has 3x better performance than earlier versions and delivers 2x TCO over Nvidia T4. AMD also showed favorable benchmarks against several Nvidia GPUs, claiming its VCK5000 achieved... Read more…

In Partnership with IBM, Canada to Get Its First Universal Quantum Computer

February 3, 2022

IBM today announced it will deploy its first quantum computer in Canada, putting Canada on a short list of countries that will have access to an IBM Quantum Sys Read more…

Supercomputer Simulations Show How Paxlovid, Pfizer’s Covid Antiviral, Works

February 3, 2022

Just about a month ago, Pfizer scored its second huge win of the pandemic when the U.S. Food and Drug Administration issued another emergency use authorization Read more…

Nvidia Launches Hopper H100 GPU, New DGXs and Grace Superchips

March 22, 2022

The battle for datacenter dominance keeps getting hotter. Today, Nvidia kicked off its spring GTC event with new silicon, new software and a new supercomputer. Speaking from a virtual environment in the Nvidia Omniverse 3D collaboration and simulation platform, CEO Jensen Huang introduced the new Hopper GPU architecture and the H100 GPU... Read more…

PsiQuantum’s Path to 1 Million Qubits

April 21, 2022

PsiQuantum, founded in 2016 by four researchers with roots at Bristol University, Stanford University, and York University, is one of a few quantum computing startups that’s kept a moderately low PR profile. (That’s if you disregard the roughly $700 million in funding it has attracted.) The main reason is PsiQuantum has eschewed the clamorous public chase for... Read more…

Leading Solution Providers

Contributors

Nvidia Dominates MLPerf Inference, Qualcomm also Shines, Where’s Everybody Else?

April 6, 2022

MLCommons today released its latest MLPerf inferencing results, with another strong showing by Nvidia accelerators inside a diverse array of systems. Roughly fo Read more…

D-Wave to Go Public with SPAC Deal; Expects ~$1.6B Market Valuation

February 8, 2022

Quantum computing pioneer D-Wave today announced plans to go public via a SPAC (special purpose acquisition company) mechanism. D-Wave will merge with DPCM Capital in a transaction expected to produce $340 million in cash and result in a roughly $1.6 billion initial market valuation. The deal is expected to be completed in the second quarter of 2022 and the new company will be traded on the New York Stock... Read more…

Intel Announces Falcon Shores CPU-GPU Combo Architecture for 2024

February 18, 2022

Intel held its 2022 investor meeting yesterday, covering everything from the imminent Sapphire Rapids CPUs to the hotly anticipated (and delayed) Ponte Vecchio GPUs. But somewhat buried in its summary of the meeting was a new namedrop: “Falcon Shores,” described as “a new architecture that will bring x86 and Xe GPU together into a single socket.” The reveal was... Read more…

Industry Consortium Forms to Drive UCIe Chiplet Interconnect Standard

March 2, 2022

A new industry consortium aims to establish a die-to-die interconnect standard – Universal Chiplet Interconnect Express (UCIe) – in support of an open chipl 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…

Nvidia Defends Arm Acquisition Deal: a ‘Once-in-a-Generation Opportunity’

January 13, 2022

GPU-maker Nvidia is continuing to try to keep its proposed acquisition of British chip IP vendor Arm Ltd. alive, despite continuing concerns from several governments around the world. In its latest action, Nvidia filed a 29-page response to the U.K. government to point out a list of potential benefits of the proposed $40 billion deal. Read more…

Nvidia Acquires Software-Defined Storage Provider Excelero

March 7, 2022

Nvidia has announced that it has acquired Excelero. The high-performance block storage provider, founded in 2014, will have its technology integrated into Nvidia’s enterprise software stack. Nvidia is not disclosing the value of the deal. Excelero’s core product, Excelero NVMesh, offers software-defined block storage via networked NVMe SSDs. NVMesh operates through... 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…

  • arrow
  • Click Here for More Headlines
  • arrow
HPCwire