-
Clone the ParaMonte repository on your system.
git clone https://github.com/cdslaborg/paramonte.git
Alternatively, you can optionally download the OpenBLAS and other ParaMonte submodules via,
git clone --recurse-submodules https://github.com/cdslaborg/paramonte.git
-
Navigate to the root directory of the repository either in a Windows
CMD
command prompt or UnixBash
terminal. -
Ensure you have a recent CMake software (
>3.21
), and a recent Intel (>2021
) or GNU (>10
) C/Fortran compilers already installed in your terminal. -
Using a Windows
CMD
command prompt, type,- For the ParaMonte C library build,
install.bat --lang c
- For the ParaMonte C++ library build,
install.bat --lang cpp
- For the ParaMonte Fortran library build,
install.bat --lang fortran
- For the ParaMonte MATLAB library build,
install.bat --lang matlab
See more on the relevant installation instructions in install.bat.md.
- For the ParaMonte C library build,
-
Using a Unix
Bash
terminal, type,- For the ParaMonte C library build,
./install.sh --lang c
- For the ParaMonte C++ library build,
./install.sh --lang cpp
- For the ParaMonte Fortran library build,
./install.sh --lang fortran
- For the ParaMonte MATLAB library build,
./install.sh --lang matlab
See more on the relevant installation instructions in install.sh.md.
- For the ParaMonte C library build,
-
For MPI-parallel library builds, ensure you have the relevant MPI library installed on your system.
Then, merely add the extra build configuration flag--par mpi
to the relevant install commands above.
See install.md, install.config.md, install.bat.md, install.sh.md, and CMakeLists.md for more details on library build options and guidelines.
-
To build for the C, C++, and Fortran programming languages and build and run all their corresponding examples in serial, try,
- On Windows,
install.bat --lang "c;cpp;fortran" --exam all
- On Linux and macOS,
./install.sh --lang "c;cpp;fortran" --exam all
- On Windows,
-
As of 2024, the following commands can be used to generate minimal
serial
,openmp
andmpi
ParaMonte MATLAB binaries.- On Windows,
install.bat --lang matlab --par "serial;openmp;mpi" --ski 1 --iki "3;4" --lki 3 --rki "1;2" --cki "1;2" --matlabroot "C:\Program Files\MATLAB\R2023a"
- On Linux,
./install.sh --lang matlab --par "serial;openmp;mpi" --ski 1 --iki "3;4" --lki 3 --rki "1;2" --cki "1;2" --matlabroot "/usr/local/MATLAB/R2023a"
- On macOS,
./install.sh --lang matlab --par "serial;openmp;mpi" --ski 1 --iki "3;4" --lki 3 --rki "1;2" --cki "1;2" --matlabroot "/Applications/MATLAB_R2023b.app"
- On Windows,
See install.config.md for the meaning of the flags used and many more possible configuration flags.