File: downloadAndBuild.rst

package info (click to toggle)
adios2 2.10.2%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 33,764 kB
  • sloc: cpp: 175,964; ansic: 160,510; f90: 14,630; yacc: 12,668; python: 7,275; perl: 7,126; sh: 2,825; lisp: 1,106; xml: 1,049; makefile: 579; lex: 557
file content (42 lines) | stat: -rw-r--r-- 1,114 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Download And Build
==================

.. _sec:tutorials_download_and_build:

First, you need to clone the ADIOS2 repository. You can do this by running the following command:

.. code-block:: bash

  git clone https://github.com/ornladios/ADIOS2.git ADIOS2

.. note::

   ADIOS2 uses `CMake <https://cmake.org/>`_ for building, testing and installing the library and utilities.
   So you need to have CMake installed on your system.

Then, create a build directory, run CMake, and build ADIOS2:

.. code-block:: bash

  cd ADIOS2
  mkdir build
  cd build
  cmake -DADIOS2_USE_MPI=ON ..
  cmake --build .

.. note::

  If you want to know more about the ADIOS2's CMake options, see section
  :ref:`CMake Options <sec:source_cmake_options>`.

All the tutorials that we will explore are existing ADIOS2 examples located in the ``ADIOS2/examples`` directory.

To build any of the examples, e.g. the ``helloWorld`` example, you can run the following commands:

.. code-block:: bash

  cd Path-To-ADIOS2/examples/hello/helloWorld
  mkdir build
  cd build
  cmake -DADIOS2_DIR=Path-To-ADIOS2/build/ ..
  cmake --build .