Giter Site home page Giter Site logo

gpu-test's Introduction

GPU Communication Bandwidth Test
================================

This suite of scripts tests GPU communication bandwidth utilizing NCCL (NVIDIA Collective Communications Library) primitives. It supports operations such as all-reduce, all-to-all, all-gather, and broadcast across configurations including single-node-multi-card and multi-node-multi-card environments. The implementation relies exclusively on PyTorch and Python's built-in libraries.

For detailed approaches on NCCL bandwidth computation, see the NCCL Tests Performance Documentation at:
https://github.com/NVIDIA/nccl-tests/blob/master/doc/PERFORMANCE.md


Prerequisites
-------------
- PyTorch
- Python's built-in libraries
- Access to one or more nodes equipped with NVIDIA GPUs


Running the Tests
-----------------

Single Node:
By default, the master address is set to 10.20.1.85.

To run the test on a single node, follow these steps:

1. Prepare the Environment: Navigate to root working directory.
   cd gpu-test

2. Run the Script: Execute the provided bash script.
   bash run.sh

Multiple Nodes:
For scenarios involving multiple nodes, need to manually execute torchrun on all nodes with the appropriate configurations.

- Master Node (Address: 10.20.1.83):
  `torchrun --nnodes=2 --nproc-per-node=8 --node_rank=0 --master_addr=10.20.1.83 test.py`

- Slave Node (Address: 10.20.1.179):
  `torchrun --nnodes=2 --nproc-per-node=8 --node_rank=1 --master_addr=10.20.1.83 test.py`

Ensure the `--nnodes`, `--nproc-per-node`, `--node_rank`, and `--master_addr` arguments are correctly set for specific multi-node setup.

gpu-test's People

Contributors

char-1ee avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.