Skip to content

Commit a2e8a4e

Browse files
committed
.
1 parent f7fef3f commit a2e8a4e

File tree

5 files changed

+74
-9
lines changed

5 files changed

+74
-9
lines changed

docs/source/conf.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,18 @@
2626

2727
html_theme = 'sphinx_rtd_theme'
2828
html_static_path = ['_static']
29+
30+
31+
html_logo = "_static/logo.png"
32+
33+
34+
# Specify master doc so build at read the docs won't fail
35+
master_doc = "index"
36+
37+
# Syntax highlighting
38+
pygments_style = "stata-light"
39+
pygments_dark_style = "stata-dark"
40+
41+
autodoc_default_options = {
42+
"imported-members": True,
43+
}

docs/source/file format.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
File Format
2+
***********

docs/source/index.rst

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,8 @@ Welcome to SpinWalk's documentation!
99
.. toctree::
1010
:maxdepth: 2
1111
:caption: Contents:
12-
13-
14-
15-
Indices and tables
16-
==================
17-
18-
* :ref:`genindex`
19-
* :ref:`modindex`
20-
* :ref:`search`
12+
13+
installation
14+
tutorial
15+
file format
16+
View on GitHub <https://github.com/aghaeifar/SpinWalk>

docs/source/installation.rst

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
###############
2+
Installation
3+
###############
4+
5+
6+
***************
7+
How to build
8+
***************
9+
10+
You can either use the supplied Dockerfile for a consistent build that includes all dependencies, or install the dependencies separately and compile using CMake.
11+
12+
Docker
13+
===============
14+
15+
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:
16+
17+
18+
In almost any documentation you need to show examples like:
19+
20+
21+
.. code-block:: bash
22+
23+
docker build --no-cache -t spinwalk .
24+
docker run --gpus all --rm -it --runtime=nvidia spinwalk bash
25+
26+
CMake
27+
===============
28+
29+
Dependencies
30+
---------------
31+
* A C++ compiler supprting C++ 20
32+
* CUDA driver (nvidia-smi and nvcc --version must run in terminal)
33+
* Boost libraries (+)
34+
* HDF5 Library (+)
35+
* Threading Building Blocks (TBB).
36+
37+
If you prefer to install the program without using Docker, follow these steps (tested in Ubuntu 22.04):
38+
39+
.. code-block:: bash
40+
41+
sudo apt-get update && apt-get install -y libboost-all-dev libhdf5-dev libtbb-dev
42+
git clone https://github.com/aghaeifar/SpinWalk.git
43+
cd SpinWalk
44+
cmake -B ./build
45+
cmake --build ./build --config Release
46+
47+
**********************
48+
Quick test after build
49+
**********************
50+
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.

docs/source/tutorial.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Tutorial
2+
*********

0 commit comments

Comments
 (0)