-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add project folder for group 6 (#34)
- Loading branch information
1 parent
d6cc49b
commit a30dd67
Showing
38 changed files
with
3,313 additions
and
0 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,56 @@ | ||
SHELL = /bin/sh | ||
HOSTNAME = $(shell hostname | sed 's/[0-9]*//g' | sed 's/\..*//g') | ||
|
||
VERSION ?= orig | ||
|
||
TARGET = stencil2d-$(VERSION).x | ||
|
||
SRCS = m_utils.F90 \ | ||
stencil2d-$(VERSION).F90 | ||
|
||
# create object file list | ||
OBJS := $(SRCS:.F90=.o) | ||
|
||
ifeq "$(HOSTNAME)" "daint" | ||
F90 = ftn | ||
FFLAGS = -O3 -hfp3 -eZ -ffree -N255 -ec -eC -eI -eF -rm -hacc | ||
ifdef NOOPT | ||
FFLAGS = -O0 -hfp0 -Oipa0 -Ovector0 -ffree -N255 -ec -eC -eI -eF -rm | ||
TARGET = stencil2d-$(VERSION)-noopt.x | ||
endif | ||
endif | ||
ifeq "$(HOSTNAME)" "nid" | ||
F90 = ftn | ||
FFLAGS = -O3 -hfp3 -eZ -ffree -N255 -ec -eC -eI -eF -rm | ||
ifdef NOOPT | ||
FFLAGS = -O0 -hfp0 -Oipa0 -Ovector0 -ffree -N255 -ec -eC -eI -eF -rm | ||
TARGET = stencil2d-$(VERSION)-noopt.x | ||
endif | ||
endif | ||
ifeq "$(HOSTNAME)" "papaya" | ||
F90 = mpif90 -cpp | ||
FFLAGS = -O0 -g -fbacktrace -fno-fast-math -ffree-line-length-none -fno-backslash \ | ||
-pedantic -Waliasing -Wampersand -Wline-truncation -Wsurprising -Wtabs -Wunderflow \ | ||
-fdump-core -ffpe-trap=invalid,zero,overflow -fbounds-check -finit-real=nan \ | ||
-finit-integer=9999999 -finit-logical=true -finit-character=35 | ||
endif | ||
ifndef F90 | ||
$(error F90 is not set for $(HOSTNAME)) | ||
endif | ||
|
||
# definition of phony targets | ||
|
||
.PHONY : clean | ||
|
||
$(TARGET): $(OBJS) | ||
$(F90) $(FFLAGS) $(OBJS) -o $(TARGET) | ||
cp $(TARGET) stencil2d.x | ||
|
||
clean: | ||
-$(RM) -rf *~ *.o *.mod *.MOD *.i core.* *.out *.lst *.x *.x+orig *.x+[0-9]* *.report result_*.py report*.txt *.cub *.ptx | ||
|
||
distclean: clean | ||
-$(RM) -rf *.png *.dat *.npy *.x *.x+orig* *.x+[0-9]* | ||
|
||
%.o: %.F90 | ||
$(F90) $(FFLAGS) -c $*.F90 |
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,10 @@ | ||
# which version adds which directives | ||
orig # initial CPU code (inlined version) | ||
acc01 # !$acc parallel / !$acc end parallel / !$acc loop | ||
acc02 # !$acc loop gang / !$acc loop worker / !$acc loop vector | ||
acc03 # !$acc loop gang collapse(1) / !$acc loop vector collapse(2) | ||
acc04 # !$acc data copyin create copyout / !$acc end data (within n-loop) | ||
acc05 # !$acc data copyin create copyout / !$acc end data (around n-loop) | ||
|
||
|
||
|
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 @@ | ||
# ranks nx ny nz num_iter time | ||
data = np.array( [ \ | ||
[ 1, 128, 128, 64, 1024, 0.5732991E+01], \ | ||
] ) |
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 @@ | ||
# ranks nx ny nz num_iter time | ||
data = np.array( [ \ | ||
[ 1, 128, 128, 64, 1024, 0.5766409E+01], \ | ||
] ) |
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 @@ | ||
# ranks nx ny nz num_iter time | ||
data = np.array( [ \ | ||
[ 1, 128, 128, 64, 1024, 0.5706560E+01], \ | ||
] ) |
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 @@ | ||
# ranks nx ny nz num_iter time | ||
data = np.array( [ \ | ||
[ 1, 128, 128, 64, 1024, 0.1784232E+01], \ | ||
] ) |
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 @@ | ||
# ranks nx ny nz num_iter time | ||
data = np.array( [ \ | ||
[ 1, 64, 64, 64, 1024, 0.1199524E+00], \ | ||
] ) |
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 @@ | ||
# ranks nx ny nz num_iter time | ||
data = np.array( [ \ | ||
[ 1, 128, 128, 64, 1024, 0.3858230E+00], \ | ||
] ) |
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 @@ | ||
# ranks nx ny nz num_iter time | ||
data = np.array( [ \ | ||
[ 1, 256, 256, 64, 1024, 0.1320706E+01], \ | ||
] ) |
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 @@ | ||
# ranks nx ny nz num_iter time | ||
data = np.array( [ \ | ||
[ 1, 512, 512, 64, 1024, 0.4928588E+01], \ | ||
] ) |
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 @@ | ||
# ranks nx ny nz num_iter time | ||
data = np.array( [ \ | ||
[ 1, 1024, 1024, 64, 1024, 0.1919162E+02], \ | ||
] ) |
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 @@ | ||
# ranks nx ny nz num_iter time | ||
data = np.array( [ \ | ||
[ 1, 2048, 2048, 64, 1024, 0.7734181E+02], \ | ||
] ) |
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 @@ | ||
# ranks nx ny nz num_iter time | ||
data = np.array( [ \ | ||
[ 1, 64, 64, 64, 1024, 0.4110851E+00], \ | ||
] ) |
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 @@ | ||
# ranks nx ny nz num_iter time | ||
data = np.array( [ \ | ||
[ 1, 128, 128, 64, 1024, 0.1421649E+01], \ | ||
] ) |
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 @@ | ||
# ranks nx ny nz num_iter time | ||
data = np.array( [ \ | ||
[ 1, 256, 256, 64, 1024, 0.1054989E+02], \ | ||
] ) |
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 @@ | ||
# ranks nx ny nz num_iter time | ||
data = np.array( [ \ | ||
[ 1, 512, 512, 64, 1024, 0.4239704E+02], \ | ||
] ) |
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 @@ | ||
# ranks nx ny nz num_iter time | ||
data = np.array( [ \ | ||
[ 1, 1024, 1024, 64, 1024, 0.1688275E+03], \ | ||
] ) |
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 @@ | ||
# ranks nx ny nz num_iter time | ||
data = np.array( [ \ | ||
[ 1, 2048, 2048, 64, 1024, 0.7012886E+03], \ | ||
] ) |
Oops, something went wrong.