Skip to content

Commit 7278698

Browse files
committed
Clarified use of Mebibytes and Gibibytes for sizes
1 parent 2656c58 commit 7278698

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,14 @@ NCCL tests can run on multiple processes, multiple threads, and multiple CUDA de
3232

3333
### Quick examples
3434

35-
Run on single node with 8 GPUs (`-g 8`), scanning from 8 Bytes to 128MBytes :
35+
Run on single node with 8 GPUs (`-g 8`), scanning from 8 Bytes to 128MiB (Mebibytes), doubling between each test (`-f 2`) :
3636

3737
```shell
3838
$ ./build/all_reduce_perf -b 8 -e 128M -f 2 -g 8
3939
```
4040

41-
Run 64 MPI processes on nodes with 8 GPUs each, for a total of 64 GPUs spread across 8 nodes :
41+
Run 64 MPI processes on nodes with 8 GPUs each, for a total of 64 GPUs spread across 8 nodes.
42+
Scanning from 8 Bytes to 32GiB (Gibibytes), doubling between each test (`-f 2`).
4243
(NB: The nccl-tests binaries must be compiled with `MPI=1` for this case)
4344

4445
```shell
@@ -57,10 +58,10 @@ All tests support the same set of arguments :
5758
* `-t,--nthreads <num threads>` number of threads per process. Default : 1.
5859
* `-g,--ngpus <GPUs per thread>` number of gpus per thread. Default : 1.
5960
* Sizes to scan
60-
* `-b,--minbytes <min size in bytes>` minimum size to start with. Default : 32M.
61-
* `-e,--maxbytes <max size in bytes>` maximum size to end at. Default : 32M.
62-
* Increments can be either fixed or a multiplication factor. Only one of those should be used
63-
* `-i,--stepbytes <increment size>` fixed increment between sizes. Default : 1M.
61+
* `-b,--minbytes <min size in bytes>` minimum size to start with. Default : 32M (Mebibytes).
62+
* `-e,--maxbytes <max size in bytes>` maximum size to end at. Default : 32M (Mebibytes).
63+
* Increments can be either fixed or a multiplication factor. Only one of those should be used.
64+
* `-i,--stepbytes <increment size>` fixed increment between sizes. Default : 1M (Mebibytes).
6465
* `-f,--stepfactor <increment factor>` multiplication factor between sizes. Default : disabled.
6566
* NCCL operations arguments
6667
* `-o,--op <sum/prod/min/max/avg/all>` Specify which reduction operation to perform. Only relevant for reduction operations like Allreduce, Reduce or ReduceScatter. Default : Sum.

src/common.cu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ testResult_t initComms(ncclComm_t* comms, int nComms, int firstRank, int nRanks,
210210
return testSuccess;
211211
}
212212

213+
// NOTE: We use the binary system, so M=Mebibytes and G=Gibibytes
213214
static double parsesize(const char *value) {
214215
long long int units;
215216
double size;

0 commit comments

Comments
 (0)