Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dineshadepu/6c3fac71d5d6c0035df079c6c2e44cf8 to your computer and use it in GitHub Desktop.
Save dineshadepu/6c3fac71d5d6c0035df079c6c2e44cf8 to your computer and use it in GitHub Desktop.
Installation of `Kokkos`, `Silo`, parallel `hdf5`, `Cabana` on Ubuntu machine

Kokkos installation

add the following to the bashrc file

  1. Add the following line to the bashrc

export KOKKOS_INSTALL_DIR=/home/dinesh/post_doc/softwares/kokkos/build/install

  1. Execute the following in the terminal
cmake \
      -D CMAKE_BUILD_TYPE="Release" \
      -D CMAKE_INSTALL_PREFIX=$KOKKOS_INSTALL_DIR \
      -D Kokkos_ENABLE_OPENMP=ON \
      -D Kokkos_ENABLE_SERIAL=ON \
      .. ;

Silo installation

  1. add to bashrc

export SILO_INSTALL_DIR=/home/dinesh/post_doc/softwares/Silo

  1. To install follow

https://github.com/LLNL/Silo/blob/main/INSTALL

4a) ./configure 4b) make 4c) make install

Install Hdf5

Follow this

https://accserv.lepp.cornell.edu/svn/packages/hdf5/release_docs/INSTALL_parallel

Download the source

Add the following to bashrc

export HDF_INSTALL_DIR=/home/dinesh/post_doc/softwares/hdf5/

  1. CC=/usr/bin/mpicc ./configure --enable-parallel --prefix=/home/dinesh/post_doc/softwares/hdf5/install
  2. make
  3. make install

Cabana installation

add the following to the bashrc file

  1. Add the following line to the bashrc

export CABANA_INSTALL_DIR=/home/dinesh/post_doc/softwares/Cabana/build/install

  1. Execute the following in the terminal
cmake \
      -D CMAKE_BUILD_TYPE="Debug" \
      -D CMAKE_PREFIX_PATH="$KOKKOS_INSTALL_DIR;$SILO_INSTALL_DIR;$HDF_INSTALL_DIR" \
      -D CMAKE_INSTALL_PREFIX="$CABANA_INSTALL_DIR" \
      -D Cabana_REQUIRE_OPENMP=ON \
      -D Cabana_ENABLE_EXAMPLES=ON \
      -D Cabana_ENABLE_TESTING=OFF \
      -D Cabana_REQUIRE_SILO=ON \
      -D Cabana_REQUIRE_HDF5=ON \
      -D Cabana_ENABLE_PERFORMANCE_TESTING=OFF \
      -D Cabana_ENABLE_CAJITA=ON \
      .. ;

Rigid body

export CABANA_INSTALL_DIR=/home/dinesh/post_doc/softwares/Cabana/build/install

cmake \
    -D CMAKE_PREFIX_PATH="$CABANA_INSTALL_DIR" \
    -D CMAKE_INSTALL_PREFIX=install \
    .. ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment