======================
Developer Guide
======================
------------------------------------------
ALCF Polaris
------------------------------------------
These are steps that are needed to compile :code:`dftracer` on `ALCF Polaris `_
First, make sure you have set up the environment variable and source it as shown `here `_. Then, you can modify the :code:`dftracer` codebase and compile the codebase by running commands below:
.. code-block:: bash
module use /soft/modulefiles
module load conda
module unload darshan
conda activate base
source
export CC=cc
export CXX=CC
export CMAKE_BUILD_TYPE=PROFILE
export DFTRACER_ENABLE_TESTS=On
export DFTRACER_LOGGER_USER=1
export DFTRACER_DISABLE_HWLOC=On
export DFTRACER_TEST_LD_LIBRARY_PATH=/opt/cray/libfabric/1.15.2.0/lib64
pip install -v ".[dfanalyzer]"
.. note::
We need to disable :code:`darshan` here because it will give you a lot of :code:`segfault` on Polaris machine due to POSIX API interceptor done by Darshan
Then, to run the the test, you need to run commands below:
.. code-block:: bash
module use /soft/modulefiles
module load conda
module unload darshan
conda activate base
source
pip install -r test/py/requirements.txt
pushd build/temp*/*dftracer*/
ctest -E dlio -VV --debug --stop-on-failure
popd
Updating Docs
=============
For updating the docs we need to install additional dependency :code:`Sphinx`
.. code-block:: bash
module use /soft/modulefiles
module load conda
module unload darshan
conda activate base
source
pip install "Sphinx<7"
cd /docs
make html
Then open :code:`_build/html/index.html`