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
|
##
## Copyright (C) by Argonne National Laboratory
## See COPYRIGHT in top-level directory
##
AM_CPPFLAGS = -I$(srcdir)/../include -I../include -I$(srcdir)/../dtpools/include
noinst_LTLIBRARIES = libmtest.la
libmtest_la_SOURCES = mtest.c mtest_common.c
# All GPU code is currently in mtest_common.c, so all flags and
# libraries can go here. Any program that links with libmtest.la will
# get the right dependencies via libtool.
libmtest_la_LIBADD = @cuda_LIBS@ @ze_LIBS@ @hip_LIBS@
libmtest_la_LDFLAGS = @cuda_LDFLAGS@ @ze_LDFLAGS@ @hip_LDFLAGS@
libmtest_la_CPPFLAGS = $(AM_CPPFLAGS) @cuda_CPPFLAGS@ @ze_CPPFLAGS@ @hip_CPPFLAGS@
noinst_LTLIBRARIES += libdtypes.la
libdtypes_la_SOURCES = dtypes.c
#---- run_mpitests ------------------------------------------------------------
noinst_LTLIBRARIES += librun_mpitests.la
librun_mpitests_la_SOURCES = run_mpitests.c
#---- CXX ---------------------------------------------------------------------
if HAS_CXX
## list a dummy library that we don't actually build in order to cause automake
## to emit a rule for building mtest_cxx.o from mtest_cxx.cxx
noinst_LTLIBRARIES += libmtest_cxx.la
libmtest_cxx_la_SOURCES = mtest_cxx.cxx mtest_common.c
libmtest_cxx_la_LIBADD = @cuda_LIBS@ @ze_LIBS@ @hip_LIBS@
libmtest_cxx_la_LDFLAGS = @cuda_LDFLAGS@ @ze_LDFLAGS@ @hip_LDFLAGS@
libmtest_cxx_la_CPPFLAGS = $(AM_CPPFLAGS) @cuda_CPPFLAGS@ @ze_CPPFLAGS@ @hip_CPPFLAGS@
endif
#---- F77 ---------------------------------------------------------------------
if HAS_F77
noinst_LTLIBRARIES += libmtest_f77.la
libmtest_f77_la_SOURCES = mtest_f77.f
endif
#---- F90 ---------------------------------------------------------------------
if HAS_F90
noinst_LTLIBRARIES += libmtest_f90.la
libmtest_f90_la_SOURCES = mtest_f90.f90
endif
#---- F08 ---------------------------------------------------------------------
if HAS_F08
noinst_LTLIBRARIES += libmtest_f08.la
libmtest_f08_la_SOURCES = mtest_f08.f90
endif
#---- single ---------------------------------------------------------------------
noinst_LTLIBRARIES += libmtest_single.la
libmtest_single_la_SOURCES = mtest_single.c
libmtest_single_la_LIBADD = libmtest.la
#---- thread ---------------------------------------------------------------------
noinst_LTLIBRARIES += libmtest_thread.la
libmtest_thread_la_SOURCES = mtest_thread.c
libmtest_thread_la_LIBADD = libmtest.la
|