Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
aghaeifar committed Jul 12, 2024
1 parent f7fef3f commit a2e8a4e
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 9 deletions.
15 changes: 15 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,18 @@

html_theme = 'sphinx_rtd_theme'
html_static_path = ['_static']


html_logo = "_static/logo.png"


# Specify master doc so build at read the docs won't fail
master_doc = "index"

# Syntax highlighting
pygments_style = "stata-light"
pygments_dark_style = "stata-dark"

autodoc_default_options = {
"imported-members": True,
}
2 changes: 2 additions & 0 deletions docs/source/file format.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
File Format
***********
14 changes: 5 additions & 9 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,8 @@ Welcome to SpinWalk's documentation!
.. toctree::
:maxdepth: 2
:caption: Contents:



Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

installation
tutorial
file format
View on GitHub <https://github.com/aghaeifar/SpinWalk>
50 changes: 50 additions & 0 deletions docs/source/installation.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
###############
Installation
###############


***************
How to build
***************

You can either use the supplied Dockerfile for a consistent build that includes all dependencies, or install the dependencies separately and compile using CMake.

Docker
===============

We suggest utilizing the provided Dockerfile, which automates the installation of all dependencies, as well as the cloning and building of the program. Download the Dockerfile to your current directory and then execute the following commands:


In almost any documentation you need to show examples like:


.. code-block:: bash
docker build --no-cache -t spinwalk .
docker run --gpus all --rm -it --runtime=nvidia spinwalk bash
CMake
===============

Dependencies
---------------
* A C++ compiler supprting C++ 20
* CUDA driver (nvidia-smi and nvcc --version must run in terminal)
* Boost libraries (+)
* HDF5 Library (+)
* Threading Building Blocks (TBB).

If you prefer to install the program without using Docker, follow these steps (tested in Ubuntu 22.04):

.. code-block:: bash
sudo apt-get update && apt-get install -y libboost-all-dev libhdf5-dev libtbb-dev
git clone https://github.com/aghaeifar/SpinWalk.git
cd SpinWalk
cmake -B ./build
cmake --build ./build --config Release
**********************
Quick test after build
**********************
After building the program, simply launch ``spinwalk`` in the terminal to view the help menu with all available options. At the end of the output, the detected GPUs and driver must be displayed.
2 changes: 2 additions & 0 deletions docs/source/tutorial.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Tutorial
*********

0 comments on commit a2e8a4e

Please sign in to comment.