Makefile.am 8.74 KB
Newer Older
1 2 3 4 5 6 7 8 9
# -*- Mode: Makefile; -*-
# vim: set ft=automake :
#
# (C) 2011 by Argonne National Laboratory.
#     See COPYRIGHT in top-level directory.
#

include $(top_srcdir)/Makefile.mtest

10
EXTRA_DIST = testlist.in
11 12 13 14 15 16 17 18

## for all programs that are just built from the single corresponding source
## file, we don't need per-target _SOURCES rules, automake will infer them
## correctly
noinst_PROGRAMS =          \
    allocmem               \
    test1                  \
    test2                  \
Xin Zhao's avatar
Xin Zhao committed
19
    test2_shm              \
20
    test3                  \
Xin Zhao's avatar
Xin Zhao committed
21
    test3_shm              \
22 23 24 25
    test4                  \
    test5                  \
    lockcontention         \
    lockcontention2        \
26
    lockcontention3        \
27
    lockopts               \
28 29 30 31 32 33 34 35 36
    lock_dt                \
    lock_dt_flush          \
    lock_dt_flushlocal     \
    lockall_dt             \
    lockall_dt_flush       \
    lockall_dt_flushall    \
    lockall_dt_flushlocal  \
    lockall_dt_flushlocalall\
    lock_contention_dt     \
37 38 39 40 41 42
    contention_put         \
    contention_putget      \
    put_base               \
    put_bottom             \
    locknull               \
    wintest                \
Xin Zhao's avatar
Xin Zhao committed
43
    wintest_shm            \
44 45 46
    transpose1             \
    transpose2             \
    transpose3             \
Xin Zhao's avatar
Xin Zhao committed
47
    transpose3_shm         \
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
    transpose4             \
    transpose5             \
    transpose6             \
    transpose7             \
    fetchandadd            \
    fetchandadd_tree       \
    winname                \
    putfence1              \
    putfidx                \
    epochtest              \
    getfence1              \
    accfence1              \
    accfence2              \
    adlb_mimic1            \
    putpscw1               \
63
    accpscw1               \
64 65 66 67
    getgroup               \
    contig_displ           \
    test1_am               \
    test2_am               \
Xin Zhao's avatar
Xin Zhao committed
68
    test2_am_shm           \
69
    test3_am               \
Xin Zhao's avatar
Xin Zhao committed
70
    test3_am_shm           \
71 72 73 74 75 76 77 78 79 80 81
    test4_am               \
    test5_am               \
    fetchandadd_am         \
    fetchandadd_tree_am    \
    accfence2_am           \
    test1_dt               \
    attrorderwin           \
    wincall                \
    fkeyvalwin             \
    baseattrwin            \
    nullpscw               \
Xin Zhao's avatar
Xin Zhao committed
82
    nullpscw_shm	   \
83
    rmanull                \
84
    rmazero                \
85
    mixedsync              \
86
    manyrma2		   \
Xin Zhao's avatar
Xin Zhao committed
87
    manyrma2_shm           \
88
    manyrma3		   \
89 90 91
    selfrma                \
    strided_acc_onelock    \
    strided_putget_indexed \
92
    strided_putget_indexed_shared \
93 94 95
    strided_acc_indexed    \
    strided_acc_subarray   \
    strided_get_indexed    \
96 97
    strided_getacc_indexed \
    strided_getacc_indexed_shared \
98 99 100
    window_creation        \
    win_flavors            \
    win_shared             \
101
    win_shared_noncontig   \
102
    win_shared_noncontig_put \
103
    win_shared_zerobyte    \
104 105
    win_shared_create_allocshm    \
    win_shared_create_no_allocshm \
106
    win_zero               \
107
    win_large_shm          \
108
    win_dynamic_acc        \
109
    get_acc_local          \
110
    compare_and_swap       \
111
    linked_list            \
112
    linked_list_fop        \
113
    linked_list_lockall    \
114 115 116
    linked_list_bench_lock_all  \
    linked_list_bench_lock_excl \
    linked_list_bench_lock_shr  \
117
    linked_list_bench_lock_shr_nocheck  \
118 119 120 121 122
    fetch_and_op_char      \
    fetch_and_op_short     \
    fetch_and_op_int       \
    fetch_and_op_long      \
    fetch_and_op_double    \
123 124 125 126 127 128 129 130 131
    fetch_and_op_long_double \
    get_accumulate_short   \
    get_accumulate_long    \
    get_accumulate_double  \
    get_accumulate_int     \
    get_accumulate_short_derived   \
    get_accumulate_long_derived    \
    get_accumulate_double_derived  \
    get_accumulate_int_derived     \
132
    flush                  \
133
    win_shared_put_flush_get          \
134
    reqops                 \
135
    req_example            \
136
    req_example_shm        \
137
    win_info               \
138
    pscw_ordering          \
Xin Zhao's avatar
Xin Zhao committed
139
    pscw_ordering_shm	   \
140
    mutex_bench            \
Pavan Balaji's avatar
Pavan Balaji committed
141
    mutex_bench_shared     \
142
    mutex_bench_shm        \
Xin Zhao's avatar
Xin Zhao committed
143
    mutex_bench_shm_ordered\
Pavan Balaji's avatar
Pavan Balaji committed
144
    rma-contig             \
145
    badrma                 \
146
    nb_test                \
147
    acc-loc                \
Rob Latham's avatar
Rob Latham committed
148
    fence_shm              \
149
    get-struct             \
150 151
    rput_local_comp        \
    racc_local_comp        \
152 153 154
    at_complete            \
    atomic_rmw_fop         \
    atomic_rmw_cas         \
155
    atomic_rmw_gacc	   \
156
    atomic_get             \
157
    acc-pairtype           \
158
    manyget                \
159
    derived-acc-flush_local\
160 161
    large-acc-flush_local  \
    large-small-acc
162 163 164 165

if BUILD_MPIX_TESTS
noinst_PROGRAMS += aint
endif
166

167 168 169 170
strided_acc_indexed_LDADD       = $(LDADD) -lm
strided_acc_onelock_LDADD       = $(LDADD) -lm
strided_acc_subarray_LDADD      = $(LDADD) -lm
strided_get_indexed_LDADD       = $(LDADD) -lm
171
strided_getacc_indexed_LDADD    = $(LDADD) -lm
172
strided_putget_indexed_LDADD    = $(LDADD) -lm
173 174
strided_getacc_indexed_shared_LDADD = $(LDADD) -lm
strided_putget_indexed_shared_LDADD = $(LDADD) -lm
175

176 177 178 179 180 181
fetch_and_op_char_CPPFLAGS       = -DFOP_TYPE_CHAR $(AM_CPPFLAGS)
fetch_and_op_short_CPPFLAGS      = -DFOP_TYPE_SHORT $(AM_CPPFLAGS)
fetch_and_op_int_CPPFLAGS        = -DFOP_TYPE_INT $(AM_CPPFLAGS)
fetch_and_op_long_CPPFLAGS       = -DFOP_TYPE_LONG $(AM_CPPFLAGS)
fetch_and_op_double_CPPFLAGS     = -DFOP_TYPE_DOUBLE $(AM_CPPFLAGS)
fetch_and_op_long_double_CPPFLAGS= -DFOP_TYPE_LONG_DOUBLE $(AM_CPPFLAGS)
182 183 184 185 186 187 188

fetch_and_op_char_SOURCES        = fetch_and_op.c
fetch_and_op_short_SOURCES       = fetch_and_op.c
fetch_and_op_int_SOURCES         = fetch_and_op.c
fetch_and_op_long_SOURCES        = fetch_and_op.c
fetch_and_op_double_SOURCES      = fetch_and_op.c
fetch_and_op_long_double_SOURCES = fetch_and_op.c
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206

get_accumulate_short_CPPFLAGS    = -DGACC_TYPE_SHORT $(AM_CPPFLAGS)
get_accumulate_long_CPPFLAGS     = -DGACC_TYPE_LONG $(AM_CPPFLAGS)
get_accumulate_double_CPPFLAGS   = -DGACC_TYPE_DOUBLE $(AM_CPPFLAGS)
get_accumulate_int_CPPFLAGS      = -DGACC_TYPE_INT $(AM_CPPFLAGS)
get_accumulate_short_derived_CPPFLAGS  = -DGACC_TYPE_SHORT -DGACC_TYPE_DERIVED $(AM_CPPFLAGS)
get_accumulate_long_derived_CPPFLAGS   = -DGACC_TYPE_LONG -DGACC_TYPE_DERIVED $(AM_CPPFLAGS)
get_accumulate_double_derived_CPPFLAGS = -DGACC_TYPE_DOUBLE -DGACC_TYPE_DERIVED $(AM_CPPFLAGS)
get_accumulate_int_derived_CPPFLAGS    = -DGACC_TYPE_INT -DGACC_TYPE_DERIVED $(AM_CPPFLAGS)

