LAPACK

From PHASTA Wiki
Revision as of 14:41, 15 April 2021 by Jopo9795 (talk | contribs) (Created page with "== Download and Build LAPACK == 1. Download LAPACK tarball from http://netlib.org/lapack/ and extract the files to the desired folder with <code> tar -xf <name_of_tarball> </c...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Download and Build LAPACK

1. Download LAPACK tarball from http://netlib.org/lapack/ and extract the files to the desired folder with tar -xf <name_of_tarball> . Note that for the current method, the location of the unpacked folder does not need to be within the PHASTA source directory.

cp <lapack_dir>/make.inc.example <lapack_dir>/make.inc

2. Create a build directory at the same level as the LAPACK folder and execute the following build script within the build directory:

  1. !/bin/bash

cmake \ -DCMAKE_C_COMPILER=gcc \ -DCMAKE_Fortran_COMPILER=gfortran \ -DCMAKE_BUILD_TYPE=Release \ ../<lapack_dir>