Skip to content

Commit 2e3a399

Browse files
committed
merge in 2.16 changes from devel repo
1 parent 52c571a commit 2e3a399

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+4792
-0
lines changed

AMPI/Branch/Makefile

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
ifndef NUMBER_OF_FUNCTIONS
2+
NUMBER_OF_FUNCTIONS=40
3+
endif
4+
5+
ifndef MATRIX_RANK
6+
MATRIX_RANK=10
7+
endif
8+
9+
include ../../common/AMPI.defs
10+
##### User configurable options #####
11+
12+
OPTFLAGS = $(DEFAULT_OPT_FLAGS)
13+
#description: change above into something that is a decent optimization on you system
14+
15+
#uncomment any of the following flags (and change values) to change defaults
16+
17+
#RESTRICTFLAG = -DRESTRICT_KEYWORD
18+
#description: the "restrict" keyword can be used on IA platforms to disambiguate
19+
# data accessed through pointers (requires -restrict compiler flag)
20+
21+
#DEBUGFLAG = -DVERBOSE
22+
#description: default diagnostic style is silent
23+
24+
USERFLAGS =
25+
#description: parameter to specify optional flags
26+
27+
EXTOBJS =
28+
LIBS =
29+
LIBPATHS =
30+
INCLUDEPATHS =
31+
32+
### End User configurable options ###
33+
34+
TUNEFLAGS = $(RESTRICTFLAG) $(DEBUGFLAG) $(USERFLAGS)
35+
PROGRAM = branch
36+
OBJS = $(PROGRAM).o func.o $(COMOBJS)
37+
38+
default: usage
39+
@echo " \"make veryclean\" to remove custom built files as well"
40+
41+
include ../../common/make.common
42+
43+
func.c:
44+
@echo "##########################################################"
45+
@echo "##### No file func.c -- invoke func_gen to create it #####"
46+
@echo "##########################################################"
47+
./func_gen ${MATRIX_RANK} ${NUMBER_OF_FUNCTIONS}
48+
49+
veryclean:
50+
rm -f func.c ___*; make clean

AMPI/Branch/README

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Option INS_HEAVY of the Branching code requires a customized version
2+
of file func.c, which contains a variable number of functions of
3+
variable size. This file is built by invoking script "func_gen,"
4+
which takes two integer input parameters. The first is the rank of
5+
the square matrices whose elements get initialized individually by
6+
one of the functions in func.c. Hence, the number of instructions
7+
associated with each such function is proportional to rank*rank.
8+
The second parameters is the number of functions created. These
9+
functions are all slightly different, but all have the same size.
10+
11+
Usage: func_gen <matrix_rank> <number_of_functions>
12+
The function is invoked with default values 10 and 40 if no
13+
values for these variables are supplied on the make command line.
14+

0 commit comments

Comments
 (0)