- Git
- A C compiler
- A Fortran compiler
- CMake 3.12
-
Acquire the source code On the internet, those with access to github can acquire the NDI source code using the Git version control system.
git clone https://github.com/lanl/ndi.git -
Establish your environment
On LANL platforms, this can be accomplished using the environment module system.
module load cmake module load <your preferred compiler vendor> -
Configure your build
cd ndi mkdir build cd build cmake [options] ..Optionally, the configuration can be customized by calling to the
ccmaketext-based interface orcmake-guigraphical user interface. Notably, when building with a static configuration build tool---such as GNU Make or Google Ninja---it's advisable to set theCMAKE_BUILD_TYPEvariable to either Release or Debug, according to your use case. In addition, for those intending to install NDI, the installation directory can be specified by setting theCMAKE_INSTALLATION_PREFIXvariable. See the CMake documentation for advanced usage. -
Build the source
cmake --build .See the CMake build tool documentation for advanced usage.
-
Run the tests
ctestSee the CMake testing tool documentation for advanced usage.
-
(Optional) Install the NDI library.
cmake --build . --target install
O# (O5071)