Skip to content

Commit

Permalink
Merge pull request #231 from JX278/master
Browse files Browse the repository at this point in the history
Update Docs for AMGX
  • Loading branch information
maorz1998 authored Mar 30, 2023
2 parents cfc7db9 + 5c64ae7 commit 9ac0bad
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docs/source/qs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,26 @@ If ``df-notorch`` not activated (or you have a self-complied libcantera), specif
. configure.sh --libcantera_dir /your/path/to/libcantera/
source ./bashrc
. install.sh
**3. If you wish to employ the AMGX library for accelerating PDE solving using GPU:**

To begin, you will need to install AMGX. You can find the instructions for installing AMGX on its official website. Follow the instructions provided to install AMGX on your system. Once you have installed AMGX, navigate to the DeepFlame directory and follow the commands below.

.. code-block:: bash
cd ${DF_ROOT}/src/dfMatrix/solver/amgx/
export AMGX_DIR=/your/path/to/AMGX/
cmake -B build
cd build
make
After this, two libraries for enabling DeepFlame with AMGX are available in ``${DF_ROOT}/src/dfMatrix/solver/amgx/build``.
Beforing using AMGX, run:

.. code-block:: bash
export LD_LIBRARY_PATH=${DF_ROOT}/src/dfMatrix/solver/amgx/build:$LD_LIBRARY_PATH
If you want to use AMGX, you will need to add configuration files for AMGX for each euqation under ``system`` folder and name them in the pattern of ``amgxpOptions``, ``amgxUOptions`` . Please refer to the AMGX official website to find out detailed instructions.

0 comments on commit 9ac0bad

Please sign in to comment.