File: Makefile.am

package info (click to toggle)
mpich 5.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 251,828 kB
  • sloc: ansic: 1,323,147; cpp: 82,869; f90: 72,420; javascript: 40,763; perl: 28,296; sh: 19,399; python: 16,191; xml: 14,418; makefile: 9,468; fortran: 8,046; java: 4,635; pascal: 352; asm: 324; ruby: 176; awk: 27; lisp: 19; php: 8; sed: 4
file content (132 lines) | stat: -rw-r--r-- 5,473 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
#
# Copyright (c) NVIDIA CORPORATION & AFFILIATES, 2001-2014. ALL RIGHTS RESERVED.
# Copyright (C) UT-Battelle, LLC. 2015. ALL RIGHTS RESERVED.
# Copyright (C) ARM Ltd. 2017.  ALL RIGHTS RESERVED.
#
# See file LICENSE for terms.
#

SUBDIRS = profiling

SUBDIRS += iodemo

noinst_PROGRAMS = \
	test_ucp_dlopen \
	test_ucp_config \
	test_ucs_dlopen \
	test_link_map \
	test_dlopen_cfg_print \
	test_init_mt \
	test_memtrack_limit \
	test_hooks

objdir = $(shell sed -n -e 's/^objdir=\(.*\)$$/\1/p' $(LIBTOOL))

test_hooks_SOURCES  = test_hooks.c
test_hooks_CPPFLAGS = $(BASE_CPPFLAGS) \
                      -DLIB_PATH=$(abs_top_builddir)/src/ucs/$(objdir)/libucs.so
test_hooks_CFLAGS   = $(BASE_CFLAGS)
test_hooks_LDADD    = -ldl

test_ucs_dlopen_SOURCES  = test_ucs_dlopen.c
test_ucs_dlopen_CPPFLAGS = $(BASE_CPPFLAGS) \
                           -DLIB_PATH=$(abs_top_builddir)/src/ucs/$(objdir)/libucs.so
test_ucs_dlopen_CFLAGS   = $(BASE_CFLAGS)
test_ucs_dlopen_LDADD    = -ldl

test_ucp_dlopen_SOURCES  = test_ucp_dlopen.c
test_ucp_dlopen_CPPFLAGS = $(BASE_CPPFLAGS) \
                           -DLIB_PATH=$(abs_top_builddir)/src/ucp/$(objdir)/libucp.so
test_ucp_dlopen_CFLAGS   = $(BASE_CFLAGS)
test_ucp_dlopen_LDADD    = -ldl

test_ucp_config_SOURCES  = test_ucp_config.c
test_ucp_config_CPPFLAGS = $(BASE_CPPFLAGS)
test_ucp_config_CFLAGS   = $(BASE_CFLAGS)
test_ucp_config_LDADD    = $(top_builddir)/src/ucp/libucp.la

test_memtrack_limit_SOURCES  = test_memtrack_limit.c
test_memtrack_limit_CPPFLAGS = $(BASE_CPPFLAGS)
test_memtrack_limit_CFLAGS   = $(BASE_CFLAGS)
test_memtrack_limit_LDADD    = $(top_builddir)/src/ucs/libucs.la

test_link_map_SOURCES  = test_link_map.c
test_link_map_CPPFLAGS = $(BASE_CPPFLAGS)
test_link_map_CFLAGS   = $(BASE_CFLAGS)
test_link_map_LDADD    = -ldl $(top_builddir)/src/ucp/libucp.la

test_dlopen_cfg_print_SOURCES  = test_dlopen_cfg_print.c
test_dlopen_cfg_print_CPPFLAGS = $(BASE_CPPFLAGS) -g \
	-DUCS_LIB_PATH=$(abs_top_builddir)/src/ucs/$(objdir)/libucs.so \
	-DUCT_LIB_PATH=$(abs_top_builddir)/src/uct/$(objdir)/libuct.so
test_dlopen_cfg_print_CFLAGS   = $(BASE_CFLAGS)
test_dlopen_cfg_print_LDADD    = -ldl

test_init_mt_SOURCES  = test_init_mt.c
test_init_mt_CPPFLAGS = $(BASE_CPPFLAGS)
test_init_mt_CFLAGS   = $(BASE_CFLAGS) $(OPENMP_CFLAGS)
test_init_mt_LDADD    = $(top_builddir)/src/ucp/libucp.la

