User Tools

Site Tools


package:installation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
package:installation [2022/04/08 17:20] – created pbloechlpackage:installation [2022/04/09 09:03] (current) – removed pbloechl
Line 1: Line 1:
-==== Installation ==== 
- 
-=== MacOS === 
-MacOS has the compiler gfortran and the libraries LAPACK and BLAS already as system libraries. Important is to install Xcode from the Appstore. (Sign the license after opening it from the application folder.) 
-Then install the Command-Line tools of Xcode. (Check the web for installation instructiuons). 
- 
-== Homebrew == 
-I am installing Linux programs using [[https://brew.sh|homebrew]] 
-<code> 
-brew install fftw  --with-fortran 
-brew install openmpi 
-brew install grace 
-</code> 
- 
-== PAW == 
- 
-  - Unpack the PAW distribution into a directory, which I will name PAWDIR in the following.  
-  - Create a file [[:package:installation:MacOS/parmsfile|''parms.osx_gfortran_accelerate'']] 
- 
- 
-<code> 
-ARCH="osx_gfortran_accellerate" 
-TPARALLEL="T" 
-SPECIAL="none" 
-BLASDIR="" 
-LAPACKDIR="" 
-FFTDIR="/usr/local/lib/" 
-MPIDIR="/usr/local/Cellar/open-mpi/4.1.1_2/" 
-FFT_HEADER="/usr/local/Cellar/fftw/3.3.10/include/fftw3.f03" 
-COMPILER_SCALAR="gfortran " 
-COMPILER_PARALLEL="${MPIDIR}/bin/mpifort " 
- 
-FCFLAGS_NONE="-c " 
-FCFLAGS_OPT="-c -O3  -funroll-loops -fomit-frame-pointer -march=native -fexternal-blas " 
-FCFLAGS_PROF="-c -pg -O3 -funroll-loops  -msse2" 
-FCFLAGS_DBG="-c -g -O3 -funroll-loops -fomit-frame-pointer -march=native -std=f2008 -pedantic -fbacktrace -fdump-core -fimplicit-none -fcheck=bounds,do,mem,pointer,recursion -ffpe-trap=invalid,zero,overflow -ffpe-summary=invalid,zero,overflow -fexternal-blas -Wall -Wextra -Wline-truncation  -Wuninitialized -Wno-maybe-uninitialized" 
- 
- 
-LDFLAGS_SCALAR="-I${OBJDIR} -L${OBJDIR} -framework Accelerate " 
-LDFLAGS_PARALLEL="-I${OBJDIR} -L${OBJDIR} -framework Accelerate " 
- 
-LIBS_SCALAR="-L/usr/local/lib -lfftw3" 
-LIBS_PARALLEL="-L/usr/local/lib -lfftw3" 
- 
-CPPFLAGS="-DCPPVAR_FFT_FFTW3" 
-FEXT="f90" 
-</code> 
- 
-  - Check the values of the parameters FFTDIR, FFTHEADER, MPIDIR, and MPIDIR in ''parms.osx_gfortran_accelerate''. Most likely you will need to adjust the version numbers. 
- 
-<code> 
-autoconf 
-configure --with-parmfile=parms.osx_gfortran_accelerate 
-make all 
-</code> 
- 
-  - Code sign 
-    If you try to remotely execute unsigned code under macos, it will ask you for permission, This is painful when you run parallel code. Therefore it is advisable to sign the parallel executables. This is a fairly complicated procedure, which you need to look up. 
-     
-     
-     
-     
  
package/installation.1649438402.txt.gz · Last modified: 2022/04/08 17:20 by pbloechl

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki