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
|
##
## Copyright (C) by Argonne National Laboratory
## See COPYRIGHT in top-level directory
##
AM_CPPFLAGS = -I$(top_builddir)/src/include -I${top_srcdir}/src/include
LDADD = ../lib/lib@MPILIBNAME@.la -lm
# "cpi" is special, we always build it at the end of the regular "make" process
# and its main purpose is to catch missing symbol link-time errors before any
# tests are run.
noinst_PROGRAMS = cpi
# pmandel requires a separate set of socket calls (its a long story)
# and may not build on most platforms
EXTRA_PROGRAMS = pmandel pmandel_spawn pmandel_service pmandel_spaserv \
pmandel_fence hellow icpi ircpi parent child srtest \
spawn_merge_parent spawn_merge_child1 spawn_merge_child2
# CUDA
#
# when compiling cuda/cudapi.cu with NVCC, mpi.h will pull in mpicxx.h
# because __cplusplus is defined (NVCC is a C++ compiler)
AM_CPPFLAGS += -I$(top_builddir)/src/binding/cxx
# How to compile .cu files
.cu.o:
$(NVCC) -arch=native $(AM_CPPFLAGS) -c -o $@ $<
EXTRA_PROGRAMS += cuda/cudapi
cuda_cudapi_SOURCES = cuda/cudapi.cu
cuda_cudapi_LDADD = ../lib/lib@MPILIBNAME@.la -lm
cuda_cudapi_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=link $(CC) $(AM_CFLAGS) $(CFLAGS) \
$(AM_LDFLAGS) $(LDFLAGS) -o $@
|