if HAVE_CUDA
noinst_PROGRAMS                += test_cuda_hook_dynamic

test_cuda_hook_dynamic_SOURCES  = test_cuda_hook.c
test_cuda_hook_dynamic_CPPFLAGS = $(BASE_CPPFLAGS) $(CUDA_CPPFLAGS)
test_cuda_hook_dynamic_CFLAGS   = $(BASE_CFLAGS)
test_cuda_hook_dynamic_LDFLAGS  = $(CUDA_LDFLAGS)
test_cuda_hook_dynamic_LDADD    = $(top_builddir)/src/ucp/libucp.la \
                                  $(top_builddir)/src/ucm/libucm.la \
                                  $(CUDA_LIBS) $(CUDART_LIBS)

noinst_PROGRAMS          += test_no_cuda_ctx
test_no_cuda_ctx_SOURCES  = test_no_cuda_ctx.c
test_no_cuda_ctx_CPPFLAGS = $(BASE_CPPFLAGS) $(CUDA_CPPFLAGS)
test_no_cuda_ctx_CFLAGS   = $(BASE_CFLAGS)
test_no_cuda_ctx_LDFLAGS  = $(CUDA_LDFLAGS)
test_no_cuda_ctx_LDADD    = $(top_builddir)/src/ucp/libucp.la \
                            $(CUDA_LIBS)

if HAVE_CUDA_STATIC
noinst_PROGRAMS                += test_cuda_hook_static
test_cuda_hook_static_SOURCES   = test_cuda_hook.c
test_cuda_hook_static_CPPFLAGS  = $(BASE_CPPFLAGS) $(CUDA_CPPFLAGS)
test_cuda_hook_static_CFLAGS    = $(BASE_CFLAGS)
test_cuda_hook_static_LDFLAGS   = $(CUDA_LDFLAGS)
test_cuda_hook_static_LDADD     = $(top_builddir)/src/ucp/libucp.la \
                                  $(top_builddir)/src/ucm/libucm.la \
                                  $(CUDART_STATIC_LIBS) $(CUDA_LIBS)
endif

if HAVE_NVCC
noinst_PROGRAMS                      += test_cuda_get_symbol_address
test_cuda_get_symbol_address_SOURCES  = test_cuda_get_symbol_address.cu
test_cuda_get_symbol_address_CPPFLAGS = $(BASE_CPPFLAGS) $(CUDA_CPPFLAGS)
test_cuda_get_symbol_address_LDFLAGS  = $(CUDA_LDFLAGS)
test_cuda_get_symbol_address_LDADD    = $(top_builddir)/src/ucp/libucp.la \
                                        $(top_builddir)/src/ucm/libucm.la \
                                        $(CUDART_LIBS)
test_cuda_get_symbol_address_DEPBASE  = $(DEPDIR)/test_cuda_get_symbol_address
test_cuda_get_symbol_address_COMPILE  = \
    $(NVCC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
    $(test_cuda_get_symbol_address_CPPFLAGS)
endif

endif

if HAVE_TCMALLOC
noinst_PROGRAMS       += test_tcmalloc
test_tcmalloc_SOURCES  = test_tcmalloc.c
test_tcmalloc_CPPFLAGS = $(BASE_CPPFLAGS)
test_tcmalloc_CFLAGS   = $(BASE_CFLAGS)
test_tcmalloc_LDADD    = -ldl $(TCMALLOC_LIB) \
                          $(top_builddir)/src/ucp/libucp.la
endif

.cu.o : ; $(NVCC) -c -o $@ $<

test_cuda_get_symbol_address.o: test_cuda_get_symbol_address.cu
@am__fastdepCC_TRUE@	$(AM_V_CC)$(test_cuda_get_symbol_address_COMPILE) -MT $@ -MD -MF $(test_cuda_get_symbol_address_DEPBASE).Tpo -c -o $@ `test -f '$(<F)' || echo '$(srcdir)/'`$(<F)
@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(test_cuda_get_symbol_address_DEPBASE).Tpo $(test_cuda_get_symbol_address_DEPBASE).Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$(<F)' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(test_cuda_get_symbol_address_COMPILE) -Xcompiler "-fPIC" -c -o $@ `test -f '$(<F)' || echo '$(srcdir)/'`$(<F)