trilinos / Trilinos

Primary repository for the Trilinos Project
https://trilinos.org/
Other
1.22k stars 570 forks source link

Trilinos-13.2 Need Help Compiling to Installing and Connecting to Kratos Multiphysics #10570

Closed glanzkaiser closed 2 years ago

glanzkaiser commented 2 years ago

Bug Report

@trilinos/\<Trilinos13.2>

Description

I think I might have misunderstood on how to use CMake to install Trilinos to my OS

Steps to Reproduce

  1. I download Trilinos from here https://github.com/trilinos/Trilinos/archive/refs/tags/trilinos-release-13-2-0.tar.gz
  2. I extract it enter directory create a new directory 'build' and try to do CMake with Ninja: cmake \ -DTPL_ENABLE_MPI=ON \ -DBUILD_SHARED_LIBS=ON \ -DMPI_BASE_DIR= \ -DTrilinos_ENABLE_ALL_PACKAGES=ON \ -DTrilinos_ENABLE_FLOAT=ON \ -DTrilinos_ENABLE_COMPLEX=ON \ -DCMAKE_INSTALL_PREFIX=/opt/hamzstlib .. && make -j4 install
  3. I want to ask is the path to mpi the one pointing to the bin files? like /usr/local/bin?
  4. The problem is I do not know how to configure it more because I want to install Kratos Multiphysics that need Trilinos

Are there any steps necessary to take?

After do make -j4 install, the only files installed are in ../lib/cmake/tribits/example

I use GFreya OS (An OS I build with Linux From Scratch book so I have no package manager)

cgcgcg commented 2 years ago

Can you post the output of your CMake call? The value of MPI_BASE_DIR should be the MPI installation folder, containing include/ and lib/ subfolders.

jhux2 commented 2 years ago

@glanzkaiser You may also need to specify -Gninja as a cmake option to generate the ninja build files.

glanzkaiser commented 2 years ago

Hi all,

After reading this site https://docs.trilinos.org/files/TrilinosBuildReference.html

I have followed the https://github.com/trilinos/Trilinos/blob/master/sampleScripts/do-configure-mkl-mpi-gcc-linux

adjust the path with my system, then I use this file to build Trilinos and it works, This is my configure script: https://github.com/glanzkaiser/GFreya/blob/main/BLFS/Trilinos-do-configure-blas-lapack-mpi-gcc-linux

Now I want to learn to do some computation with Trilinos. Anyone wants to share tutorial for beginner in Trilinos? Can it be used for all science branches? Biology, Chemistry, Astronomy as well