Update Dockerfile to use CMake-based build (#1630)
* [DOCKER] Update Dockerfile to switch to CMake build * Fix typo in Dockerfile.ubuntu * Add README to docker sub-dir * Update Dockerfile and README * Modify markdown headings in docker/README * Update docs * Fix typo in docs * Update docs/install/docker-install.rst Co-authored-by: Jeffrey Novotny <jnovotny@amd.com> * Update docs/install/docker-install.rst Co-authored-by: Jeffrey Novotny <jnovotny@amd.com> * Update docs/install/docker-install.rst Co-authored-by: Jeffrey Novotny <jnovotny@amd.com> * Update docker/README --------- Signed-off-by: nileshnegi <Nilesh.Negi@amd.com> Co-authored-by: Jeffrey Novotny <jnovotny@amd.com>
This commit is contained in:
@@ -14,7 +14,7 @@ To build the Docker image and run the container, follow these steps.
|
||||
#. Build the Docker image
|
||||
|
||||
By default, the Dockerfile uses ``docker.io/rocm/dev-ubuntu-22.04:latest`` as the base Docker image.
|
||||
It then installs RCCL and rccl-tests (in both cases, it uses the version from the RCCL ``develop`` branch).
|
||||
It then installs RCCL and rccl-tests (in both cases, it uses the version from the ``develop`` branch).
|
||||
|
||||
Use this command to build the Docker image:
|
||||
|
||||
@@ -22,24 +22,30 @@ To build the Docker image and run the container, follow these steps.
|
||||
|
||||
docker build -t rccl-tests -f Dockerfile.ubuntu --pull .
|
||||
|
||||
The base Docker image, rccl repository, and rccl-tests repository can be modified
|
||||
by using ``--build-args`` in the ``docker build`` command above. For example, to use a different base Docker image,
|
||||
The base Docker image, rccl repository, rccl-tests repository, and GPU targets can be modified
|
||||
by using ``--build-args`` in the ``docker build`` command above. For example, to use a different base Docker image for the MI250 GPU,
|
||||
use this command:
|
||||
|
||||
.. code-block:: shell
|
||||
|
||||
docker build -t rccl-tests -f Dockerfile.ubuntu --build-arg="ROCM_IMAGE_NAME=rocm/dev-ubuntu-20.04" --build-arg="ROCM_IMAGE_TAG=6.2" --pull .
|
||||
docker build -t rccl-tests -f Dockerfile.ubuntu --build-arg="ROCM_IMAGE_NAME=rocm/dev-ubuntu-20.04" --build-arg="ROCM_IMAGE_TAG=6.2" --build-arg="GPU_TARGETS=gfx90a" --pull .
|
||||
|
||||
#. Launch an interactive Docker container on a system with AMD GPUs:
|
||||
|
||||
.. code-block:: shell
|
||||
|
||||
docker run -it --rm --device=/dev/kfd --device=/dev/dri --group-add video --ipc=host --network=host --cap-add=SYS_PTRACE --security-opt seccomp=unconfined rccl-tests /bin/bash
|
||||
docker run --rm --device=/dev/kfd --device=/dev/dri --group-add video --ipc=host --network=host --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -it rccl-tests /bin/bash
|
||||
|
||||
To run, for example, the ``all_reduce_perf`` test from rccl-tests on 8 AMD GPUs from inside the Docker container, use this command:
|
||||
|
||||
If using ROCm 6.3.x or earlier
|
||||
.. code-block:: shell
|
||||
|
||||
mpirun --allow-run-as-root -np 8 --mca pml ucx --mca btl ^openib -x NCCL_DEBUG=VERSION -x HSA_NO_SCRATCH_RECLAIM=1 /workspace/rccl-tests/build/all_reduce_perf -b 1 -e 16G -f 2 -g 1
|
||||
|
||||
If using ROCm 6.4.0 or later
|
||||
.. code-block:: shell
|
||||
|
||||
mpirun --allow-run-as-root -np 8 --mca pml ucx --mca btl ^openib -x NCCL_DEBUG=VERSION /workspace/rccl-tests/build/all_reduce_perf -b 1 -e 16G -f 2 -g 1
|
||||
|
||||
For more information on the rccl-tests options, see the `Usage guidelines <https://github.com/ROCm/rccl-tests#usage>`_ in the GitHub repository.
|
||||
For more information on the rccl-tests options, see the `Usage guidelines <https://github.com/ROCm/rccl-tests#usage>`_ in the GitHub repository.
|
||||
|
||||
Reference in New Issue
Block a user