Skip to content

Commit

Permalink
add project folder for group 6 (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
gvollenweider authored Sep 27, 2022
1 parent d6cc49b commit a30dd67
Show file tree
Hide file tree
Showing 38 changed files with 3,313 additions and 0 deletions.
56 changes: 56 additions & 0 deletions projects/2022/group6_openACC/Makefile
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
10 changes: 10 additions & 0 deletions projects/2022/group6_openACC/code_versions
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)



4 changes: 4 additions & 0 deletions projects/2022/group6_openACC/data/result_acc01_0128.txt
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], \
] )
4 changes: 4 additions & 0 deletions projects/2022/group6_openACC/data/result_acc02_0128.txt
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], \
] )
4 changes: 4 additions & 0 deletions projects/2022/group6_openACC/data/result_acc03_0128.txt
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], \
] )
4 changes: 4 additions & 0 deletions projects/2022/group6_openACC/data/result_acc04_0128.txt
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], \
] )
4 changes: 4 additions & 0 deletions projects/2022/group6_openACC/data/result_acc05_0064.txt
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], \
] )
4 changes: 4 additions & 0 deletions projects/2022/group6_openACC/data/result_acc05_0128.txt
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], \
] )
4 changes: 4 additions & 0 deletions projects/2022/group6_openACC/data/result_acc05_0256.txt
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], \
] )
4 changes: 4 additions & 0 deletions projects/2022/group6_openACC/data/result_acc05_0512.txt
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], \
] )
4 changes: 4 additions & 0 deletions projects/2022/group6_openACC/data/result_acc05_1024.txt
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], \
] )
4 changes: 4 additions & 0 deletions projects/2022/group6_openACC/data/result_acc05_2048.txt
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], \
] )
4 changes: 4 additions & 0 deletions projects/2022/group6_openACC/data/result_orig_0064.txt
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], \
] )
4 changes: 4 additions & 0 deletions projects/2022/group6_openACC/data/result_orig_0128.txt
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], \
] )
4 changes: 4 additions & 0 deletions projects/2022/group6_openACC/data/result_orig_0256.txt
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], \
] )
4 changes: 4 additions & 0 deletions projects/2022/group6_openACC/data/result_orig_0512.txt
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], \
] )
4 changes: 4 additions & 0 deletions projects/2022/group6_openACC/data/result_orig_1024.txt
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], \
] )
4 changes: 4 additions & 0 deletions projects/2022/group6_openACC/data/result_orig_2048.txt
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], \
] )
Loading

0 comments on commit a30dd67

Please sign in to comment.