Skip to content

Commit d6bc0a4

Browse files
committed
Fix grammatical/clarity issues from review
1 parent 602ed33 commit d6bc0a4

File tree

7 files changed

+50
-41
lines changed

7 files changed

+50
-41
lines changed

doc/contributing.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.. _contributing:
12

23
******************
34
Contributing Guide

doc/installation_instructions/basic.rst

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
Basic Installation
55
******************
66

7-
The following instructions serve as a guide for installing both SmartSim and
8-
SmartRedis. SmartSim, despite being a Python-library, has a second build
9-
step for Redis and RedisAI. Please follow these instructions carefully.
7+
The following instructions guide you through installing SmartSim and SmartRedis.
8+
SmartSim, despite being a Python-library, has a second build step for Redis and
9+
RedisAI. Please follow these instructions carefully.
1010

1111
.. note::
1212

@@ -32,26 +32,29 @@ The base prerequisites to install SmartSim and SmartRedis wtih CPU-only support
3232

3333
.. note::
3434

35-
GCC is recommended to build the backends for SmartSim. CUDA 11.8 requires GCC
36-
9 or 11, CUDA 12 requires GCC 11 or higher. SmartRedis can be compiled with
37-
GCC, Intel, Cray, and Nvidia compilers.
35+
We suggest using GCC to build Redis, RedisAI, and the ML backends. For specific
36+
version requirements see the :ref:`Requirements <requirements>` section.
37+
38+
SmartRedis can be compiled with GCC, Intel, Cray, and Nvidia compilers.
3839

3940
ML Library Support
4041
==================
4142

42-
We currently support both Nvidia and AMD GPUs when using RedisAI for GPU
43-
inference. The support for these GPUs often depends on the version of the CUDA
44-
or ROCm stack that is availble on your machine. In _most_ cases, the versions of
45-
the ML frameworks are backwards compatible. If you encounter problems, please
46-
contact us and we can build the backend libraries for your desired version of
47-
CUDA and ROCm.
43+
SmartSim supports using Nvidia and AMD GPUs when using RedisAI for GPU
44+
inference. GPU support often depends on the version of the CUDA or ROCm stack
45+
that is available on your machine. In _most_ cases, the versions of the ML
46+
frameworks are backwards compatible. If you encounter problems, please contact
47+
us at (smartsim at hpe dot com) and we can build the backend libraries for your
48+
desired version of CUDA and/or ROCm.
4849

4950
CPU backends are provided for Apple (both Intel and Apple Silicon) and Linux (x86_64).
5051

5152
Be sure to reference the table below to find which versions of the ML libraries
5253
are supported for your particular platform. Additionally, see :ref:`Platform
5354
Installation Guide <platform-installation>` for helpful information regarding
54-
for specific systems.
55+
specific systems.
56+
57+
.. _requirements:
5558

5659
Linux
5760
-----
@@ -62,7 +65,7 @@ Linux
6265

6366
Additional requirements:
6467

65-
* GCC <= 11
68+
* GCC <= 11 (except 10)
6669
* CUDA Toolkit 11.7 or 11.8
6770
* cuDNN 8.9
6871

@@ -84,6 +87,7 @@ Linux
8487

8588
Additional requirements:
8689

90+
* GCC >= 11
8791
* CUDA Toolkit 12
8892
* cuDNN 8.9
8993

doc/installation_instructions/platform.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
Platform Install Guide
44
======================
55

6-
HPC platforms have specific modules that users can often use so they do not
7-
need to retrieve all of the build dependencies themselves. Some machines
8-
have specific environment variables and/or configuration settings that need
9-
to be set for optimal performance. The below machines have vetted
10-
instructions, please feel free to contribute instructions for your own
11-
machine.
6+
7+
HPC platforms often provide modules that enable user to avoid retrieving all
8+
build dependencies themselves. Additionally, some machines require environment
9+
variables and/or configuration settings that need to be set for optimal
10+
performance. The below machines have vetted instructions. Please feel free to
11+
contribute instructions for your own platform (see :ref:`Contributing Guide
12+
<contributing>`).
1213

1314
.. include:: platform/frontier.rst
1415
.. include:: platform/perlmutter.rst

doc/installation_instructions/troubleshooting/cuda-dependencies.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ Download and install
1818
^^^^^^^^^^^^^^^^^^^^
1919

2020
**Step 1:** Find a location which is globally accessible and has sufficient
21-
storage space (about 12GB) and set an environment variable
21+
storage space (about 12GB) and set an environment variable:
2222

