Swing: Short-cutting Rings for Higher Bandwidth Allreduce

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: De Sensi, Daniele, Bonato, Tommaso, Saam, David, Hoefler, Torsten
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866916146137006080
author De Sensi, Daniele
Bonato, Tommaso
Saam, David
Hoefler, Torsten
author_facet De Sensi, Daniele
Bonato, Tommaso
Saam, David
Hoefler, Torsten
contents The allreduce collective operation accounts for a significant fraction of the runtime of workloads running on distributed systems. One factor determining its performance is the distance between communicating nodes, especially on networks like torus, where a higher distance implies multiple messages being forwarded on the same link, thus reducing the allreduce bandwidth. Torus networks are widely used on systems optimized for machine learning workloads (e.g., Google TPUs and Amazon Trainium devices), as well as on some of the Top500 supercomputers. To improve allreduce performance on torus networks we introduce Swing, a new algorithm that keeps a low distance between communicating nodes by swinging between torus directions. Our analysis and experimental evaluation show that Swing outperforms by up to 3x existing allreduce algorithms for vectors ranging from 32B to 128MiB, on different types of torus and torus-like topologies, regardless of their shape and size.
format Preprint
id arxiv_https___arxiv_org_abs_2401_09356
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Swing: Short-cutting Rings for Higher Bandwidth Allreduce
De Sensi, Daniele
Bonato, Tommaso
Saam, David
Hoefler, Torsten
Distributed, Parallel, and Cluster Computing
Machine Learning
Networking and Internet Architecture
Performance
C.2.4; C.2.2
The allreduce collective operation accounts for a significant fraction of the runtime of workloads running on distributed systems. One factor determining its performance is the distance between communicating nodes, especially on networks like torus, where a higher distance implies multiple messages being forwarded on the same link, thus reducing the allreduce bandwidth. Torus networks are widely used on systems optimized for machine learning workloads (e.g., Google TPUs and Amazon Trainium devices), as well as on some of the Top500 supercomputers. To improve allreduce performance on torus networks we introduce Swing, a new algorithm that keeps a low distance between communicating nodes by swinging between torus directions. Our analysis and experimental evaluation show that Swing outperforms by up to 3x existing allreduce algorithms for vectors ranging from 32B to 128MiB, on different types of torus and torus-like topologies, regardless of their shape and size.
title Swing: Short-cutting Rings for Higher Bandwidth Allreduce
topic Distributed, Parallel, and Cluster Computing
Machine Learning
Networking and Internet Architecture
Performance
C.2.4; C.2.2
url https://arxiv.org/abs/2401.09356