Skip to content

Commit 9019f8e

Browse files
committed
updating nccl interface documantation
1 parent a920a6c commit 9019f8e

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

apps/nccl/README.md

+19
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,22 @@ The table below lists all NCCL APIs (v2.21). We may cover more APIs in the futur
4444
| ncclRecv | X |
4545
| ncclRedOpCreatePreMulSum | X |
4646
| ncclRedOpDestroy | X |
47+
48+
### Executor Support
49+
50+
The executor is a versatile tool designed to specify how mscclpp executes algorithms. Currently, only the allReduce operation allows for algorithm customization. The following environment variables can be managed:
51+
52+
- ALLREDUCEPKT_IP_JSON_FILE: Specifies the path to the JSON file that defines the algorithm for small-sized, in-place operations.
53+
- ALLREDUCEPKT_OP_JSON_FILE: Specifies the path to the JSON file that defines the algorithm for small-sized, out-of-place operations.
54+
- ALLREDUCE_IP_JSON_FILE: Specifies the path to the JSON file that defines the algorithm for larger-sized, in-place operations.
55+
- ALLREDUCE_OP_JSON_FILE: Specifies the path to the JSON file that defines the algorithm for larger-sized, out-of-place operations.
56+
- ALLREDUCE_SMALL_MSG_BOUNDARY: Defines the size threshold at which the algorithm will switch between fallback code and the customized algorithm for small messages.
57+
- ALLREDUCE_LARGE_MSG_BOUNDARY: Defines the size threshold at which the algorithm will switch between the customized algorithm for small messages and that for larger messages.
58+
59+
| <center>Decision Flowchart for Message Size-Based Algorithm Execution |
60+
|-------------------------------|
61+
| <img src="../.././docs/figs/size_boundary_diagram.png" alt="MSCCL++ Abstractions" style="width: 800px;"/> |
62+
63+
This is an example of executing the interface with the executor:
64+
``` bash
65+
mpirun -np 8 -x ALLREDUCEPKT_IP_JSON_FILE=/root/azure-mscclpp/nccl/test/execution-files/allreducepacket.json -x ALLREDUCE_IP_JSON_FILE=/root/azure-mscclpp/nccl/test/execution-files/allreducesm.json -x ALLREDUCE_SMALL_MSG_BOUNDARY=16K -x ALLREDUCE_LARGE_MSG_BOUNDARY=1M ./apps/nccl/test/nccl_api_test

docs/figs/size_boundary_diagram.png

21.3 KB
Loading

0 commit comments

Comments
 (0)