|
| 1 | +Installation |
| 2 | +============================== |
| 3 | + |
| 4 | +.. toctree:: |
| 5 | + :maxdepth: 1 |
| 6 | + :caption: Contents: |
| 7 | + |
| 8 | +You need the following to install OpenEquivariance: |
| 9 | + |
| 10 | +- A Linux system equipped with an NVIDIA / AMD graphics card. |
| 11 | +- PyTorch >= 2.4 (>= 2.8 for AOTI and export). |
| 12 | +- GCC 9+ and the CUDA / HIP toolkit. The command |
| 13 | + ``c++ --version`` should return >= 9.0; see below for details on |
| 14 | + setting an alternate compiler. |
| 15 | + |
| 16 | +Installation is one easy command, followed by import verification: |
| 17 | + |
| 18 | +.. code-block:: bash |
| 19 | +
|
| 20 | + pip install git+https://github.com/PASSIONLab/OpenEquivariance |
| 21 | + python -c "import openequivariance" |
| 22 | +
|
| 23 | +The second line triggers a build of the C++ extension we use to compile |
| 24 | +kernels, which can take a couple of minutes. Subsequent imports are |
| 25 | +much faster since this extension is cached. |
| 26 | + |
| 27 | + |
| 28 | +Compiling the Integrated PyTorch Extension |
| 29 | +------------------------------------------ |
| 30 | +To support ``torch.compile``, ``torch.export``, and |
| 31 | +JITScript, OpenEquivariance needs to compile a C++ extension |
| 32 | +tightly integrated with PyTorch. If you see a warning that |
| 33 | +this extension could not be compiled, first check: |
| 34 | + |
| 35 | +.. code-block:: bash |
| 36 | +
|
| 37 | + c++ --version |
| 38 | + |
| 39 | +To build the extension with an alternate compiler, set the |
| 40 | +``CC`` and ``CXX`` |
| 41 | +environment variable and retry the import: |
| 42 | + |
| 43 | +.. code-block:: bash |
| 44 | +
|
| 45 | + export CCC=/path/to/your/gcc |
| 46 | + export CXX=/path/to/your/g++ |
| 47 | + python -c "import openequivariance" |
| 48 | +
|
| 49 | +These configuration steps are required only ONCE after |
| 50 | +installation (or upgrade) with pip. |
| 51 | + |
| 52 | +Configurations on Major Platforms |
| 53 | +--------------------------------- |
| 54 | +OpenEquivariance has been tested on both supercomputers and lab clusters. |
| 55 | +Here are some tested environment configuration files. If use OpenEquivariance |
| 56 | +on a widely-used platform, send us a pull request to add your configuration! |
| 57 | + |
| 58 | +NERSC Perlmutter (NVIDIA A100) |
| 59 | +"""""""""""""""""""""""""""""" |
| 60 | + |
| 61 | +.. code-block:: bash |
| 62 | + :caption: env.sh (last updated June 2024) |
| 63 | +
|
| 64 | + module load gcc |
| 65 | + module load conda |
| 66 | +
|
| 67 | + # Deactivate any base environments |
| 68 | + for i in $(seq ${CONDA_SHLVL}); do |
| 69 | + conda deactivate |
| 70 | + done |
| 71 | +
|
| 72 | + conda activate <your-conda-env> |
| 73 | +
|
| 74 | +
|
| 75 | +OLCF Frontier (AMD MI250x) |
| 76 | +"""""""""""""""""""""""""" |
| 77 | +You need to install a HIP-enabled verison of PyTorch to use our package. |
| 78 | +To do this, follow the steps `here <https://docs.olcf.ornl.gov/software/analytics/pytorch_frontier.html>`_. |
| 79 | + |
| 80 | + |
| 81 | +.. code-block:: bash |
| 82 | + :caption: env.sh (last updated June 2024) |
| 83 | +
|
| 84 | + module load PrgEnv-gnu/8.6.0 |
| 85 | + module load miniforge3/23.11.0-0 |
| 86 | + module load rocm/6.4.0 |
| 87 | + module load craype-accel-amd-gfx90a |
| 88 | +
|
| 89 | + for i in $(seq ${CONDA_SHLVL}); do |
| 90 | + conda deactivate |
| 91 | + done |
| 92 | +
|
| 93 | + conda activate <your-conda-env> |
| 94 | + export CC=cc |
| 95 | + export CXX=CC |
0 commit comments