2323
.. code-block:: bash
2424
2525
export CUDA_TOOLKIT_INSTALL_PATH=/path/to/install/location/cudatoolkit
2626
export CUDNN_INSTALL_PATH=/path/to/install/location/cudnn
2727
28-
**Step 2:** Download cudatoolkit and install it
28+
**Step 2:** Download cudatoolkit and install it:
2929

3030
.. tabs::
3131

@@ -43,12 +43,12 @@ storage space (about 12GB) and set an environment variable
4343
wget https://developer.download.nvidia.com/compute/cuda/12.5.0/local_installers/cuda_12.5.0_555.42.02_linux.run
4444
sh ./cuda_12.5.0_555.42.02_linux.run --toolkit --silent --toolkitpath=$CUDA_TOOLKIT_INSTALL_PATH
4545
46-
**Step 3:** Download cuDNN
46+
**Step 3:** Download cuDNN:
4747
For cuDNN, follow `Nvidia's instructions
4848
<https://docs.nvidia.com/deeplearning/cudnn/installation/overview.html>`_ for
4949
downloading cuDNN version 8.9 for either CUDA-11 or CUDA-12.
5050

51-
**Step 4:** Untar the cuDNN archive
51+
**Step 4:** Untar the cuDNN archive:
5252

5353
.. tabs::
5454

@@ -87,8 +87,8 @@ Option 2: Setup Modulefiles
8787
^^^^^^^^^^^^^^^^^^^^^^^^^^^
8888

8989
Alternatively, these environment variables can be setup by using environment
90-
modules instead. This can be especially useful when the CUDA dependencies are
91-
intended to be shared across users.
90+
modules. This is useful when the CUDA dependencies are intended to be shared
91+
across users.
9292

9393
**Step 1:** Download these two modulefiles to a directory of your choosing
9494

doc/installation_instructions/troubleshooting/custom_backends.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ Custom ML backends
33

44
The ML backends (Torch, ONNX Runtime, and Tensorflow) and their associated
55
python packages have different versions and indices that can be supported based
6-
on the intended device (CPU, ROCM, CUDA-11, or CUDA-12). The officially
6+
on the intended device (CPU, ROCm, CUDA-11, or CUDA-12). The officially
77
supported backends are stored in JSON files within the
88
``smartsim/_core/_install/configs/mlpackages`` directory.
99

10-
If you need to define a different version of the backend and/or the packages, we
11-
recommend that you copy one of the JSON files (for example the one at the end of
12-
this section) that SmartSim ships with, modify as needed, and then use ``smart
13-
build --config-dir`` to specify the path to your custom configuration(s).
10+
To customize the version of a backend and/or package, we recommend that you use
11+
a configuration shipped with SmartSim as a template (for example the one at the
12+
end of this section). Copy the file and update as needed. Afterwards, use
13+
``smart build --config-dir`` to tell the build process to use custom
14+
configuration(s).
1415

1516
The following table describes the main fields needed to define a machine learning
1617
backend used by RedisAI.

doc/installation_instructions/troubleshooting/offline.rst

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Airgapped Systems
22
-----------------
33

4-
SmartSim implictly assumes that dependencies can be retrieved via the Internet.
5-
The ``smart build`` step can be bypassed by transferring the build artifacts
6-
from a different machine.
4+
SmartSim assumes that dependencies can be retrieved via the Internet. The
5+
``smart build`` step can be bypassed by transferring the build artifacts from a
6+
different machine.
77

88
.. warning::
99

@@ -13,10 +13,12 @@ from a different machine.
1313
<https://redis.io/legal/rsalv2-agreement/>`_).
1414

1515

16-
The easiest way to accomplish this assumes that you have a machine that can be
17-
connected to the internet and has built SmartSim (referred to as Machine A).
18-
This machine should have a similar compilation and build environment as the
19-
target machine (referred to as Machine B) to ensure compatibility.
16+
The easiest way to accomplish this assumes that you have the following
17+
- A source machine connected to the internet with SmartSim built (referred to as Machine A).
18+
- A target machine not connected to the Internet
19+
20+
.. warning::
21+
The build and compilation environments of Machine A and B must be compatibile.
2022

2123
**Step 1:** Note the path to SmartSim's ``core`` directory on Machine A
2224

doc/installation_instructions/troubleshooting/troubleshooting.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
Installation Troubleshooting
44
============================
55

6-
SmartSim has been installed on a variety of systems and our users often have
7-
different build environments and toolchains. The following two sections detail
8-
some common situations and how to setup and modify your build environment:
6+
SmartSim has been installed on a variety of systems with different build
7+
environments and toolchains. The following two sections detail some common
8+
situations and how to configure your build environment:
99

1010
.. include:: generic.rst
1111

0 commit comments

Comments
 (0)