-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new hypre test. Moved old test to hypre-deprecated
- Loading branch information
Showing
35 changed files
with
1,319 additions
and
199 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,229 @@ | ||
######################################################################## | ||
# Compiler and external dependences | ||
######################################################################## | ||
CC =$(TEST_CC_MPI) #mpicc | ||
F77 =$(TEST_FTN_MPI) #mpif77 | ||
CXX =$(TEST_CXX_MPI) #mpicxx | ||
F90 =$(TEST_FTN_MPI) #mpif90 | ||
HYPRE_DIR = "${HYPRE_ROOT}" | ||
|
||
######################################################################## | ||
# Compiling and linking options | ||
######################################################################## | ||
COPTS = -g -Wall | ||
CINCLUDES = -I$(HYPRE_DIR)/include | ||
CDEFS = -DHAVE_CONFIG_H -DHYPRE_TIMING | ||
CFLAGS = $(COPTS) $(CINCLUDES) $(CDEFS) | ||
FOPTS = -g | ||
FINCLUDES = $(CINCLUDES) | ||
FFLAGS = $(FOPTS) $(FINCLUDES) | ||
CXXOPTS = $(COPTS) -Wno-deprecated | ||
CXXINCLUDES = $(CINCLUDES) -I.. | ||
CXXDEFS = $(CDEFS) | ||
IFLAGS_BXX = | ||
CXXFLAGS = $(CXXOPTS) $(CXXINCLUDES) $(CXXDEFS) $(IFLAGS_BXX) | ||
IF90FLAGS = | ||
F90FLAGS = $(FFLAGS) $(IF90FLAGS) | ||
|
||
|
||
LINKOPTS = $(COPTS) | ||
LIBS = -L$(HYPRE_DIR)/lib -lHYPRE -lm | ||
LFLAGS = $(LINKOPTS) $(LIBS) -lstdc++ | ||
LFLAGS_B =\ | ||
-L${HYPRE_DIR}/lib\ | ||
-lbHYPREClient-C\ | ||
-lbHYPREClient-CX\ | ||
-lbHYPREClient-F\ | ||
-lbHYPRE\ | ||
-lsidl -ldl -lxml2 | ||
LFLAGS77 = $(LFLAGS) | ||
LFLAGS90 = | ||
|
||
######################################################################## | ||
# Rules for compiling the source files | ||
######################################################################## | ||
.SUFFIXES: .c .f .cxx .f90 | ||
|
||
.c.o: | ||
$(CC) $(CFLAGS) -c $< | ||
.f.o: | ||
$(F77) $(FFLAGS) -c $< | ||
.cxx.o: | ||
$(CXX) $(CXXFLAGS) -c $< | ||
|
||
######################################################################## | ||
# List of all programs to be compiled | ||
######################################################################## | ||
ALLPROGS = ex1 ex2 ex3 ex4 ex5 ex5f ex6 ex7 ex8 ex9 ex10 ex11 ex12 ex12f \ | ||
ex13 ex14 ex15 ex16 | ||
BIGINTPROGS = ex5big ex15big | ||
FORTRANPROGS = ex5f ex12f | ||
MAXDIMPROGS = ex17 ex18 | ||
COMPLEXPROGS = ex18comp | ||
|
||
all: $(ALLPROGS) | ||
|
||
default: all | ||
|
||
bigint: $(BIGINTPROGS) | ||
|
||
fortran: $(FORTRANPROGS) | ||
|
||
maxdim: $(MAXDIMPROGS) | ||
|
||
complex: $(COMPLEXPROGS) | ||
|
||
######################################################################## | ||
# Example 1 | ||
######################################################################## | ||
ex1: ex1.o | ||
$(CC) -o $@ $^ $(LFLAGS) | ||
|
||
######################################################################## | ||
# Example 2 | ||
######################################################################## | ||
ex2: ex2.o | ||
$(CC) -o $@ $^ $(LFLAGS) | ||
|
||
######################################################################## | ||
# Example 3 | ||
######################################################################## | ||
ex3: ex3.o | ||
$(CC) -o $@ $^ $(LFLAGS) | ||
|
||
######################################################################## | ||
# Example 4 | ||
######################################################################## | ||
ex4: ex4.o | ||
$(CC) -o $@ $^ $(LFLAGS) | ||
|
||
######################################################################## | ||
# Example 5 | ||
######################################################################## | ||
ex5: ex5.o | ||
$(CC) -o $@ $^ $(LFLAGS) | ||
|
||
######################################################################## | ||
# Example 5 with 64-bit integers | ||
######################################################################## | ||
ex5big: ex5big.o | ||
$(CC) -o $@ $^ $(LFLAGS) | ||
|
||
######################################################################## | ||
# Example 5 Fortran 77 | ||
######################################################################## | ||
ex5f: ex5f.o | ||
$(F77) -o $@ $^ $(LFLAGS77) | ||
|
||
######################################################################## | ||
# Example 6 | ||
######################################################################## | ||
ex6: ex6.o | ||
$(CC) -o $@ $^ $(LFLAGS) | ||
|
||
######################################################################## | ||
# Example 7 | ||
######################################################################## | ||
ex7: ex7.o | ||
$(CC) -o $@ $^ $(LFLAGS) | ||
|
||
######################################################################## | ||
# Example 8 | ||
######################################################################## | ||
ex8: ex8.o | ||
$(CC) -o $@ $^ $(LFLAGS) | ||
|
||
######################################################################## | ||
# Example 9 | ||
######################################################################## | ||
ex9: ex9.o | ||
$(CC) -o $@ $^ $(LFLAGS) | ||
|
||
######################################################################## | ||
# Example 10 | ||
######################################################################## | ||
ex10: ex10.o | ||
$(CXX) -o $@ $^ $(LFLAGS) | ||
|
||
######################################################################## | ||
# Example 11 | ||
######################################################################## | ||
ex11: ex11.o | ||
$(CC) -o $@ $^ $(LFLAGS) | ||
|
||
######################################################################## | ||
# Example 12 | ||
######################################################################## | ||
ex12: ex12.o | ||
$(CC) -o $@ $^ $(LFLAGS) | ||
|
||
######################################################################## | ||
# Example 12 Fortran 77 | ||
######################################################################## | ||
ex12f: ex12f.o | ||
$(F77) -o $@ $^ $(LFLAGS77) | ||
|
||
######################################################################## | ||
# Example 13 | ||
######################################################################## | ||
ex13: ex13.o | ||
$(CC) -o $@ $^ $(LFLAGS) | ||
|
||
######################################################################## | ||
# Example 14 | ||
######################################################################## | ||
ex14: ex14.o | ||
$(CC) -o $@ $^ $(LFLAGS) | ||
|
||
######################################################################## | ||
# Example 15 | ||
######################################################################## | ||
ex15: ex15.o | ||
$(CC) -o $@ $^ $(LFLAGS) | ||
|
||
######################################################################## | ||
# Example 15 with 64-bit integers | ||
######################################################################## | ||
ex15big: ex15big.o | ||
$(CC) -o $@ $^ $(LFLAGS) | ||
|
||
######################################################################## | ||
# Example 16 | ||
######################################################################## | ||
ex16: ex16.o | ||
$(CC) -o $@ $^ $(LFLAGS) | ||
|
||
######################################################################## | ||
# Example 17 | ||
######################################################################## | ||
ex17: ex17.o | ||
$(CC) -o $@ $^ $(LFLAGS) | ||
|
||
######################################################################## | ||
# Example 18 | ||
######################################################################## | ||
ex18: ex18.o | ||
$(CC) -o $@ $^ $(LFLAGS) | ||
|
||
######################################################################## | ||
# Example 18 (complex) | ||
######################################################################## | ||
ex18comp: ex18comp.o | ||
$(CC) -o $@ $^ $(LFLAGS) | ||
|
||
######################################################################## | ||
# Clean up | ||
######################################################################## | ||
clean: | ||
rm -f $(ALLPROGS:=.o) | ||
rm -f $(BIGINTPROGS:=.o) | ||
rm -f $(FORTRANPROGS:=.o) | ||
rm -f $(MAXDIMPROGS:=.o) | ||
rm -f $(COMPLEXPROGS:=.o) | ||
distclean: clean | ||
rm -f $(ALLPROGS) $(ALLPROGS:=*~) | ||
rm -f $(BIGINTPROGS) $(BIGINTPROGS:=*~) | ||
rm -f $(FORTRANLPROGS) $(FORTRANPROGS:=*~) | ||
rm -f $(MAXDIMPROGS) $(MAXDIMPROGS:=*~) | ||
rm -f $(COMPLEXPROGS) $(COMPLEXPROGS:=*~) | ||
rm -fr README* |
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,5 @@ | ||
#!/bin/bash | ||
|
||
make distclean | ||
|
||
|
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,8 @@ | ||
#!/bin/bash -e | ||
. ./setup.sh | ||
set -x | ||
#spack load openblas threads=openmp | ||
#spack load hypre+internal-superlu | ||
#spack load mpich | ||
|
||
make bigint |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,14 @@ | ||
#!/bin/bash -e | ||
. ./setup.sh | ||
set -x | ||
#spack load openblas threads=openmp | ||
#spack load hypre+internal-superlu | ||
#spack load mpich | ||
|
||
#mpirun -np 8 | ||
timeout 2m ${TEST_RUN} ./ex5big | ||
#mpirun -np 8 | ||
timeout 2m ${TEST_RUN} ./ex15big | ||
|
||
|
||
|
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,4 @@ | ||
#!/bin/bash | ||
. ../../setup.sh | ||
spackLoadUnique hypre #+internal-superlu | ||
#spackLoadUnique openblas threads=openmp |
File renamed without changes.
Oops, something went wrong.