-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ScaLAPACK dependency installation (#230)
* scalapack dependency files. * added some instructions. * added scalapack installation procedure in setup.sh. * Fix for the case when the hint is not used. * check if dependencies/scalapack-2.2.0 is already installed. * minor fix to use manually built scalapack. * setup.sh: check_result - check the setup command result. * scripts/compile.sh: get repo prefix without using git command. * scripts/compile.sh: scalapack installation is optional.
- Loading branch information
1 parent
d3ef2cd
commit 983fb70
Showing
6 changed files
with
143 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
set(CMAKE_C_COMPILER mpicc) | ||
set(CMAKE_CXX_COMPILER mpicxx) | ||
set(CMAKE_Fortran_COMPILER mpif90) | ||
|
||
# Use environment variables. | ||
set(MFEM_DIR $ENV{MFEM_DIR}) | ||
set(HYPRE_DIR $ENV{HYPRE_DIR}) | ||
set(PARMETIS_DIR $ENV{PARMETIS_DIR}) | ||
set(METIS_DIR $ENV{METIS_DIR}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
############################################################################ | ||
# | ||
# Program: ScaLAPACK | ||
# | ||
# Module: SLmake.inc | ||
# | ||
# Purpose: Top-level Definitions | ||
# | ||
# Creation date: February 15, 2000 | ||
# | ||
# Modified: October 13, 2011 | ||
# | ||
# Send bug reports, comments or suggestions to [email protected] | ||
# | ||
############################################################################ | ||
# | ||
# C preprocessor definitions: set CDEFS to one of the following: | ||
# | ||
# -DNoChange (fortran subprogram names are lower case without any suffix) | ||
# -DUpCase (fortran subprogram names are upper case without any suffix) | ||
# -DAdd_ (fortran subprogram names are lower case with "_" appended) | ||
|
||
CDEFS = -DAdd_ | ||
|
||
# | ||
# The fortran and C compilers, loaders, and their flags | ||
# | ||
|
||
# LIBROM instruction: copy this file to scalapack-2.2.0 directory and type make. | ||
|
||
# -fallow-argument-mismatch is needed to compile some legacy fortran code that does not conform to modern gnu compiler standard. | ||
# -fPIC is needed to build the static scalapack library. | ||
|
||
FC = mpif90 | ||
CC = mpicc | ||
NOOPT = -O0 -fallow-argument-mismatch -fPIC | ||
FCFLAGS = -O3 -fallow-argument-mismatch -fPIC | ||
CCFLAGS = -O3 -fPIC | ||
FCLOADER = $(FC) | ||
CCLOADER = $(CC) | ||
FCLOADFLAGS = $(FCFLAGS) | ||
CCLOADFLAGS = $(CCFLAGS) | ||
|
||
# | ||
# The archiver and the flag(s) to use when building archive (library) | ||
# Also the ranlib routine. If your system has no ranlib, set RANLIB = echo | ||
# | ||
|
||
ARCH = ar | ||
ARCHFLAGS = cr | ||
RANLIB = ranlib | ||
|
||
# | ||
# The name of the ScaLAPACK library to be created | ||
# | ||
|
||
SCALAPACKLIB = libscalapack.a | ||
|
||
# | ||
# BLAS, LAPACK (and possibly other) libraries needed for linking test programs | ||
# | ||
|
||
BLASLIB = -lblas | ||
LAPACKLIB = -llapack | ||
LIBS = $(LAPACKLIB) $(BLASLIB) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters