User Tools

Site Tools


package:installation:macos_parmsfile

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
package:installation:macos_parmsfile [2024/01/13 11:55] pbloechlpackage:installation:macos_parmsfile [2024/01/13 12:48] (current) pbloechl
Line 11: Line 11:
 TPARALLEL="T" TPARALLEL="T"
 SPECIAL="none" SPECIAL="none"
 +
 +COMPILER_SCALAR="gfortran "
 +COMPILER_PARALLEL="${MPIDIR}/bin/mpifort "
 +
 BLASDIR="" BLASDIR=""
 LAPACKDIR="" LAPACKDIR=""
  
-FFTDIR="/opt/homebrew/Cellar/fftw/3.3.10/" +FFTDIR="/opt/homebrew/" 
-#FFTDIR="/usr/local/lib/" +#FFTDIR="/usr/local/"
 FFT_HEADER="${FFTDIR}/include/fftw3.f03" FFT_HEADER="${FFTDIR}/include/fftw3.f03"
-#FFT_HEADER="/usr/local/Cellar/fftw/3.3.10/include/fftw3.f03"+#FFT_HEADER="/usr/local/include/fftw3.f03"
  
-MPIDIR="/opt/homebrew/Cellar/open-mpi/4.1.2/" +MPIDIR="/opt/homebrew/" 
-#MPIDIR="/usr/local/Cellar/open-mpi/4.1.2/"+#MPIDIR="/usr/local/"
  
-MPI_HEADER="${MPIDIR}/include/mpif.h" 
-COMPILER_SCALAR="gfortran " 
-COMPILER_PARALLEL="${MPIDIR}/bin/mpifort " 
 FCFLAGS_NONE="-c " FCFLAGS_NONE="-c "
 FCFLAGS_OPT="-c -O3  -funroll-loops -fomit-frame-pointer -march=native -fexternal-blas " FCFLAGS_OPT="-c -O3  -funroll-loops -fomit-frame-pointer -march=native -fexternal-blas "
Line 33: Line 33:
  
 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" 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_SCALAR="-I${OBJDIR} -L${OBJDIR} -framework Accelerate "
 LDFLAGS_PARALLEL="-I${OBJDIR} -L${OBJDIR} -framework Accelerate " LDFLAGS_PARALLEL="-I${OBJDIR} -L${OBJDIR} -framework Accelerate "
Line 46: Line 47:
 </code> </code>
  
-===== Homebrew =====+==== Homebrew ====
  
-I use [[https://brew.sh|homebrew]]  to install Linux software in the MacOS environment. Homebrew installs the libraries in the directory ''/opt/homebrew''The directory ''/opt/homebrew/Cellar/'' contains the packages in a subdirectory //packagename/versionnumber//. In the parmfile for configure, these directories are not mentioned, because this would require up adjust the version number after each upgrade. Rather, one refers to the collection of symbolic links in ''/opt/homebrew/lib'', ''opt/hombrew/include'', ''/opt/homebrew/bin''+I use [[https://brew.sh|homebrew]]  to install Linux software in the MacOS environment. Homebrew installs the libraries in the directory ''/opt/homebrew''Homebrew deposits the packages in the directory ''/opt/homebrew/Cellar/<packagename>/<versionnumber>''. In the parmfile for configure, these directories are **not** mentioned, because this would require up adjust the version number after each upgrade. Rather, one refers to the collection of symbolic links contained in ''/opt/homebrew/lib'', ''opt/hombrew/include'', ''/opt/homebrew/bin''
  
 Currently the cp-paw code uses the packages (Caution: there may a few others): Currently the cp-paw code uses the packages (Caution: there may a few others):
Line 54: Line 55:
   * openmpi   * openmpi
   * libxc   * libxc
 +The BLAS and LAPACK packages are included in the Accelerate framework of MacOS, which is selected with the compiler option ''-framework Accelerate''.
  
 The packages can be kept to the most recent version using the commands ''brew update'' and ''brew upgrade'' The packages can be kept to the most recent version using the commands ''brew update'' and ''brew upgrade''
package/installation/macos_parmsfile.1705146929.txt.gz · Last modified: 2024/01/13 11:55 by pbloechl

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki