Update build_linux authored by Adrien Crovato's avatar Adrien Crovato
...@@ -3,62 +3,53 @@ Note that these build instructions are using the GNU compilers but Intel's compi ...@@ -3,62 +3,53 @@ Note that these build instructions are using the GNU compilers but Intel's compi
**Get the code** **Get the code**
```bash ```bash
sudo apt-get install git sudo apt install git git-lfs
sudo apt-get install git-lfs git clone git@gitlab.uliege.be:am-dept/amfe.git # ssh only for developers
git lfs install # enable large file support
# ssh only
git clone git@gitlab.uliege.be:am-dept/amfe.git
``` ```
**Required packages** **Required packages**
```bash ```bash
# Common # Common
sudo apt-get update sudo apt update
sudo apt-get install build-essential sudo apt install build-essential cmake
sudo apt-get install cmake
sudo apt-get install swig sudo apt-get install swig
sudo apt-get install libeigen3-dev sudo apt-get install libeigen3-dev
sudo apt-get install gmsh
# Python 3 # Python 3
sudo apt-get install python3-dev sudo apt install python3-dev
sudo apt-get install python3-mpi4py python3-numpy python3-scipy python3-matplotlib python3 -m pip install numpy mpi4py matplotlib
sudo apt-get install libvtk7-dev python3-vtk7 # Gmsh
python3 -m pip install gmsh
``` ```
```bash ```bash
# Intel Math Kernel Libraries (MKL) and Threading Building Blocks (TBB)... # Intel Math Kernel Libraries (MKL) and Threading Building Blocks (TBB)...
cd /tmp (https://www.intel.com/content/www/us/en/docs/oneapi/installation-guide-linux/2025-2/base-apt.html)
sudo wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
sudo rm GPG-PUB-KEY-INTEL-SW-PRODUCTS-2019.PUB sudo apt update
sudo wget https://apt.repos.intel.com/setup/intelproducts.list -O /etc/apt/sources.list.d/intelproducts.list sudo apt install intel-oneapi-tbb-devel intel-oneapi-mkl-devel
sudo sh -c 'echo deb https://apt.repos.intel.com/mkl all main > /etc/apt/sources.list.d/intel-mkl.list' echo "source /opt/intel/oneapi/tbb/latest/env/vars.sh" >> ~/.bashrc
sudo sh -c 'echo deb https://apt.repos.intel.com/tbb all main > /etc/apt/sources.list.d/intel-tbb.list' echo "source /opt/intel/oneapi/mkl/latest/env/vars.sh" >> ~/.bashrc
sudo apt-get update
sudo apt-get install intel-mkl-64bit-2019.2-057
sudo apt-get install intel-tbb-64bit-2019.2-057
echo "source /opt/intel/mkl/bin/mklvars.sh intel64" >> ~/.bashrc
echo "source /opt/intel/tbb/bin/tbbvars.sh intel64" >> ~/.bashrc
# ... or Openblas and default TBB # ... or Openblas and default TBB
sudo apt-get install libopenblas-dev sudo apt install libopenblas-dev
sudo apt-get install libtbb-dev sudo apt install libtbb-dev
``` ```
**Optional packages** **Optional packages**
```bash ```bash
sudo apt-get install libmumps-seq-dev sudo apt install libmumps-seq-dev
sudo apt-get install doxygen sudo apt install doxygen graphviz
sudo apt-get install graphviz sudo apt install libvtk9-dev
python3 -m pip install vtk
``` ```
**Compilation** **Compilation**
```bash ```bash
mkdir build && cd build mkdir build && cd build
cmake .. cmake ..
make [-j4] make [-j4]
[make install] # to install
[make dox] # to build the documentation [make dox] # to build the documentation
ctest [-E exclude_pattern] [-R include_pattern] [-j4]
``` ```
For a complete list of options, refer to the [build](Build) page. For a complete list of options, refer to the [build](Build) page.
**Test** **Install**
```bash ```bash
cd build python3 -m pip install . [--user]
ctest [-E exclude_pattern] [-R include_pattern] [-j4]
``` ```
\ No newline at end of file