get_accumulate_short_SOURCES     = get_accumulate.c
get_accumulate_long_SOURCES      = get_accumulate.c
get_accumulate_double_SOURCES    = get_accumulate.c
get_accumulate_int_SOURCES       = get_accumulate.c
get_accumulate_short_derived_SOURCES  = get_accumulate.c
get_accumulate_long_derived_SOURCES   = get_accumulate.c
get_accumulate_double_derived_SOURCES = get_accumulate.c
get_accumulate_int_derived_SOURCES      = get_accumulate.c
207

208 209 210
req_example_shm_CPPFLAGS         = -DUSE_WIN_ALLOC_SHM $(AM_CPPFLAGS)
req_example_shm_SOURCES          = req_example.c

Xin Zhao's avatar
Xin Zhao committed
211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230
manyrma2_shm_CPPFLAGS            = -DUSE_WIN_ALLOCATE $(AM_CPPFLAGS)
wintest_shm_CPPFLAGS             = -DUSE_WIN_ALLOCATE $(AM_CPPFLAGS)
transpose3_shm_CPPFLAGS          = -DUSE_WIN_ALLOCATE $(AM_CPPFLAGS)
nullpscw_shm_CPPFLAGS            = -DUSE_WIN_ALLOCATE $(AM_CPPFLAGS)
pscw_ordering_shm_CPPFLAGS       = -DUSE_WIN_ALLOCATE $(AM_CPPFLAGS)
test2_shm_CPPFLAGS               = -DUSE_WIN_ALLOCATE $(AM_CPPFLAGS)
test2_am_shm_CPPFLAGS            = -DUSE_WIN_ALLOCATE $(AM_CPPFLAGS)
test3_shm_CPPFLAGS               = -DUSE_WIN_ALLOCATE $(AM_CPPFLAGS)
test3_am_shm_CPPFLAGS            = -DUSE_WIN_ALLOCATE $(AM_CPPFLAGS)

manyrma2_shm_SOURCES             = manyrma2.c
wintest_shm_SOURCES              = wintest.c
transpose3_shm_SOURCES           = transpose3.c
nullpscw_shm_SOURCES             = nullpscw.c
pscw_ordering_shm_SOURCES        = pscw_ordering.c
test2_shm_SOURCES                = test2.c
test2_am_shm_SOURCES             = test2_am.c
test3_shm_SOURCES                = test3.c
test3_am_shm_SOURCES             = test3_am.c

231
mutex_bench_SOURCES              = mutex_bench.c mcs-mutex.c mcs-mutex.h
232
mutex_bench_shared_CPPFLAGS      = -DUSE_WIN_SHARED $(AM_CPPFLAGS)
233
mutex_bench_shared_SOURCES       = mutex_bench.c mcs-mutex.c mcs-mutex.h
234 235
mutex_bench_shm_CPPFLAGS         = -DUSE_WIN_ALLOC_SHM $(AM_CPPFLAGS)
mutex_bench_shm_SOURCES          = mutex_bench.c mcs-mutex.c mcs-mutex.h
Xin Zhao's avatar
Xin Zhao committed
236 237
mutex_bench_shm_ordered_CPPFLAGS = -DUSE_WIN_ALLOC_SHM -DUSE_CONTIGUOUS_RANK $(AM_CPPFLAGS)
mutex_bench_shm_ordered_SOURCES  = mutex_bench.c mcs-mutex.c mcs-mutex.h
238 239

linked_list_bench_lock_shr_nocheck_SOURCES  = linked_list_bench_lock_shr.c
240
linked_list_bench_lock_shr_nocheck_CPPFLAGS = -DUSE_MODE_NOCHECK $(AM_CPPFLAGS)
241 242 243 244

win_shared_create_allocshm_SOURCES = win_shared_create.c
win_shared_create_no_allocshm_SOURCES = win_shared_create.c
win_shared_create_allocshm_CPPFLAGS = -DUSE_INFO_ALLOC_SHM $(AM_CPPFLAGS)