Skip to content

Commit 4a8c14d

Browse files
committed
DOC: update build command, run from root folder
Use option --disable-darshan-util to build without utility tools Use option --disable-darshan-runtime to build without runtime libraries
1 parent 4562fc8 commit 4a8c14d

File tree

2 files changed

+84
-42
lines changed

2 files changed

+84
-42
lines changed

darshan-runtime/doc/darshan-runtime.rst

Lines changed: 37 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -79,31 +79,51 @@ Compilation
7979

8080
**Configure and build example (with MPI support)**
8181

82-
.. code-block:: bash
82+
* When using the release tar ball:
8383

84-
tar -xvzf darshan-<version-number>.tar.gz
85-
cd darshan-<version-number>/
86-
./prepare.sh
87-
cd darshan-runtime/
88-
./configure --with-log-path=/darshan-logs --with-jobid-env=PBS_JOBID CC=mpicc
89-
make
90-
make install
84+
.. code-block:: bash
85+
86+
tar -xvzf darshan-<version-number>.tar.gz
87+
cd darshan-<version-number>/
88+
./configure --with-log-path=/darshan-logs --with-jobid-env=PBS_JOBID CC=mpicc
89+
make -j 8 install
90+
91+
* When cloning from Darshan's reposatory from Github.com:
92+
93+
.. code-block:: bash
9194
95+
git clone https://github.com/darshan-hpc/darshan.git
96+
cd darshan
97+
autoreconf -i
98+
./configure --with-log-path=/darshan-logs --with-jobid-env=PBS_JOBID CC=mpicc
99+
make -j 8 install
92100
93101
**Configure and build example (without MPI support)**
94102

95-
.. code-block:: bash
103+
* When using the release tar ball:
104+
105+
.. code-block:: bash
106+
107+
tar -xvzf darshan-<version-number>.tar.gz
108+
cd darshan-<version-number>/
109+
./configure --with-log-path=/darshan-logs --with-jobid-env=PBS_JOBID --without-mpi CC=gcc
110+
make -j 8 install
111+
112+
* When cloning from Darshan's reposatory from Github.com:
113+
114+
.. code-block:: bash
96115
97-
tar -xvzf darshan-<version-number>.tar.gz
98-
cd darshan-<version-number>/
99-
./prepare.sh
100-
cd darshan-runtime/
101-
./configure --with-log-path=/darshan-logs --with-jobid-env=PBS_JOBID --without-mpi CC=gcc
102-
make
103-
make install
116+
git clone https://github.com/darshan-hpc/darshan.git
117+
cd darshan
118+
autoreconf -i
119+
./configure --with-log-path=/darshan-logs --with-jobid-env=PBS_JOBID --without-mpi CC=gcc
120+
make -j 8
121+
make install
104122
105123
**Explanation of configure arguments:**
106124

125+
* ``--disable-darshan-util``: Build without Darshan utility tools
126+
(default: enable).
107127
* ``--with-mem-align=NUM``: This value is system-dependent and will be used by
108128
Darshan to determine if the buffer for a read or write operation is
109129
aligned in memory (default is 8).
@@ -858,7 +878,7 @@ path, respectively.
858878
--with-jobid-env=SLURM_JOBID \
859879
--with-username-env=SLURM_JOB_USER \
860880
CC=cc
861-
make install
881+
make -j 8 install
862882
module swap PrgEnv-gnu PrgEnv-pgi
863883
864884

darshan-util/doc/darshan-util.rst

Lines changed: 47 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,23 @@ Compilation and installation
4040

4141
**Configure and build example**
4242

43-
.. code-block:: bash
43+
* When using the release tar ball:
44+
45+
.. code-block:: bash
46+
47+
tar -xvzf darshan-<version-number>.tar.gz
48+
./configure
49+
make -j 8 install
4450
45-
tar -xvzf darshan-<version-number>.tar.gz
46-
cd darshan-<version-number>/
47-
./prepare.sh
48-
cd darshan-util/
49-
./configure
50-
make
51-
make install
51+
* When cloning from Darshan's reposatory from Github.com:
52+
53+
.. code-block:: bash
54+
55+
git clone https://github.com/darshan-hpc/darshan.git
56+
cd darshan
57+
autoreconf -i
58+
./configure
59+
make -j 8 install
5260
5361
The darshan-util package is intended to be used on a login node or workstation.
5462
For most use cases this means that you should either leave ``CC`` to its
@@ -63,23 +71,37 @@ alternative paths for zlib and libbz2 development libraries. darshan-util also
6371
supports VPATH or "out-of-tree" builds if you prefer that method of
6472
compilation.
6573

66-
The ``--enable-shared`` argument to configure can be used to enable compilation
67-
of a shared version of the darshan-util library.
68-
69-
The ``--enable-apmpi-mod`` and ``--enable-apxc-mod`` configure arguments must
70-
be specified to build darshan-util with support for AutoPerf APMPI and APXC
71-
modules, respectively.
72-
73-
.. note::
74-
AutoPerf log analysis code is provided as Git submodules to Darshan's main
75-
repository, so if building Darshan source that has been cloned from Git, it
76-
is necessary to first retrieve the AutoPerf submodules by running the
77-
following command:
78-
79-
.. code-block:: bash
80-
81-
git submodule update --init
82-
74+
**Explanation of configure arguments:**
75+
76+
* ``--disable-darshan-runtime``: Build without Darshan runtime libraries
77+
(default: enable).
78+
* ``--disable-shared``: Build without a shared version of the darshan-util
79+
library (default: enable).
80+
* ``--enable-apmpi-mod``: Build darshan-util with support for AutoPerf APMPI
81+
modules (default: disable).
82+
* ``--enable-apxc-mod``: Build darshan-util with support for AutoPerf APXC
83+
modules (default: disable).
84+
85+
.. note::
86+
AutoPerf log analysis code is provided as Git submodules to Darshan's main
87+
repository, so if building Darshan source that has been cloned from Git,
88+
it is necessary to first retrieve the AutoPerf submodules by running the
89+
following command:
90+
91+
.. code-block:: bash
92+
93+
git submodule update --init
94+
* ``--enable-pydarshan``: Build pydarshan module and tools (default: disable).
95+
* ``--with-zlib=DIR``: root directory path of zlib installation (default:
96+
/usr/local or /usr if not found in /usr/local).
97+
* ``--without-zlib``: Disable zlib usage completely.
98+
* ``--with-bzlib=DIR``: root directory path of bzlib installation (default:
99+
/usr/local or /usr if not found in /usr/local).
100+
* ``--without-bzlib``: Disable bzlib usage completely
101+
* ``--with-python-sys-prefix``: Use Python's ``sys.prefix`` and
102+
``sys.exec_prefix`` values.
103+
* ``--with-python_prefix``: override the default ``PYTHON_PREFIX``.
104+
* ``--with-python_exec_prefix``: override the default ``PYTHON_EXEC_PREFIX``.
83105

84106
**********************************
85107
Analyzing log files

0 commit comments

Comments
 (0)