Коммит
94190bf04b
76
.gitignore
поставляемый
76
.gitignore
поставляемый
@ -132,82 +132,6 @@ examples/oshmem_shmalloc
|
||||
examples/oshmem_strided_puts
|
||||
examples/oshmem_symmetric_data
|
||||
|
||||
ompi/contrib/vt/vt/aclocal.m4
|
||||
ompi/contrib/vt/vt/autom4te.cache
|
||||
ompi/contrib/vt/vt/config.h
|
||||
ompi/contrib/vt/vt/config.h.in
|
||||
ompi/contrib/vt/vt/config/mpigen/mk_c_wrapper.sh
|
||||
ompi/contrib/vt/vt/config/mpigen/mk_fortran_wrapper.sh
|
||||
ompi/contrib/vt/vt/config/mpigen/mk_registry.sh
|
||||
ompi/contrib/vt/vt/extlib/otf/config.h
|
||||
ompi/contrib/vt/vt/extlib/otf/config.h.in
|
||||
ompi/contrib/vt/vt/extlib/otf/config/py-compile
|
||||
ompi/contrib/vt/vt/extlib/otf/otflib/OTF_inttypes_unix.h
|
||||
ompi/contrib/vt/vt/extlib/otf/tests/generic_streams/otf_generic_streams
|
||||
ompi/contrib/vt/vt/extlib/otf/tests/generic_streams-mpi/otf_generic_streams_mpi
|
||||
ompi/contrib/vt/vt/extlib/otf/tests/hello/otf_hello
|
||||
ompi/contrib/vt/vt/extlib/otf/tests/progress/otf_progress
|
||||
ompi/contrib/vt/vt/extlib/otf/tests/read_from_buffer/otf_read_from_buffer
|
||||
ompi/contrib/vt/vt/extlib/otf/tests/thumbnail/otf_thumbnail
|
||||
ompi/contrib/vt/vt/extlib/otf/tools/otf2vtf/otf2vtf
|
||||
ompi/contrib/vt/vt/extlib/otf/tools/otfaux/otfaux
|
||||
ompi/contrib/vt/vt/extlib/otf/tools/otfcompress/otfcompress
|
||||
ompi/contrib/vt/vt/extlib/otf/tools/otfconfig/otfconfig
|
||||
ompi/contrib/vt/vt/extlib/otf/tools/otfdump/otfdump
|
||||
ompi/contrib/vt/vt/extlib/otf/tools/otfdump/otfprint
|
||||
ompi/contrib/vt/vt/extlib/otf/tools/otfinfo/otfinfo
|
||||
ompi/contrib/vt/vt/extlib/otf/tools/otfmerge/otfmerge
|
||||
ompi/contrib/vt/vt/extlib/otf/tools/otfmerge/mpi/otfmerge-mpi
|
||||
ompi/contrib/vt/vt/extlib/otf/tools/otfmerge/mpi/*c
|
||||
ompi/contrib/vt/vt/extlib/otf/tools/otfprofile/otfprofile
|
||||
ompi/contrib/vt/vt/extlib/otf/tools/otfprofile/mpi/otfprofile-mpi
|
||||
ompi/contrib/vt/vt/extlib/otf/tools/otfprofile/mpi/*.cpp
|
||||
ompi/contrib/vt/vt/extlib/otf/tools/otfshrink/otfshrink
|
||||
ompi/contrib/vt/vt/extlib/otf/tools/vtf2otf/vtf2otf
|
||||
ompi/contrib/vt/vt/include/vt_inttypes.h
|
||||
ompi/contrib/vt/vt/tools/opari/tool/opari
|
||||
ompi/contrib/vt/vt/tools/opari/tool/util.c
|
||||
ompi/contrib/vt/vt/tools/vtcpcavail/vtcpcavail
|
||||
ompi/contrib/vt/vt/tools/vtdyn/vtdyn
|
||||
ompi/contrib/vt/vt/tools/vtdyn/dynattlib/libvt-dynatt.*
|
||||
ompi/contrib/vt/vt/tools/vtfilter/vtfilter
|
||||
ompi/contrib/vt/vt/tools/vtfilter/mpi/vtfilter-mpi
|
||||
ompi/contrib/vt/vt/tools/vtfilter/mpi/*.cc
|
||||
ompi/contrib/vt/vt/tools/vtfilter/mpi/old
|
||||
ompi/contrib/vt/vt/tools/vtiofsl/vtiofsl-common
|
||||
ompi/contrib/vt/vt/tools/vtiofsl/vtiofsl-start
|
||||
ompi/contrib/vt/vt/tools/vtiofsl/vtiofsl-stop
|
||||
ompi/contrib/vt/vt/tools/vtjava/vtjava
|
||||
ompi/contrib/vt/vt/tools/vtlibwrapgen/vt_libwrapgen_defs.h
|
||||
ompi/contrib/vt/vt/tools/vtlibwrapgen/vtlibwrapgen
|
||||
ompi/contrib/vt/vt/tools/vtlibwrapgen/installdirs.c
|
||||
ompi/contrib/vt/vt/tools/vtlibwrapgen/util.c
|
||||
ompi/contrib/vt/vt/tools/vtrun/vtrun
|
||||
ompi/contrib/vt/vt/tools/vtsetup/vtsetup
|
||||
ompi/contrib/vt/vt/tools/vtsetup/vtsetup-config.xml
|
||||
ompi/contrib/vt/vt/tools/vtsetup/vtsetup-data.xml
|
||||
ompi/contrib/vt/vt/tools/vtsetup/doc/ChangeLog
|
||||
ompi/contrib/vt/vt/tools/vtsetup/doc/LICENSE
|
||||
ompi/contrib/vt/vt/tools/vtunify/vtunify
|
||||
ompi/contrib/vt/vt/tools/vtunify/mpi/vtunify-mpi
|
||||
ompi/contrib/vt/vt/tools/vtunify/mpi/hooks
|
||||
ompi/contrib/vt/vt/tools/vtunify/mpi/*.cc
|
||||
ompi/contrib/vt/vt/tools/vtwrapper/vtwrapper
|
||||
ompi/contrib/vt/vt/tools/vtwrapper/vtcc-wrapper-data.txt
|
||||
ompi/contrib/vt/vt/tools/vtwrapper/vtc++-wrapper-data.txt
|
||||
ompi/contrib/vt/vt/tools/vtwrapper/vtfort-wrapper-data.txt
|
||||
ompi/contrib/vt/vt/tools/vtwrapper/vtf77-wrapper-data.txt
|
||||
ompi/contrib/vt/vt/tools/vtwrapper/vtf90-wrapper-data.txt
|
||||
ompi/contrib/vt/vt/tools/vtwrapper/vtnvcc-wrapper-data.txt
|
||||
ompi/contrib/vt/vt/tools/vtwrapper/installdirs.c
|
||||
ompi/contrib/vt/vt/tools/vtwrapper/util.c
|
||||
ompi/contrib/vt/vt/util/installdirs_conf.h
|
||||
ompi/contrib/vt/vt/vtlib/vt_fmpiwrap.gen.c
|
||||
ompi/contrib/vt/vt/vtlib/vt_mpireg.gen.c
|
||||
ompi/contrib/vt/vt/vtlib/vt_mpireg.gen.h
|
||||
ompi/contrib/vt/vt/vtlib/vt_mpiwrap.gen.c
|
||||
ompi/contrib/vt/wrappers/mpi*txt
|
||||
|
||||
ompi/debuggers/*.in
|
||||
ompi/debuggers/dlopen_test
|
||||
ompi/debuggers/predefined_gap_test
|
||||
|
3
NEWS
3
NEWS
@ -59,7 +59,8 @@ Trunk (not on release branches yet)
|
||||
support CUDA IPC. Earlier versions would get error and abort.
|
||||
- Do not build the MPI C++ bindings by default. They must be enabled
|
||||
via --enable-mpi-cxx.
|
||||
|
||||
- Remove embedded VampirTrace. It is in maintenance mode since 2013.
|
||||
Please consider Score-P (score-p.org) as an external replacement.
|
||||
|
||||
1.8.4
|
||||
-----
|
||||
|
3
README
3
README
@ -1171,9 +1171,6 @@ MISCELLANEOUS SUPPORT LIBRARIES
|
||||
running Valgrind on MPI applications. There is a minor performance
|
||||
penalty for enabling this option.
|
||||
|
||||
--disable-vt
|
||||
Disable building the VampirTrace that is bundled with Open MPI.
|
||||
|
||||
MPI FUNCTIONALITY
|
||||
|
||||
--with-mpi-param-check(=value)
|
||||
|
@ -46,7 +46,7 @@ AC_DEFUN([OMPI_CONTRIB],[
|
||||
if test "$enable_contrib_no_build" = "yes"; then
|
||||
AC_MSG_RESULT([yes])
|
||||
AC_MSG_ERROR([*** The enable-contrib-no-build flag requires an explicit list
|
||||
*** of packages to not build. For example, --enable-contrib-no-build=vt])
|
||||
*** of packages to not build. For example, --enable-contrib-no-build=libompitrace])
|
||||
else
|
||||
ifs_save="$IFS"
|
||||
IFS="${IFS}$PATH_SEPARATOR,"
|
||||
|
9
contrib/dist/linux/openmpi.spec
поставляемый
9
contrib/dist/linux/openmpi.spec
поставляемый
@ -563,13 +563,11 @@ find $RPM_BUILD_ROOT -type f -o -type l | \
|
||||
|
||||
# Runtime files. This should generally be library files and some
|
||||
# executables (no man pages, no doc files, no header files). Do *not*
|
||||
# include wrapper compilers. Note that the VT files are variable; if
|
||||
# they're there, then take them (e.g., VT build may have been disabled
|
||||
# via a configure option).
|
||||
# include wrapper compilers.
|
||||
cat all.files | egrep '/lib/|/lib64/|/lib32/|/bin/|/etc/|/help-' > tmp.files | /bin/true
|
||||
# Snip out a bunch of executables (e.g., wrapper compilers, pkgconfig
|
||||
# files, .la and .a files)
|
||||
egrep -vi 'mpic|mpif|ortec|vtc|vtfort|f77|f90|pkgconfig|\.la$|\.a$' tmp.files > runtime.files | /bin/true
|
||||
egrep -vi 'mpic|mpif|ortec|f77|f90|pkgconfig|\.la$|\.a$' tmp.files > runtime.files | /bin/true
|
||||
rm -f tmp.files
|
||||
|
||||
# Now take the runtime files out of all.files so that we don't get
|
||||
@ -758,6 +756,9 @@ test "x$RPM_BUILD_ROOT" != "x" && rm -rf $RPM_BUILD_ROOT
|
||||
#
|
||||
#############################################################################
|
||||
%changelog
|
||||
* Tue Jan 20 2015 Bert Wesarg <bert.wesarg@tu-dresden.de>
|
||||
- Remove VampirTrace wrapper from package.
|
||||
|
||||
* Mon Jul 07 2014 Jeff Squyres <jsquyres@cisco.com>
|
||||
- Several minor fixes from Oliver Lahaye: fix dates in changelog,
|
||||
added %{?dist} tag to the Release field, and added some Provides
|
||||
|
@ -17,7 +17,7 @@ enable_cxx_exceptions=no
|
||||
enable_ft_thread=no
|
||||
enable_per_user_config_files=no
|
||||
enable_mca_no_build=crs,carto,maffinity,paffinity,pstat,filem,grpcomm-basic,grpcomm-hier,rmaps-rank_file,rmaps-seq,rmaps-topo,routed-binomial,routed-linear,routed-radix,routed-slave,snapc
|
||||
enable_contrib_no_build=libnbc,vt
|
||||
enable_contrib_no_build=libnbc
|
||||
with_devel_headers=yes
|
||||
with_alps=no
|
||||
with_ftb=no
|
||||
|
@ -17,7 +17,7 @@ enable_cxx_exceptions=no
|
||||
enable_ft_thread=no
|
||||
enable_per_user_config_files=no
|
||||
enable_mca_no_build=crs,carto,maffinity,paffinity,pstat,filem,grpcomm-basic,grpcomm-hier,rmaps-rank_file,rmaps-seq,rmaps-topo,routed-binomial,routed-linear,routed-radix,routed-slave,snapc
|
||||
enable_contrib_no_build=libnbc,vt
|
||||
enable_contrib_no_build=libnbc
|
||||
with_devel_headers=yes
|
||||
with_alps=no
|
||||
with_ftb=no
|
||||
|
@ -20,7 +20,6 @@ enable_per_user_config_files=no
|
||||
enable_script_wrapper_compilers=no
|
||||
enable_orterun_prefix_by_default=yes
|
||||
enable_io_romio=no
|
||||
enable_vt=no
|
||||
enable_mca_no_build=carto,crs,memchecker,snapc,crcp,paffinity,filem,sstore,compress,rml-ftrm
|
||||
with_memory_manager=no
|
||||
with_tm=no
|
||||
|
@ -18,7 +18,6 @@ enable_mpi_cxx_seek=no
|
||||
enable_cxx_exceptions=no
|
||||
enable_mpi_java=yes
|
||||
enable_io_romio=no
|
||||
enable_vt=no
|
||||
enable_mca_no_build=crs,memchecker,snapc,crcp,rml-ftrm
|
||||
with_memory_manager=no
|
||||
with_tm=no
|
||||
|
@ -15,7 +15,6 @@ enable_mpi_cxx=no
|
||||
enable_mpi_cxx_seek=no
|
||||
enable_mpi_java=yes
|
||||
enable_memchecker=no
|
||||
enable_vt=no
|
||||
enable_mca_no_build=crs,memchecker,snapc,crcp,rml-ftrm
|
||||
with_memory_manager=no
|
||||
with_devel_headers=yes
|
||||
|
@ -2,7 +2,7 @@ enable_mem_debug=yes
|
||||
enable_debug_symbols=yes
|
||||
enable_debug=yes
|
||||
enable_mem_profile=no
|
||||
enable_contrib_no_build=libnbc,vt
|
||||
enable_contrib_no_build=libnbc
|
||||
enable_ft_thread=no
|
||||
with_verbs=/usr
|
||||
CXXFLAGS="-m64 -mcpu=power6 -mtune=power6 -O0 -g3 -ggdb"
|
||||
|
@ -2,7 +2,7 @@ enable_mem_debug=yes
|
||||
enable_debug_symbols=yes
|
||||
enable_debug=yes
|
||||
enable_mem_profile=no
|
||||
enable_contrib_no_build=libnbc,vt
|
||||
enable_contrib_no_build=libnbc
|
||||
enable_ft_thread=no
|
||||
with_verbs=/usr
|
||||
CXXFLAGS="-m64 -mcpu=power7 -mtune=power7 -O0 -g3 -ggdb"
|
||||
|
@ -2,7 +2,7 @@ enable_mem_debug=yes
|
||||
enable_debug_symbols=yes
|
||||
enable_debug=yes
|
||||
enable_mem_profile=no
|
||||
enable_contrib_no_build=libnbc,vt
|
||||
enable_contrib_no_build=libnbc
|
||||
enable_ft_thread=no
|
||||
with_verbs=/usr
|
||||
CXXFLAGS="-m32 -mcpu=powerpc64 -mtune=powerpc64 -O0 -g3 -ggdb"
|
||||
|
@ -2,7 +2,7 @@ enable_mem_debug=yes
|
||||
enable_debug_symbols=yes
|
||||
enable_debug=yes
|
||||
enable_mem_profile=no
|
||||
enable_contrib_no_build=libnbc,vt
|
||||
enable_contrib_no_build=libnbc
|
||||
enable_ft_thread=no
|
||||
with_verbs=/usr
|
||||
CXXFLAGS="-m64 -mcpu=powerpc64 -mtune=powerpc64 -O0 -g3 -ggdb"
|
||||
|
@ -1,7 +1,7 @@
|
||||
enable_mem_debug=no
|
||||
enable_mem_profile=no
|
||||
enable_debug=no
|
||||
enable_contrib_no_build=libnbc,vt
|
||||
enable_contrib_no_build=libnbc
|
||||
enable_ft_thread=no
|
||||
with_verbs=/usr
|
||||
enable_shared=yes
|
||||
|
@ -1,7 +1,7 @@
|
||||
enable_mem_debug=no
|
||||
enable_mem_profile=no
|
||||
enable_debug=no
|
||||
enable_contrib_no_build=libnbc,vt
|
||||
enable_contrib_no_build=libnbc
|
||||
enable_ft_thread=no
|
||||
with_verbs=/usr
|
||||
enable_shared=yes
|
||||
|
@ -1,7 +1,7 @@
|
||||
enable_mem_debug=no
|
||||
enable_mem_profile=no
|
||||
enable_debug=no
|
||||
enable_contrib_no_build=libnbc,vt
|
||||
enable_contrib_no_build=libnbc
|
||||
enable_ft_thread=no
|
||||
with_verbs=/usr
|
||||
enable_shared=yes
|
||||
|
@ -1,7 +1,7 @@
|
||||
enable_mem_debug=no
|
||||
enable_mem_profile=no
|
||||
enable_debug=no
|
||||
enable_contrib_no_build=libnbc,vt
|
||||
enable_contrib_no_build=libnbc
|
||||
enable_ft_thread=no
|
||||
with_verbs=/usr
|
||||
enable_shared=yes
|
||||
|
@ -17,8 +17,7 @@ enable_mpi_cxx_seek=no
|
||||
enable_cxx_exceptions=no
|
||||
enable_mpi_java=yes
|
||||
enable_io_romio=no
|
||||
enable_vt=no
|
||||
enable_contrib_no_build=libnbc,vt
|
||||
enable_contrib_no_build=libnbc
|
||||
with_memory_manager=no
|
||||
with_tm=no
|
||||
with_devel_headers=yes
|
||||
|
@ -18,9 +18,8 @@ enable_mpi_cxx_seek=no
|
||||
enable_cxx_exceptions=no
|
||||
enable_mpi_java=yes
|
||||
enable_io_romio=no
|
||||
enable_vt=no
|
||||
enable_mca_no_build=crs,memchecker,snapc,crcp,rml-ftrm,filem-rsh
|
||||
enable_contrib_no_build=libnbc,vt
|
||||
enable_contrib_no_build=libnbc
|
||||
with_memory_manager=no
|
||||
with_tm=no
|
||||
with_devel_headers=yes
|
||||
|
@ -17,9 +17,8 @@ enable_mpi_fortran=yes
|
||||
enable_mpi_cxx=no
|
||||
enable_mpi_cxx_seek=no
|
||||
enable_memchecker=no
|
||||
enable_vt=no
|
||||
enable_mca_no_build=crs,memchecker,snapc,crcp,rml-ftrm
|
||||
enable_contrib_no_build=libnbc,vt
|
||||
enable_contrib_no_build=libnbc
|
||||
with_memory_manager=no
|
||||
with_devel_headers=yes
|
||||
with_xgrid=no
|
||||
|
@ -16,9 +16,8 @@ enable_mpi_cxx=no
|
||||
enable_mpi_cxx_seek=no
|
||||
enable_mpi_java=yes
|
||||
enable_memchecker=no
|
||||
enable_vt=no
|
||||
enable_mca_no_build=crs,memchecker,snapc,crcp,rml-ftrm,filem-rsh
|
||||
enable_contrib_no_build=libnbc,vt
|
||||
enable_contrib_no_build=libnbc
|
||||
with_memory_manager=no
|
||||
with_devel_headers=yes
|
||||
with_xgrid=no
|
||||
|
@ -11,7 +11,7 @@ enable_shared=yes
|
||||
enable_static=no
|
||||
with_slurm=yes
|
||||
with_pmi=yes
|
||||
enable_contrib_no_build=libnbc,vt
|
||||
enable_contrib_no_build=libnbc
|
||||
enable_visibility=yes
|
||||
enable_ipv6=no
|
||||
enable_mpi_fortran=no
|
||||
|
@ -16,7 +16,7 @@ enable_shared=yes
|
||||
enable_static=no
|
||||
with_slurm=yes
|
||||
with_pmi=no
|
||||
enable_contrib_no_build=libnbc,vt
|
||||
enable_contrib_no_build=libnbc
|
||||
enable_visibility=yes
|
||||
enable_memchecker=no
|
||||
enable_ipv6=no
|
||||
|
@ -12,7 +12,7 @@ enable_debug=no
|
||||
enable_shared=yes
|
||||
enable_static=no
|
||||
with_slurm=yes
|
||||
enable_contrib_no_build=libnbc,vt
|
||||
enable_contrib_no_build=libnbc
|
||||
enable_visibility=yes
|
||||
enable_memchecker=no
|
||||
enable_ipv6=no
|
||||
|
@ -16,7 +16,7 @@ enable_debug=yes
|
||||
enable_shared=no
|
||||
enable_static=yes
|
||||
with_slurm=yes
|
||||
enable_contrib_no_build=libnbc,vt
|
||||
enable_contrib_no_build=libnbc
|
||||
enable_visibility=yes
|
||||
enable_memchecker=no
|
||||
enable_ipv6=no
|
||||
|
@ -25,7 +25,7 @@ enable_ft_thread=no
|
||||
enable_per_user_config_files=no
|
||||
enable_pty_support=no
|
||||
enable_mca_no_build=crs,filem,routed-linear,snapc,pml-dr,pml-crcp2,pml-crcpw,pml-v,pml-example,crcp,pml-cm,ess-cnos,grpcomm-cnos,plm-rsh,btl-tcp,oob-ud,ras-simulator
|
||||
enable_contrib_no_build=libnbc,vt
|
||||
enable_contrib_no_build=libnbc
|
||||
|
||||
# enable direct calling for ob1
|
||||
enable_mca_direct=pml-ob1
|
||||
|
@ -32,7 +32,7 @@ enable_per_user_config_files=no
|
||||
enable_pty_support=no
|
||||
enable_mca_no_build=crs,filem,routed-linear,snapc,pml-dr,pml-crcp2,pml-crcpw,pml-v,pml-example,crcp,pml-cm,ess-cnos,grpcomm-cnos,plm-rsh,btl-tcp,oob-ud,ras-simulator,mpool-fake
|
||||
enable_mca_static=btl:ugni,btl:self,btl:vader,pml:ob1,coll:ml
|
||||
enable_contrib_no_build=libnbc,vt
|
||||
enable_contrib_no_build=libnbc
|
||||
|
||||
# enable direct calling for ob1
|
||||
enable_mca_direct=pml-ob1
|
||||
|
@ -9,7 +9,7 @@ enable_picky=yes
|
||||
enable_debug=yes
|
||||
enable_shared=yes
|
||||
enable_static=no
|
||||
enable_contrib_no_build=libnbc,vt
|
||||
enable_contrib_no_build=libnbc
|
||||
with_xgrid=no
|
||||
enable_io_romio=no
|
||||
enable_ipv6=no
|
||||
|
@ -9,7 +9,7 @@ enable_picky=yes
|
||||
enable_debug=yes
|
||||
enable_shared=yes
|
||||
enable_static=no
|
||||
enable_contrib_no_build=libnbc,vt
|
||||
enable_contrib_no_build=libnbc
|
||||
with_xgrid=no
|
||||
enable_io_romio=no
|
||||
enable_ipv6=no
|
||||
|
@ -9,7 +9,7 @@ enable_picky=yes
|
||||
enable_debug=no
|
||||
enable_shared=yes
|
||||
enable_static=no
|
||||
enable_contrib_no_build=libnbc,vt
|
||||
enable_contrib_no_build=libnbc
|
||||
with_xgrid=no
|
||||
enable_io_romio=no
|
||||
enable_ipv6=no
|
||||
|
@ -10,7 +10,7 @@ enable_debug=yes
|
||||
enable_shared=no
|
||||
enable_static=yes
|
||||
with_wrapper_ldflags=-Wl,-search_paths_first
|
||||
enable_contrib_no_build=libnbc,vt
|
||||
enable_contrib_no_build=libnbc
|
||||
with_xgrid=no
|
||||
enable_io_romio=no
|
||||
enable_memchecker=no
|
||||
|
@ -9,7 +9,7 @@ enable_picky=yes
|
||||
enable_debug=yes
|
||||
enable_shared=no
|
||||
enable_static=yes
|
||||
enable_contrib_no_build=libnbc,vt
|
||||
enable_contrib_no_build=libnbc
|
||||
with_xgrid=no
|
||||
enable_io_romio=no
|
||||
enable_memchecker=no
|
||||
|
@ -37,7 +37,6 @@ fi
|
||||
host_alias=x86_64-cray-linux-gnu \
|
||||
--enable-ltdl-convenience --no-recursion" \
|
||||
--with-alps=yes \
|
||||
--with-contrib-vt-flags="--with-platform=linux" \
|
||||
--prefix="$SW_INSTALL_ROOT/$VER" | tee build.log
|
||||
|
||||
#gmake all install | tee -a build.log
|
||||
|
@ -83,7 +83,6 @@ $SRC_DIR/configure \
|
||||
--with-platform=${SRC_DIR}/contrib/platform/${PLATFORM} \
|
||||
--with-io-romio-flags="host_alias=${ID} build_alias=${JD} \
|
||||
--enable-ltdl-convenience --no-recursion" \
|
||||
--with-contrib-vt-flags="--with-platform=linux" \
|
||||
--with-wrapper-cflags="${SCI_INC}" \
|
||||
--with-wrapper-ldflags="-Bstatic ${SCI_LIB} ${BASE_LPATHS}" \
|
||||
--with-wrapper-libs="-lsci_quadcore" \
|
||||
|
@ -97,7 +97,7 @@ esac
|
||||
|
||||
|
||||
# If further packages should be disabled, insert
|
||||
# --enable-contrib-no-build=vt --disable-mpi-cxx --disable-io-romio \
|
||||
# --disable-mpi-cxx --disable-io-romio \
|
||||
|
||||
$SRCDIR/configure \
|
||||
--prefix=$PREFIX \
|
||||
@ -107,7 +107,6 @@ $SRCDIR/configure \
|
||||
--enable-mca-no-build=maffinity-first_use,maffinity-libnuma,ess-cnos,ess-slurm,ess-slurmd,filem-rsh,grpcomm-cnos,plm-rsh,plm-rshd,plm-slurm,pml-dr,btl-tcp,notifier-twitter,notifier-smtp,pml-csum,pml-v,vprotocol-pessimist,dpm-orte \
|
||||
--with-wrapper-ldflags="-L${PE_DIR}/lib/snos64 -L${SE_DIR}/lib/snos64 -L/opt/xt-mpt/default/lib/snos64/ ${WRAPPER_LDFLAGS}" \
|
||||
--with-wrapper-libs="-lpct -lalpslli -lalpsutil -lportals -lpthread -lm" \
|
||||
--enable-contrib-no-build=vt \
|
||||
${COMPILER_FLAGS} \
|
||||
CPPFLAGS="-DNDEBUG -I${PE_DIR}/include ${CPPFLAGS}" \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
|
@ -7,7 +7,7 @@ enable_dlopen=no
|
||||
with_portals_config=redstorm
|
||||
with_memory_manager=none
|
||||
enable_mca_no_build=paffinity,maffinity,debugger,notifier,btl-sm,coll-hierarch,coll-sm,common-sm,mpool-sm,pml-dr,pml-v
|
||||
enable_contrib_no_build=libnbc,vt
|
||||
enable_contrib_no_build=libnbc
|
||||
with_rte_support=no
|
||||
enable_heterogeneous=no
|
||||
enable_pty_support=no
|
||||
|
@ -2,7 +2,7 @@ enable_static=yes
|
||||
enable_shared=no
|
||||
enable_dlopen=no
|
||||
enable_mca_no_build=if,compress,crs,pml-bfo,pml-crcpw,pml-csum,pml-dr,pml-v,vprotocol,btl-tcp
|
||||
enable_contrib_no_build=vt
|
||||
enable_contrib_no_build=
|
||||
enable_heterogeneous=no
|
||||
enable_pty_support=no
|
||||
enable_mem_debug=no
|
||||
|
@ -4,7 +4,7 @@ with_threads=no
|
||||
enable_dlopen=no
|
||||
with_memory_manager=no
|
||||
enable_mca_no_build=carto,compress,crs,maffinity,paffinity,debugger,notifier,bml,btl,coll-hierarch,coll-sm,common-sm,mpool,pml-bfo,pml-csum,pml-dr,pml-ob1,osc-rdma,rcache,vprotocol,btl
|
||||
enable_contrib_no_build=libnbc,vt
|
||||
enable_contrib_no_build=libnbc
|
||||
with_rte_support=no
|
||||
enable_heterogeneous=no
|
||||
enable_pty_support=no
|
||||
|
@ -1,6 +1,6 @@
|
||||
with_memory_manager=no
|
||||
enable_mca_no_build=bml,btl,coll-hierarch,coll-sm,common-sm,mpool,pml-bfo,pml-csum,pml-dr,pml-ob1,osc-rdma,rcache,vprotocol
|
||||
enable_contrib_no_build=libnbc,vt
|
||||
enable_contrib_no_build=libnbc
|
||||
enable_heterogeneous=no
|
||||
enable_mem_debug=no
|
||||
enable_mem_profile=no
|
||||
|
@ -9,7 +9,7 @@ enable_debug=no
|
||||
enable_debug_symbols=no
|
||||
#enable_pretty_print_stacktrace=no
|
||||
with_valgrind=no
|
||||
enable_contrib_no_build=vt
|
||||
enable_contrib_no_build=
|
||||
|
||||
# Extensions and language bindings
|
||||
enable_io_romio=yes
|
||||
|
@ -16,4 +16,4 @@ support this scenario, similar to how it is done for MCA components.
|
||||
:-)
|
||||
|
||||
If it has an autogen.subdirs file, then it needs to be a subdirectory
|
||||
that is autogen-able (see the vt project for an example).
|
||||
that is autogen-able.
|
||||
|
@ -1,29 +0,0 @@
|
||||
# -*- makefile -*-
|
||||
#
|
||||
# Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
||||
# University Research and Technology
|
||||
# Corporation. All rights reserved.
|
||||
# Copyright (c) 2004-2005 The University of Tennessee and The University
|
||||
# of Tennessee Research Foundation. All rights
|
||||
# reserved.
|
||||
# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
||||
# University of Stuttgart. All rights reserved.
|
||||
# Copyright (c) 2004-2005 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
# Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
|
||||
# $COPYRIGHT$
|
||||
#
|
||||
# Additional copyrights may follow
|
||||
#
|
||||
# $HEADER$
|
||||
#
|
||||
|
||||
EXTRA_DIST = autogen.subdirs
|
||||
|
||||
SUBDIRS = \
|
||||
vt \
|
||||
wrappers
|
||||
|
||||
DIST_SUBDIRS = \
|
||||
vt \
|
||||
wrappers
|
@ -1,2 +0,0 @@
|
||||
vt
|
||||
vt/extlib/otf
|
@ -1,155 +0,0 @@
|
||||
# -*- shell-script -*-
|
||||
#
|
||||
# Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
||||
# University Research and Technology
|
||||
# Corporation. All rights reserved.
|
||||
# Copyright (c) 2004-2005 The University of Tennessee and The University
|
||||
# of Tennessee Research Foundation. All rights
|
||||
# reserved.
|
||||
# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
||||
# University of Stuttgart. All rights reserved.
|
||||
# Copyright (c) 2004-2005 The Regents of the University of California.
|
||||
# All rights reserved.
|
||||
# Copyright (c) 2007 Cisco Systems, Inc. All rights reserved.
|
||||
# $COPYRIGHT$
|
||||
#
|
||||
# Additional copyrights may follow
|
||||
#
|
||||
# $HEADER$
|
||||
#
|
||||
|
||||
# OMPI_contrib_vt_CONFIG([action-if-can-compile],
|
||||
# [action-if-cant-compile])
|
||||
# ------------------------------------------------
|
||||
AC_DEFUN([OMPI_contrib_vt_CONFIG],[
|
||||
|
||||
AC_ARG_WITH([contrib-vt-flags],
|
||||
[AC_HELP_STRING([--with-contrib-vt-flags=FLAGS],
|
||||
[Pass FLAGS to the VampirTrace distribution configuration script])])
|
||||
AS_IF([test "$with_contrib_vt_flags" = "yes" -o "$with_contrib_vt_flags" = "no"],
|
||||
[with_contrib_vt_flags=""])
|
||||
|
||||
contrib_vt_happy=1
|
||||
|
||||
# Check for enabled PMPI.
|
||||
AC_MSG_CHECKING([whether PMPI is enabled])
|
||||
if test "$WANT_MPI_PROFILING" = "1"; then
|
||||
AC_MSG_RESULT([yes])
|
||||
else
|
||||
AC_MSG_RESULT([no])
|
||||
AC_WARN([**************************************************************])
|
||||
AC_WARN([*** VampirTrace cannot be built due to disabled MPI profiling.])
|
||||
if test -z "$enable_vt"; then
|
||||
AC_WARN([*** Pausing to give you time to read this message...])
|
||||
fi
|
||||
AC_WARN([**************************************************************])
|
||||
if test -z "$enable_vt"; then
|
||||
sleep 10
|
||||
fi
|
||||
contrib_vt_happy=0
|
||||
fi
|
||||
|
||||
# Check whether the used C++ STL is suitable to build VampirTrace.
|
||||
# For example, in case of using the Oracle C++ compiler, some of the needed
|
||||
# language features are missing in the default STL (libCstd). It's recommended
|
||||
# to use the STLport4 instead, which is much more conform to the C++ standard.
|
||||
if test "$contrib_vt_happy" = "1"; then
|
||||
AC_MSG_CHECKING([whether C++ STL is suitable for vt])
|
||||
|
||||
# Append VampirTrace specific CXXFLAGS possibly given by --with-contrib-vt-flags
|
||||
# to CXXFLAGS. They could contain flags which are essential for the success of
|
||||
# the following configure test (e.g. -library=stlport4).
|
||||
contrib_vt_save_CXXFLAGS="$CXXFLAGS"
|
||||
eval "set x $with_contrib_vt_flags"; shift
|
||||
for contrib_vt_flag
|
||||
do
|
||||
case $contrib_vt_flag in
|
||||
CXXFLAGS=*)
|
||||
contrib_vt_flag=`echo "$contrib_vt_flag" | sed "s/CXXFLAGS=//"`
|
||||
CXXFLAGS="$contrib_vt_save_CXXFLAGS $contrib_vt_flag"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
AC_LANG_PUSH(C++)
|
||||
AC_COMPILE_IFELSE(
|
||||
[AC_LANG_PROGRAM([[#include <map>]],
|
||||
[[std::map<int, int> map;
|
||||
// The following assignment implicitly converts an "iterator"
|
||||
// to a "const_interator". Although this is allowed by the C++
|
||||
// standard, using Oracle's default STL (libCstd) will cause a
|
||||
// compile error.
|
||||
// Seen with Oracle Studio version 12.3 and Express 6/10.
|
||||
std::pair<std::map<int, int>::const_iterator, bool> ret=
|
||||
map.insert(std::pair<int, int>(123, 456));]])],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[AC_MSG_RESULT([no])
|
||||
AC_WARN([**************************************************************])
|
||||
AC_WARN([*** VampirTrace cannot be built due to your STL appears to])
|
||||
AC_WARN([*** be broken.])
|
||||
if test "x$ompi_cv_cxx_compiler_vendor" = "xsun"; then
|
||||
AC_WARN([*** Please try again re-configuring Open MPI with using])
|
||||
AC_WARN([*** the STLport4 by adding the compiler flag -library=stlport4])
|
||||
AC_WARN([*** to CXXFLAGS.])
|
||||
fi
|
||||
if test -z "$enable_vt"; then
|
||||
AC_WARN([*** Pausing to give you time to read this message...])
|
||||
fi
|
||||
AC_WARN([**************************************************************])
|
||||
if test -z "$enable_vt"; then
|
||||
sleep 10
|
||||
fi
|
||||
contrib_vt_happy=0])
|
||||
AC_LANG_POP(C++)
|
||||
|
||||
CXXFLAGS="$contrib_vt_save_CXXFLAGS"
|
||||
fi
|
||||
|
||||
if test "$contrib_vt_happy" = "1"; then
|
||||
contrib_vt_args="--disable-option-checking --with-openmpi-inside=1.7"
|
||||
|
||||
eval "set x $ac_configure_args"; shift
|
||||
for contrib_vt_arg
|
||||
do
|
||||
case $contrib_vt_arg in
|
||||
-with-contrib-vt-flags | --with-contrib-vt-flags | -with-contrib-vt-flags=* | --with-contrib-vt-flags=*)
|
||||
;;
|
||||
-with-platform=* | --with-platform=*)
|
||||
;;
|
||||
-with-cuda | --with-cuda | -with-cuda=* | --with-cuda=*)
|
||||
if test "x$with_cuda" != "xno" -a "x$with_cuda" != "x"; then
|
||||
contrib_vt_args="$contrib_vt_args '--with-cuda-dir=$with_cuda' '--with-cuda-libdir=$with_cuda_libdir'"
|
||||
fi
|
||||
;;
|
||||
-with-cuda-libdir | --with-cuda-libdir | -with-cuda-libdir=* | --with-cuda-libdir=*)
|
||||
;;
|
||||
*)
|
||||
case $contrib_vt_arg in
|
||||
*\'*) contrib_vt_arg=`echo "$contrib_vt_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
||||
esac
|
||||
contrib_vt_args="$contrib_vt_args '$contrib_vt_arg'"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
contrib_vt_args="$contrib_vt_args $with_contrib_vt_flags"
|
||||
|
||||
# Run VampirTrace's configure and see if it succeeded
|
||||
OPAL_CONFIG_SUBDIR([ompi/contrib/vt/vt],
|
||||
[$contrib_vt_args],
|
||||
[], [contrib_vt_happy=0])
|
||||
fi
|
||||
|
||||
# If VampirTrace configured itself successfully, setup OMPI-specific
|
||||
# VampirTrace glue code to build.
|
||||
AS_IF([test "$contrib_vt_happy" = "1"],
|
||||
[$1
|
||||
AC_CONFIG_FILES([
|
||||
ompi/contrib/vt/Makefile
|
||||
ompi/contrib/vt/wrappers/Makefile
|
||||
ompi/contrib/vt/wrappers/mpicc-vt-wrapper-data.txt
|
||||
ompi/contrib/vt/wrappers/mpic++-vt-wrapper-data.txt
|
||||
ompi/contrib/vt/wrappers/mpifort-vt-wrapper-data.txt
|
||||
])],
|
||||
[$2])
|
||||
])dnl
|
@ -1,19 +0,0 @@
|
||||
VampirTrace is developped in collaboration with the KOJAK project
|
||||
at Juelich Supercomputing Centre (http://www.fz-juelich.de/jsc/kojak)
|
||||
|
||||
Staff at ZIH:
|
||||
Matthias Jurenz
|
||||
Andreas Knuepfer
|
||||
Ronny Brendel
|
||||
Matthias Lieber
|
||||
Jens Doleschal
|
||||
Thomas Ilsche
|
||||
Joachim Protze
|
||||
Holger Mickler
|
||||
Michael Heyde
|
||||
Robert Dietrich
|
||||
Robert Schoene
|
||||
Matthias Mueller
|
||||
|
||||
Staff at HLRS:
|
||||
Rainer Keller
|
@ -1,36 +0,0 @@
|
||||
Copyright (c) 2005-2013, ZIH, TU Dresden, Federal Republic of Germany
|
||||
|
||||
Copyright (c) 1998-2005, Forschungszentrum Juelich, Juelich Supercomputing
|
||||
Centre, Federal Republic of Germany
|
||||
|
||||
Copyright (c) 2007-2008, High Performance Computing Center Stuttgart,
|
||||
Federal Republic of Germany
|
||||
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
- Redistributions of source code must retain the above copyright notice,
|
||||
this list of conditions and the following disclaimer.
|
||||
|
||||
- Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation and/or
|
||||
other materials provided with the distribution.
|
||||
|
||||
- Neither the name of ZIH, TU Dresden, Forschungszentrum Juelich, Juelich
|
||||
Supercomputing Centre, or High Performance Computing Center Stuttgart, nor the
|
||||
names of its contributors may be used to endorse or promote products derived
|
||||
from this software without pecific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
@ -1,966 +0,0 @@
|
||||
5.14.4openmpi
|
||||
- fixed build issues due to API changes in MPI-3
|
||||
- removed non-posix call to length(array) in AWK script for generating
|
||||
the C MPI wrapper functions
|
||||
- fixed potential buffer overflow when reading the filter file
|
||||
- fixed build error when the CUDA runtime API wrapper are enabled and
|
||||
CUPTI is disabled
|
||||
- enabled access to CUPTI counters for CUDA tracing via CUPTI
|
||||
- enabled GPU memory usage tracing independent of the CUDA API
|
||||
- enabled recording of CUDA synchronization and implicit synchronization in
|
||||
blocking CUDA memory copies for CUDA tracing via CUPTI
|
||||
- enabled recording of synchronous peer-to-peer CUDA memory copies for CUDA
|
||||
tracing via CUPTI
|
||||
- consider CUDA data transfers as not idle for option 'pure_idle'
|
||||
- fixed identification of the CUDA device ID for CUDA tracing via CUPTI
|
||||
- fixed region filtering for applications using the CUDA runtime API wrapper
|
||||
- compiler wrappers: add path to mpi.h to the PDT parser command and
|
||||
preprocessor flags
|
||||
|
||||
5.14.3openmpi
|
||||
- updated version of internal OTF to 1.12.3openmpi
|
||||
(see extlib/otf/ChangeLog)
|
||||
- fixed build error when using the Intel MPI compiler wrappers
|
||||
- prepend cross-prefix to the compiler wrappers *only* if
|
||||
'--with-cross-prefix[=PREFIX]' is given
|
||||
- fixed passing FCFLAGS to the Fortran compiler when building libvt-fmpi
|
||||
- temporary disabled memory allocation tracing for multi-threaded
|
||||
applications (introduced in v5.14.1) due to broken counter values
|
||||
when memory is freed in a different thread than where it was allocated
|
||||
- fixed a potential minor bug in CUPTI activity stream handling
|
||||
- workaround for CUDA 5.0 bug: do not call cuDeviceSynchronize(), if
|
||||
stream reuse is enabled and a CUDA stream is about to be destroyed
|
||||
- fixed segmentation fault when writing intermediate statistics
|
||||
(VT_STAT_INTV != 0)
|
||||
- vtdyn: do not instrument regions where using a trap is required
|
||||
- plugin counters: Merge a set of post-mortem counters and write them
|
||||
under a single async key. This speeds up the unification.
|
||||
- vtsetup: fixed availability state of the exec tracing feature
|
||||
|
||||
5.14.2openmpi
|
||||
- fixed build error occurred if VT is configured with exec tracing
|
||||
enabled, but with memory allocation tracing disabled
|
||||
- fixed infinite recursion in the realloc wrapper initiated by dlerror
|
||||
- fixed assertion error occurred when MPI_Initialized is the very first
|
||||
event to be recorded
|
||||
- fixed potential stack underflow when tracing only MPI events of a
|
||||
multithreaded program
|
||||
|
||||
5.14.1openmpi
|
||||
- updated version of internal OTF to 1.12.2openmpi
|
||||
(see extlib/otf/ChangeLog)
|
||||
- added support for recording concurrent CUDA kernels with CUPTI (CUDA 5.0)
|
||||
- append "/vampirtrace" to DATADIR, if configuring inside Open MPI and
|
||||
DATADIR doesn't points to the default (=DATAROOTDIR)
|
||||
(prevents conflicts with the libtool RPM)
|
||||
- fixed build issues when using the IBM XL compiler on AIX
|
||||
- fixed build issues with Dyninst 8
|
||||
- revised memory allocation tracing:
|
||||
- intercept memory (de)allocation functions by library wrapping
|
||||
(replaces deprecated hook technique from the GNU C library)
|
||||
- added support for multi-threaded applications
|
||||
- changed default function group name for
|
||||
- memory (de)allocation functions : "MEM" -> "LIBC-MALLOC"
|
||||
- I/O functions : "I/O" -> "LIBC-I/O"
|
||||
- child process execution (e.g. execl): "LIBC" -> "LIBC-EXEC"
|
||||
- compiler wrappers:
|
||||
- removed invocation of pdbcomment; it removes essential
|
||||
information from the PDB file for instrumenting functions
|
||||
|
||||
5.14openmpi
|
||||
- updated version of internal OTF to 1.12.1openmpi
|
||||
(see extlib/otf/ChangeLog)
|
||||
- added support for filtering functions of specific call paths
|
||||
- introduced new environment variable VT_MPI_IGNORE_FILTER to
|
||||
enable/disable recording of MPI communication events although its
|
||||
corresponding functions are filtered
|
||||
- fixed undefined reference error for vt_get_mpi_f_in_place___ when
|
||||
linking the Fortran MPI wrapper library (libvt-fmpi) built for
|
||||
SGI-MPT (--with-sgimpt)
|
||||
- compiler wrappers:
|
||||
- added option '-vt:inst-exclude-file[-list]' to exclude source
|
||||
files from the automatic instrumentation by the compiler or
|
||||
PDT/TAU
|
||||
- added option '-vt:opari-exclude-file[-list]' to exclude source
|
||||
files from the instrumentation of OpenMP constructs by OPARI
|
||||
- consider preprocessed files (-vt:preprocess) for reuse
|
||||
(-vt:reusefiles)
|
||||
- do additionally scan for comments (pdbcomment) if performing
|
||||
PDT/TAU instrumentation to prevent instrumenting functions
|
||||
within comments
|
||||
- OPARI: (see tools/opari/ChangeLog:26,27)
|
||||
|
||||
5.13.2
|
||||
- added support for IBM BlueGene/Q
|
||||
- added support for PAPI 5 (aka PAPI-V)
|
||||
- fixed CUDA runtime API wrapper for CUDA 5
|
||||
- fixed "Cannot find communicator" error occurred when completing
|
||||
a non-blocking MPI communication using an already freed communicator
|
||||
(e.g. MPI_Irecv(...,comm,...), MPI_Comm_free(comm), MPI_Wait())
|
||||
- fixed 'gnu' compiler instrumentation for functions defined within
|
||||
shared objects
|
||||
- vtunify:
|
||||
- disable OpenMP parallelization if PGI compiler version < 9
|
||||
is used (threadprivate not supported)
|
||||
- OPARI: (see tools/opari/ChangeLog:24,25)
|
||||
|
||||
5.13.1
|
||||
- updated version of internal OTF to 1.11.2goldfish
|
||||
(see extlib/otf/ChangeLog)
|
||||
- use high precision timer RTC on Cray XE/XK6 platforms using the
|
||||
Cray compiler
|
||||
- fixed parsing symbol list file given by VT_GNU_NMFILE if it is
|
||||
generated by nm with multiple input files
|
||||
- compiler wrappers:
|
||||
- added detection of Cray compiler's OpenMP flag (-h omp) to
|
||||
enable OPARI instrumentation
|
||||
- add OPARI option '-nosrc' when using the Cray compiler
|
||||
(at least the Fortran compiler does not understand
|
||||
#line constructs)
|
||||
- vtnvcc:
|
||||
- add path to cuda.h to the PDT parser command
|
||||
- exclude *.cu source files from instrumenting with
|
||||
PDT/TAU; the PDT parser is not (yet) able to handle
|
||||
CUDA statements and kernels
|
||||
- vtunify[-mpi]:
|
||||
- fixed timestamp boundary check for merging asynchronous
|
||||
plugin counters
|
||||
- enhanced precision of timestamp conversion from local
|
||||
to global
|
||||
|
||||
5.13
|
||||
- updated version of internal OTF to 1.11.1goldfish
|
||||
(see extlib/otf/ChangeLog)
|
||||
- added support for highly parallel trace writing using the
|
||||
I/O Forwarding Scalability Layer (IOFSL) with atomic append
|
||||
aggregation
|
||||
- added support for generating snapshots which allows Vampir to load
|
||||
subsets of the resulting trace
|
||||
- introduced new vtfort compiler wrapper for compiling *any* Fortran
|
||||
code (Fortran 77, 90, 2003, etc.)
|
||||
(vtf77 and vtf90 still exist, but they are symlinks to vtfort)
|
||||
- added support for automatic instrumentation with Cray CCE compiler
|
||||
- improved compiler instrumentation support for IBM XLC/XLF compilers
|
||||
version 11/13
|
||||
- introduced environment variable VT_GPUTRACE, which replaces several
|
||||
CUDA tracing environment variables
|
||||
- added option to enable CUDA stream reuse
|
||||
- expose flush of CUPTI activities as measurement overhead
|
||||
- added CUDA runtime API functions to CUDA runtime API wrapper, which
|
||||
are new in CUDA 4.2 and 5.0.7 (preview release)
|
||||
- extended function filter capabilities by
|
||||
- recursive filtering (disables recording callees of
|
||||
filtered function)
|
||||
- function group filtering
|
||||
- stack level filtering
|
||||
- vtdyn:
|
||||
- added support for instrumenting loops
|
||||
- try to get the full prototype of functions to be instrumented
|
||||
- print verbose messages to stderr if started by the Dyninst
|
||||
attach library (libvt-dynatt)
|
||||
- vtunify[-mpi]:
|
||||
- removed strict order of command line parameters
|
||||
- print verbose messages to stderr if started automatically
|
||||
- added compatibility check for input trace file generated
|
||||
by a different VampirTrace version
|
||||
- drop/adapt records which have references to processes
|
||||
disabled by the process filter
|
||||
- count message matching irregularities
|
||||
(i.e. number of unmatched and reversed messages)
|
||||
- fixed a Heisenbug in conversion of local to global timestamps
|
||||
(occurred when using the Intel compiler with O2 or higher
|
||||
optimization)
|
||||
- compiler wrappers:
|
||||
- added option '-vt:reusefiles' to reuse kept intermediate
|
||||
files generated by a previous run of OPARI and/or PDT/TAU
|
||||
- added option '-vt:keepfiles' as synonym for '-vt:nocleanup'
|
||||
- fixed preprocessing of OpenMP source files
|
||||
- vtnvcc: fixed forwarding of compiler/linker options
|
||||
- fixed handling of 'errno' in LIBC[-I/O] wrappers on AIX
|
||||
- fixed handling of MPI_Aint in MPI-2 Fortran wrappers
|
||||
(MPI_Aint=INTEGER(KIND=MPI_ADDRESS_KIND))
|
||||
- do not abort if the application requests the MPI thread support level
|
||||
MPI_THREAD_SERIALIZED or MPI_THREAD_MULTIPLE
|
||||
(disable recording of MPI communication events instead)
|
||||
- fixed GPU compute idle time measurement with CUPTI activity tracing
|
||||
- fixed installation issue when prefix is set to the source directory
|
||||
(e.g. ./configure --prefix=$PWD)
|
||||
- fixed handling of unidirectional collective operations (e.g. broad-
|
||||
cast, gather, scatter) using intercommunicators
|
||||
- fixed hanging mutatee when using binary instrumentation from an
|
||||
Intel-built VampirTrace installation
|
||||
- OPARI: (see tools/opari/ChangeLog:23)
|
||||
|
||||
5.12.2
|
||||
- updated version of internal OTF to 1.10.2coelacanth
|
||||
(see extlib/otf/ChangeLog)
|
||||
- added support for CUDA tracing via CUPTI callbacks and activities
|
||||
(runtime and driver API, kernels, memory copies and GPU memory usage)
|
||||
- added support for cudaMemcpyDefault and synchronous peer-to-peer
|
||||
memory copies in CUDA library wrapper
|
||||
- added configure switches to enable/disable CUPTI and CUDA wrapping
|
||||
- fixed a bug in CUDA runtime wrapper initialization and thread creation
|
||||
- fixed a build bug occurred if CUDA and CUPTI found, but support for
|
||||
library tracing was disabled
|
||||
- fixed platform detection on BlueGene when configuring for the frontend
|
||||
- fixed detection of Cray compiler's OpenMP flag in configure
|
||||
- fixed detection of C++ runtime libraries for Cray and PGI 11.x compilers
|
||||
- fixed detection of MPI_IN_PLACE in configure
|
||||
- do not use RTLD_DEFAULT handle for dlsym() on CrayX? platforms;
|
||||
it's provided by dlfcn.h but not working (segmentation fault)
|
||||
- fixed conversion from MPI_Fint-arrays to MPI_Aint-arrays in Fortran
|
||||
MPI wrappers
|
||||
- temporary removed MPI_<Comm|Type|Win>_<get|set>_attr and
|
||||
MPI_Attr_<get|put> from the Fortran MPI wrappers due to missing
|
||||
conversion of the attribute value parameter
|
||||
- fixed handling of empty MPI groups (MPI_GROUP_EMPTY)
|
||||
- fixed handling of MPI groups implicitly generated by MPI_Win_create
|
||||
- fixed order of OpenMP threads based on its id (omp_get_thread_num)
|
||||
- fixed parsing of filter file to consider non-rank-specific filter
|
||||
rules appearing after a rank selection for disabling
|
||||
- fixed handling of 'errno' in LIBC[-I/O] wrappers for statically linked
|
||||
applications
|
||||
- fixed parsing of PAPI native events in VT_METRICS
|
||||
- vtunify[-mpi]:
|
||||
- fixed possibly uninitialized global token for the predefined
|
||||
Node and "All" process groups
|
||||
- fixed potential memory corruption during enqueuing recv.
|
||||
messages for p2p message matching
|
||||
- vtunify-mpi:
|
||||
- fixed assertion in p2p message matching which occurred when
|
||||
processing local traces with disabled ranks
|
||||
- vtdyn:
|
||||
- load user-specified shared libraries (-s SHLIB) into the
|
||||
mutatee before starting the instrumentation; adds support for
|
||||
instrumenting shared libraries which are loaded during runtime
|
||||
- compiler wrappers:
|
||||
- fixed detection of MPI library linked in the path form
|
||||
(e.g. libmpi.a instead of -lmpi)
|
||||
- fixed corrupt library order when using vtnvcc for linking
|
||||
MPI/CUDA mixed programs
|
||||
- OPARI: (see tools/opari/ChangeLog:22)
|
||||
|
||||
5.12.1
|
||||
- updated version of internal OTF to 1.10.1coelacanth
|
||||
(see extlib/otf/ChangeLog)
|
||||
- fixed detection of Open64 compilers for automatic instrumentation
|
||||
- fixed build issues on MacOS using GCC v4.2
|
||||
- fixed non-increasing timestamps when flushing the trace buffer
|
||||
- fixed a bug in the MPI wrapper functions MPI_Gatherv and MPI_Scatterv
|
||||
which occurred due to illegal access to insignificant parameters on
|
||||
non-root ranks
|
||||
- vtunify-mpi:
|
||||
- added option '--stats' to unify only summarized information,
|
||||
no events
|
||||
- reduced memory usage
|
||||
- OPARI: (see tools/opari/ChangeLog:20,21)
|
||||
|
||||
5.12
|
||||
- updated version of internal OTF to 1.10coelacanth
|
||||
(see extlib/otf/ChangeLog)
|
||||
- added support for CUDA runtime tracing via CUPTI callbacks
|
||||
- added support for process group counters
|
||||
- extended internal API to:
|
||||
- create process groups
|
||||
- assign attributes to process groups
|
||||
(e.g. is communicator, has counters)
|
||||
- improved MPI group/communicator handling:
|
||||
- merge groups which have the same members to one group
|
||||
- name groups to "MPI Group X"
|
||||
- added writing of process begin/end records
|
||||
- added support for LIBC [I/O] tracing on Cray XT platforms
|
||||
- added environment variable VT_ONOFF_CHECK_STACK_BALANCE to
|
||||
enable/disable check for stack level balance when switching tracing
|
||||
on/off by using the user API
|
||||
- added configure option '--[enable|disable]-fortran' to control
|
||||
building of Fortran support
|
||||
- install a symbolic link 'vtfiltergen[-mpi]' which is a synonym for
|
||||
'vtfilter[-mpi] --gen'
|
||||
- if possible, get resource usage counters for the calling thread
|
||||
instead of the process
|
||||
- disabled unnecessary time synchronization on NEC SX platforms
|
||||
- removed MPI_Address and MPI_Get_address from MPI wrappers
|
||||
- removed limitation of maximum defined MPI handles (groups, comms.,
|
||||
and windows) in a MPI program
|
||||
- fixed incorrect handling of MPI_IN_PLACE
|
||||
- fixed erroneous handling of MPI_Aint within the Fortran MPI wrappers
|
||||
- fixed incomplete tracking of MPI inter-communicators
|
||||
- fixed error handling on flushing the trace buffer
|
||||
- fixed potential memory corruption when flushing the trace buffer
|
||||
multiple times (VT_MAX_FLUSHES != 1)
|
||||
- fixed numbering in thread names
|
||||
- vtunify:
|
||||
- fixed parsing of negative time offsets within unify
|
||||
control data
|
||||
- vtdyn:
|
||||
- detach from application process before continuing its
|
||||
execution (allows signal trapping (e.g. Ctrl+C) within the
|
||||
application)
|
||||
- fixed selection of functions to be instrumented
|
||||
- save floating point registers before calling instrumentation
|
||||
to ensure correct program behavior
|
||||
- compiler wrappers:
|
||||
- added options '-vt:preprocess', '-vt:cpp', and '-vt:cppflags'
|
||||
to preprocess source files before parsing by OPARI and/or TAU
|
||||
- added options '-vt:opari-rcfile' and '-vt:opari-table' to set
|
||||
pathnames of the OPARI resource and runtime table file
|
||||
- added option '-vt:nocleanup' to keep intermediate files
|
||||
- vtrun:
|
||||
- do preload Dyninst runtime library (DYNINSTAPI_RT_LIB) when
|
||||
instrumenting user functions by Dyninst
|
||||
- vtsetup: (see tools/vtsetup/ChangeLog:1.0.1)
|
||||
|
||||
5.11.2
|
||||
- updated version of internal OTF to 1.9.2sawfish
|
||||
(see extlib/otf/ChangeLog)
|
||||
- added options '-vt:showme-<compile|link>' to the compiler wrapper
|
||||
to show the compiler/linker flags that would be supplied to the
|
||||
underlying compiler
|
||||
- add path to MPI library when linking with the compiler wrappers
|
||||
- do not build vtrun script on BlueGene; shell scripts doesn't work on
|
||||
the back-end
|
||||
- fixed segmentation fault in vtunify-mpi which might occur during
|
||||
gathering local marker definitions/spots to master process
|
||||
|
||||
5.11.1
|
||||
- updated version of internal OTF to 1.9.1sawfish
|
||||
(see extlib/otf/ChangeLog)
|
||||
- process and thread buffer size can be explicitly specified by the user
|
||||
via the environment variables VT_BUFFER_SIZE and VT_THREAD_BUFFER_SIZE
|
||||
- improved filtering of CUDA kernels
|
||||
- enhanced creating global definitions in vtunify
|
||||
- fixed CUDA kernel launch configuration
|
||||
- fixed unification of local process group definitions
|
||||
- fixed wrapper generation for MPI implementations which don't support
|
||||
the MPI-2 standard
|
||||
- fixed faulty cleanup of temporary files in vtunify which occurred if
|
||||
VT is configured without trace compression support
|
||||
- fixed detection of OpenMP flag '-qsmp=*:omp:*' in the compiler
|
||||
wrappers
|
||||
- fixed C++ linker issue for manual instrumentation of multiple files
|
||||
- bugfix to OPARI (see tools/opari/ChangeLog:19)
|
||||
|
||||
5.11
|
||||
- updated version of internal OTF to 1.9sawfish
|
||||
(see extlib/otf/ChangeLog)
|
||||
- added support for Cray XE6
|
||||
- added tool 'vtsetup' which provides a GUI to prepare measurement runs
|
||||
with VampirTrace
|
||||
- added application execution wrapper script 'vtrun' which performs MPI
|
||||
and/or binary instrumentation at runtime
|
||||
- extended Dyninst mutator tool 'vtdyn' to rewrite instrumented
|
||||
application executables
|
||||
- replaced basic blacklist functionality of vtdyn by the VT runtime
|
||||
filter
|
||||
- extended trace unification to match p2p message event records
|
||||
- enhanced unification of local traces from very large runs in respect
|
||||
of parallelism and memory usage
|
||||
- extended user API to perform user defined communication
|
||||
- extended user API for regions to support dynamically generated region
|
||||
names
|
||||
- added support for asynchronous plugin counters
|
||||
- added support for CUDA 4.0
|
||||
- removed support for CUDA 2.x
|
||||
- added CUDA performance counter support via CUPTI event API
|
||||
- added option '-vt:noopari' to compiler wrapper commands to disable
|
||||
instrumentation of OpenMP constructs by OPARI
|
||||
- added configure option
|
||||
'--with-wrapper-<cc|cxx|f77|fc|nvcc>-default-partype=TYPE' to set
|
||||
default application parallelization type for compiler wrappers
|
||||
- fixed thread-safety issue in Fortran bindings of user API
|
||||
- fixed handling NULL value of pathname given to certain I/O calls
|
||||
(e.g. fopen, open, unlink)
|
||||
- fixed base of cycle counter timer on PPC with MacOS
|
||||
- fixed default grouping of user functions whose name appears in
|
||||
predefined groups (e.g. VT-API)
|
||||
- fixed error when using the compiler wrappers with PDT/TAU + manual
|
||||
instrumentation
|
||||
- bugfix to OPARI (see tools/opari/ChangeLog:18)
|
||||
|
||||
5.10.1
|
||||
- updated version of internal OTF to 1.8.1sturgeon
|
||||
(see extlib/otf/ChangeLog)
|
||||
- added configure option '--<en|dis>able-mpiunify-lib' to control
|
||||
building of the MPI trace unification library (libvt-mpi-unify)
|
||||
- added GPU memory tracing for CUDA runtime API
|
||||
- fixed configure tests for conversion of Fortran MPI handles
|
||||
- fixed collecting symbol information of shared libraries which are
|
||||
instrumented by the GNU, Intel, PathScale, or PGI 9 compiler
|
||||
- fixed an error in memory management of CUDA devices
|
||||
- fixed CUDA device management (CUDA runtime)
|
||||
- fixed finalize problem in CUDA runtime wrapper, which in cases
|
||||
produced an unspecific driver error
|
||||
- added an additional check to avoid a possible deadlock in vt_open(),
|
||||
which might occur, if something during opening invokes vt_open()
|
||||
- fixed not-increasing timestamps error which occurred if an interval
|
||||
for writing statistics (env. VT_STAT_INTV) is set
|
||||
- fixed wrong UNIMCI language bindings for Fortran applications
|
||||
(enforces building of the Fortran MPI wrapper library 'libvt-fmpi')
|
||||
- fixed handling of command line options in vtjava
|
||||
|
||||
5.10
|
||||
- updated version of internal OTF to 1.8sturgeon
|
||||
(see extlib/otf/ChangeLog)
|
||||
- added support for automatic source code instrumentation by PDT/TAU
|
||||
- added MPI-parallel version of vtfilter (vtfilter-mpi) with support
|
||||
for rank specific filtering
|
||||
- enhanced termination of MPI-parallel trace unifier in case of an error
|
||||
- changed byte counts of collective communication records
|
||||
(see FAQ entry D.8 in the user manual)
|
||||
- added changes of CUDA 3.2 runtime API
|
||||
- extended vtjava to set the trace file prefix to the jar/class file
|
||||
- fixed compile error on Red Hat 5.x which occurred if using GNU
|
||||
compiler with -D_FORTIFY_SOURCE=2
|
||||
- fixed faulty library dependencies to MPI which caused in a
|
||||
segmentation fault on AIX
|
||||
(on AIX libvt-fmpi needs additional dependencies to the Fortran
|
||||
runtime libraries; for now building of shared libraries is disabled)
|
||||
- fixed a potential segmentation fault in CUDA runtime API tracing
|
||||
(for disabled CUDA kernel tracing and CUDA synchronization level 3)
|
||||
- usage of CUDA and PAPI does not result in an error any more
|
||||
- fixed measurement of GPU idle time
|
||||
- corrected number of used CUDA events for disabled kernel tracing
|
||||
- fixed corrupt call stack after an intermediate buffer flush if
|
||||
VT_MAX_FLUSHES is set to 0(=unlimited)
|
||||
- fixed detection of executable's pathname on UnionFS
|
||||
- fixed detection of OpenMP flags in the compiler wrappers
|
||||
- fixed memory source/destination overlap in a MPI_Gatherv call which
|
||||
caused MPICH2 to abort
|
||||
- fixed potential segmentation fault during collecting symbol
|
||||
information for instrumentation with the GNU, Intel, PathScale,
|
||||
and PGI 9 compiler
|
||||
- fixed segmentation fault which occurred if using PAPI 4 together with
|
||||
libc I/O tracing
|
||||
- fixed pathname of the JVMTI agent library in vtjava
|
||||
- fixed assertion in vtunify which occurred if enhanced time sync. is
|
||||
enabled
|
||||
- fixed segmentation fault in vtunify-mpi which occurred if using more
|
||||
MPI tasks than necessary
|
||||
|
||||
5.9
|
||||
- updated version of internal OTF to 1.7.1catfish
|
||||
(see extlib/otf/ChangeLog)
|
||||
- added support for tracing NVIDIA CUDA runtime API
|
||||
- improved automatic trace unification for MPI applications:
|
||||
use application allocated MPI processes for unification
|
||||
- extended user API: added "buffer rewind" as an alternative to "on/off"
|
||||
- extended the MPI-rank specific filtering to disable ranks completely
|
||||
- added environment variable VT_OMPTRACE to enable/disable tracing of
|
||||
OpenMP events instrumented by OPARI
|
||||
- added writing of collective begin/end records for MPI Collective
|
||||
operations
|
||||
- reduced amount of resulting files:
|
||||
- write only one unify control file (*.uctl) for the whole trace
|
||||
- do not write *.filt files anymore
|
||||
- added environment variables VT_MAX_MPI_COMMS and VT_MAX_MPI_WINS for
|
||||
adjusting internal default limits of used MPI communicators/windows
|
||||
- corrected finalize behavior for C++ applications with static objects
|
||||
(e.g. MPI_Finalize in the destructor of a singleton)
|
||||
- fixed potential buffer overflow on determining pathname of the
|
||||
application executable
|
||||
- fixed loading of dynamic libraries on AIX
|
||||
- fixed bugs in the compiler wrappers:
|
||||
- don't try to rename the compiler output of an OPARI modified
|
||||
source file if it's specified by the compiler flag '-o'
|
||||
- changed order of linking libraries to record also MPI function
|
||||
calls which come from user libraries
|
||||
- corrected parsing of separated arguments of the compiler
|
||||
options -I, -L, and -l (e.g. -I <dir>)
|
||||
- fixed bug in vtunify: do only write active stream/process ids to the
|
||||
OTF master control file (*.otf)
|
||||
- if configuring inside Open MPI, install header files into
|
||||
<includedir>/vampirtrace even the configure option '--includedir' is
|
||||
specified
|
||||
|
||||
5.8.2
|
||||
- fixed buffer overflow which occurred if marker or event comment
|
||||
records generated
|
||||
- fixed bug in MPI-I/O tracing: tracking MPI file handles even if
|
||||
MPI_File_open isn't recorded
|
||||
|
||||
5.8.1
|
||||
- updated version of internal OTF to 1.6.5stingray
|
||||
(see extlib/otf/ChangeLog)
|
||||
- added support for tracing functions in shared libraries instrumented
|
||||
by the GNU, Intel, PathScale, or PGI 9 compiler
|
||||
- extended support for BlueGene/P in terms of tracing libraries
|
||||
(e.g. libc I/O) and tracing of multi-threaded applications
|
||||
- added default option file for CrayXT platforms
|
||||
- added support for PAPI-C counters which belong to different components
|
||||
- added environment variable VT_METRICS_SEP to specify a string which
|
||||
separate the counter names in VT_METRICS
|
||||
- extended usability of environment variable VT_METRICS for PAPI
|
||||
counters to specifiy whether a counter provides increasing or
|
||||
absolute values
|
||||
- added support for "re-locate" an existing VampirTrace installation
|
||||
without re-build it from source
|
||||
- fixed configure's version detection for PAPI to support version 4.x
|
||||
- added configure tests for a few pthread functions which do not exist
|
||||
on some platforms
|
||||
- added configure tests to detect Bull MPICH2
|
||||
- use Open MPI provided Fortran wrapper library 'libmpi_f77'
|
||||
- added functions 'MPI_Group_range_<incl|excl>' to Fortran MPI wrappers
|
||||
- use more portable 'nm' command instead of the BFD library to collect
|
||||
symbol information for instrumentation with the GNU, Intel, PathScale,
|
||||
and PGI 9 compiler
|
||||
- do not shutdown call stack if maximum number of buffer flushes was
|
||||
reached, because the additional leaves suggest a wrong application
|
||||
flow
|
||||
- fixed potential stack underflow in vtfilter which might be cause a
|
||||
segmentation fault
|
||||
- fixed detection of unique node id on MacOS platforms
|
||||
- fixed support for LAM/MPI
|
||||
- fixed potential segmentation fault in vtunify-mpi which might occur
|
||||
on 32bit platforms
|
||||
- patched libtool to avoid a bug in detection of the PGI 10 compilers
|
||||
|
||||
5.8
|
||||
- updated version of internal OTF to 1.6.4stingray
|
||||
(see extlib/otf/ChangeLog)
|
||||
- added support for tracing calls to arbitrary third party libraries
|
||||
The new tool 'vtlibwrapgen' can be used to generate a wrapper library.
|
||||
- extended the region filter mechanism to allow MPI-rank specific
|
||||
filter directives
|
||||
- added support for automatic instrumentation with PGI 9 compiler using
|
||||
its new compiler flag '-Minstrument'
|
||||
- added MPI-parallel trace unifier (vtunify-mpi)
|
||||
- disabled simultaneous support for multiple compiler instrumentation
|
||||
types in one VampirTrace installation
|
||||
(all known compiler instrumentation types for the compiler wrappers
|
||||
(e.g. gnu,pgi,xl) are summarized by "compinst")
|
||||
- added wrapper script 'vtjava' which invoke the usual Java application
|
||||
launcher with the necessary options for tracing
|
||||
- enhanced creating global definitions in vtunify
|
||||
- create a process group with the real node name on CrayXT platforms
|
||||
- fixed a bug which caused incomplete traces if using automatic instr.
|
||||
for MPI/C++ applications on CrayXT platforms
|
||||
- fixed erroneous error messaging in libc tracing
|
||||
- fixed wrong order of attributes in 'vt_def_region'
|
||||
- fixed erroneous reading of input filter file in vtfilter
|
||||
|
||||
5.7
|
||||
- updated version of internal OTF to 1.6.1stingray
|
||||
(see extlib/otf/ChangeLog)
|
||||
- added support for MPI correctness checking by Universal MPI
|
||||
Correctness Interface (UniMCI)
|
||||
- added support for automatic instrumentation by using OpenUH compiler
|
||||
(version 4.0 or higher required)
|
||||
- added support for Java tracing using JVMTI
|
||||
- added support for CPU ID tracing (requires GLIBC >= 2.6)
|
||||
- added support for MPI-2 one-sided communication
|
||||
- full support for MPI-2 I/O (using I/O begin/end records)
|
||||
- improved tracing of nested POSIX/OpenMP threads: record parent thread
|
||||
identifier of each child thread so that the parent-child relationship
|
||||
will be evident
|
||||
- improved tracing of POSIX threads: reuse thread identifiers of
|
||||
terminated threads
|
||||
- improved memory allocation tracing: write marker for each alloc/free
|
||||
event which show the allocated/freed bytes
|
||||
- added environment variable VT_MAX_STACK_DEPTH which can be used to
|
||||
specify the maximum depth of call stack to record
|
||||
- extended user API for intermediate time synchronization and buffer
|
||||
flushes and for updating all counters which specified by the
|
||||
environment variables VT_METRICS and VT_RUSAGE
|
||||
- added support email address to assert strings and #error directives
|
||||
- added writing of I/O begin/end records for LIBC's I/O tracing
|
||||
- added support for tracing file locking via 'flockfile()', 'lockf()'
|
||||
and 'fcntl()'
|
||||
- use handle from dlopen(<libc>) for dlsym() calls instead of RTLD_NEXT
|
||||
=> LIBC (+I/O) tracing works with statically linked programs now
|
||||
- added support for cycle counter timer on Alpha and Sparc platforms
|
||||
- added platform configurartion files that provide several default
|
||||
options
|
||||
- added configure check for function '__getReg' which required to use
|
||||
the ITC timer on IA64/Linux
|
||||
- added configure check for PAPI's special type 'long_long'
|
||||
(will be defined, if the header file 'papi.h' doesn't provide this)
|
||||
- install header files to 'PREFIX/include/vampirtrace' by default to
|
||||
avoid conflicts with the OpenMPI integrated version of VT
|
||||
- do not install 'vtCC' and the corresponding config file, if the file
|
||||
system is case insensitive (e.g. HFS+ on MacOS X)
|
||||
- added configure option '--with[out]-bfd' to control usage of BFD
|
||||
library to get symbol information for GNU, Intel, and PathScale
|
||||
compiler instrumentation
|
||||
- preselect availability of MPI type converter functions
|
||||
(e.g. MPI_Comm_f2c), if '--with-openmpi' was given
|
||||
(further preselections for other MPI implementations will follow)
|
||||
- fixed detection of Sun Studio compiler for automatic instrumentation
|
||||
- fixed a bug in GNU demangling of C++ names
|
||||
- fixed wrong output of dlsym errors in I/O tracing
|
||||
- fixed faulty searching for matching filter directive
|
||||
- fixed assertion which might be occurred during tracing applications
|
||||
using pthreads and recording PAPI counters
|
||||
- fixed not-increasing counter values for tracing threaded applications
|
||||
- fixed a bug in Fortran MPI wrappers: added conversion for MPI_BOTTOM
|
||||
and MPI_IN_PLACE
|
||||
- fixed Fortran User API for markers
|
||||
- fixed a bug in vtfilter: strip the '.otf'-suffix from input/output
|
||||
trace file names, if necessary
|
||||
- fixed a bug in the Fortran compiler wrappers: don't remove generated
|
||||
OPARI header files (*.opari.inc) before compiling the table source
|
||||
- file (opari.tab.c)
|
||||
- enhancement to OPARI (see tools/opari/ChangeLog:16,17)
|
||||
- use handle from dlopen(<libc>) for dlsym() calls instead of RTLD_NEXT
|
||||
- fixed segmentation fault when encountering invalid file descriptors
|
||||
- use hard limit for maximum number of fds
|
||||
|
||||
5.6.3
|
||||
- updated version of internal OTF to 1.5.2dolphin
|
||||
(see extlib/otf/ChangeLog)
|
||||
- added environment variables VT_PFORM_LDIR_CHECK and
|
||||
VT_PFORM_GDIR_CHECK to enable/disable checking for write access to
|
||||
the local/global trace directories
|
||||
- added configure variable 'NM' for the command to list symbols from
|
||||
object files
|
||||
- added configure options '--with-mvapich[2]' to set the MPI-libs for
|
||||
MVAPICH[2]
|
||||
- added configure check for header file 'asm/intrinsics.h' and
|
||||
definition of '_IA64_REG_AR_ITC' which required to use the ITC timer
|
||||
on IA64/Linux
|
||||
- added support for demangling of C++ names also if the header file
|
||||
'demangle.h' is not available
|
||||
- do not build shared libraries on IBM BlueGene
|
||||
- replaced usage of PATH_MAX by VT_PATH_MAX to avoid compile errors
|
||||
on some platforms
|
||||
- fixed compile error which occurred if support for enhanced time
|
||||
synchronization enabled and using the Sun Performance Library from
|
||||
Sun Studio 12
|
||||
- fixed compile error on RedHat/CentOS due to missing header include
|
||||
of 'cctype.h' in the sources of 'vtunify'
|
||||
- fixed a bug in the compiler wrappers: add compiler flag '-I.' for
|
||||
compiling OPARI modified sources in subdirectories in order to find
|
||||
the corresponding OPARI include files
|
||||
- fixed a bug in the compiler wrappers for Fortran: do not mix C flags
|
||||
(especially the pthread flag '-D_THREAD_SAFE' for IBM compilers) with
|
||||
Fortran compiler flags
|
||||
- fixed faulty timer selection in configure
|
||||
(the cycle counter timer is not available on all Linux platforms)
|
||||
- fixed detection of Sun Studio compilers on Linux
|
||||
(related to the automatic instrumentation)
|
||||
- patch libtool to avoid a bug in detection of the Sun Studio Fortran
|
||||
compiler
|
||||
- fixed missing definition of vt_node_id in vt_pform_sun
|
||||
- added wrapper for 'pthread_exit' for correct decomposition of the
|
||||
call stack
|
||||
- fixed I/O calls not being affected by region filters
|
||||
- disabled recording of I/O events from within filtered out functions
|
||||
- disabled recording of MPI messages from within filtered out functions
|
||||
- check return value of MPI_Get_count in status handling
|
||||
|
||||
5.6.2
|
||||
- replaced all dots in library names by dashs in order to avoid a
|
||||
naming problem in libtool and for more consistent
|
||||
- added dependencies to all necessary libraries (e.g. PAPI, BFD, etc.)
|
||||
to the shared VT libraries
|
||||
- changed default of VT_PFORM_LDIR to '.' on SiCortex platforms
|
||||
- fixed use of gethostid() that may fail without error -> check return
|
||||
value and retry
|
||||
- use 1 MB buffer for copying traces from local to global destination,
|
||||
may be tuned by VT_COPY_BUFFER_SIZE
|
||||
|
||||
5.6.1
|
||||
- updated version of internal OTF to 1.5.1dolphin
|
||||
(see extlib/otf/ChangeLog)
|
||||
- added support for building shared libraries
|
||||
- fixed compile error which occurred if configure was unable to find
|
||||
MPI2 I/O support
|
||||
- fixed compile error due to missing header include in the sources of
|
||||
the compiler wrappers
|
||||
- fixed faulty calculation of unique node id on SUN Solaris platforms
|
||||
- fixed compiler flags for building OPARI's table object file
|
||||
- fixed a bug which could prevent LIBC's I/O tracing
|
||||
|
||||
5.6
|
||||
- updated version of internal OTF to 1.5 (see extlib/otf/ChangeLog)
|
||||
- enhanced time synchronization
|
||||
- added support for MPI-2 extended collective operations
|
||||
- added support for recording statistics of MPI collective operations
|
||||
- added support for hardware performance counters on NEC SX platforms
|
||||
- added support for POSIX threads
|
||||
- extended user API to record user-defined markers
|
||||
- added wrapper for MPI function 'MPI_Init_thread'
|
||||
- fixed faulty calculation of sent/received bytes for MPI_Bcast
|
||||
|
||||
5.5.4
|
||||
- added support for OpenMP on BlueGene/P
|
||||
- fixed invalid conversion from 'const char*' to 'char*' in macro
|
||||
'VT_TRACER'
|
||||
|
||||
5.5.3
|
||||
- updated version of internal OTF to 1.4.1 (see extlib/otf/ChangeLog)
|
||||
- added support for NEC MPI/SX Fortran 8-Byte Integers
|
||||
- added support for IBM BlueGene/P
|
||||
- added configure options '--with-sunmpi[-mt]' to set MPI libs for
|
||||
SUN MPI
|
||||
- bugfix: added configure check for I/O functions functions 'fseeko()'
|
||||
(this function is not available on NEC SX platforms)
|
||||
- fixed faulty shell comparison in configure which may cause an infinite
|
||||
loop
|
||||
- fixed compile error: removed faulty header include for builds
|
||||
without MPI support
|
||||
- fixed stack corios during intercepting I/O function 'unlink()'
|
||||
- fixed stack-level mismatch in regions with tracing disabled (VT_OFF)
|
||||
in combination with MPI collective operations
|
||||
- fixed faulty handling of MPI_F_STATUS[ES]_IGNORE in MPI wrapper
|
||||
functions
|
||||
|
||||
5.5.2
|
||||
- added wrapper for LIBC's I/O function 'unlink()'
|
||||
- fixed a bug in handling of OpenMP critical sections
|
||||
- fixed a bug in Fortran MPI wrappers: added conversion of MPI_Aint
|
||||
|
||||
5.5.1
|
||||
- added wrapper functions for 'wait()' and 'waitpid()'
|
||||
- improved tracing of 'fork()': automatic unifying of local traces
|
||||
- added support for Cray CNL
|
||||
- added option '-p' for vtunify to show a progress display during
|
||||
unifying events
|
||||
- added configure options to specify the installed MPI-implementation
|
||||
(e.g. the option '--with-mpich2' sets the MPI-libs for MPICH2)
|
||||
- fixed not-increasing timestamps during buffer flush
|
||||
(occurred if memory allocation tracing was enabled)
|
||||
- fixed missing variable-declarations in Fortran MPI wrappers
|
||||
- fixed a bug in unique trace file naming which occurred when 'fork()'
|
||||
used (child process gots a wrong unique file number)
|
||||
- fixed a bug in vtfilter where the tool dies when a counter appears
|
||||
outside of function
|
||||
- enhancement to OPARI (see tools/opari/ChangeLog:15)
|
||||
|
||||
5.5
|
||||
- updated version of internal OTF to 1.4 (see extlib/otf/ChangeLog)
|
||||
- added support for automatic instrumentation by using PathScale
|
||||
compiler (version 3.1 or higher required)
|
||||
- added support for recording function and message statistics
|
||||
- extended user API for enable/disable tracing
|
||||
- added wrapper functions for the complete MPI-1.2 standard,
|
||||
MPI-2 One-Sided Communications, and MPI-2 I/O
|
||||
- added support for tracing resource usage via 'getrusage()'
|
||||
- added support for tracing 'fork()', 'system()', and 'exec' functions
|
||||
- added support for unique trace file naming
|
||||
- added determining of executable's path, if VT_APPPATH not given
|
||||
(currently that works *only* for linux, altix, macos, ibm, and sun)
|
||||
- set default trace file prefix to name of executable (from VT_APPPATH)
|
||||
- added support for CPC hardware performance counter
|
||||
- enhanced movement of the local temporary traces (VT_PFORM_LDIR) to
|
||||
the global directory (VT_PFORM_GDIR), if both directories are on the
|
||||
same device
|
||||
- added configure option (--with-cross-prefix) to set a prefix for the
|
||||
"cross"-executables of the compiler wrappers (e.g. cross-vtcc)
|
||||
- added configure options (--with-wrapper-<cc|cxx|f77|f90>) to set the
|
||||
default underlying compiler of the compiler wrappers
|
||||
- enhancement to OPARI (see tools/opari/ChangeLog:14)
|
||||
|
||||
5.4.5
|
||||
- updated version of internal OTF to 1.3.10 (see extlib/otf/ChangeLog)
|
||||
- fixed a bug for LIBC's I/O tracing: argument of 'fileno()' must be
|
||||
a valid file stream
|
||||
- added configure option '--[enable|disable]-binaries' to control
|
||||
building of binaries (useful for multi-lib installations)
|
||||
|
||||
5.4.4
|
||||
- updated version of internal OTF to 1.3.9 (see extlib/otf/ChangeLog)
|
||||
- fixed a portability bug: use own implementation of function
|
||||
'strdup()'
|
||||
- removed variadic macros (they were introduced in C99)
|
||||
- fixed potential race condition by using OpenMP + LIBC's I/O tracing
|
||||
- fixed potential missing definition records by using OpenMP and the
|
||||
maximum number of buffer flushes was reached
|
||||
- fixed a bug in the compiler wrappers: added check for SUN's OpenMP
|
||||
compiler flag (-xopenmp)
|
||||
- fixed a bug for determining the timer-resolution for ITC
|
||||
- added process group definition for MPI communicator MPI_COMM_SELF
|
||||
- cleanup call stack when maximum number of flushes was reached
|
||||
- added configure check if we can link '-lz' in order to pass either
|
||||
'-lotf -lz' or just '-lotf' as OTF link option
|
||||
- renamed configure's option '--with[out]-mpi-io' to
|
||||
'[enable/disable]-mpi-io' for more consistent
|
||||
|
||||
5.4.3
|
||||
- bugfix for Fortran compiler wrappers (vtf77, vtf90):
|
||||
OPARI's table source file (opari.tab.c) will be compiled
|
||||
with the C compiler and flags which were given for VT's
|
||||
configure (CC/CFLAGS)
|
||||
(changeable in vt*-wrapper-data.txt)
|
||||
- bugfixes in vtunify: - keep user's created process groups
|
||||
for MPI communicators
|
||||
- reserve sorting of global process group
|
||||
definitions
|
||||
|
||||
5.4.2
|
||||
- bugfix for VPATH builds
|
||||
- added configure check for PAPI version
|
||||
(only support for version 3.x)
|
||||
|
||||
5.4.1
|
||||
- bugfix: added check for I/O functions which are a part of the large
|
||||
file extensions (e.g. open64, creat64, ...); disable corresponding
|
||||
wrapper functions, if system doesn't support these
|
||||
- added environment variable VT_DEMANGLE to enable/disable GNU
|
||||
demangling of C++ names (default: disabled, due to a bug in older
|
||||
versions of the GNU library 'liberty')
|
||||
- disabled support for I/O tracing on MacOS
|
||||
|
||||
5.4.0
|
||||
- updated version of internal OTF to 1.3.8 (see extlib/otf/ChangeLog)
|
||||
- added support for user-defined counters
|
||||
- if available, PAPI cycle counter can be used as timer
|
||||
(see config.h after configure)
|
||||
- recording of events will be stopped if the maximum number of
|
||||
buffer flushes (env. VT_MAX_FLUSHES) was reached
|
||||
- added support for LIBC's I/O tracing
|
||||
- improved autoconf's m4 scripts for cross buildings
|
||||
- default settings for the compiler wrappers will be stored
|
||||
in share/vampirtrace/vt*-wrapper-data.txt
|
||||
- vtfilter: - direct filtering without second trace run
|
||||
- parallelization using OpenMP
|
||||
|
||||
5.3.2
|
||||
- updated version of internal OTF to 1.3.7 (see extlib/otf/ChangeLog)
|
||||
- improved autoconf's m4 scripts for cross buildings
|
||||
- added support for VPATH builds
|
||||
|
||||
5.3.1
|
||||
- set default trace call limit for all regions/functions to 100000
|
||||
|
||||
5.3.0
|
||||
- updated version of internal OTF to 1.3.4 (see extlib/otf/ChangeLog)
|
||||
- added support for automatic instrumentation by using Intel compiler
|
||||
version 10.x (uses new compiler flag '-finstrument-functions')
|
||||
- added support for binary instrumentation by using Dyninst
|
||||
- added support for GLIBC's memory allocation tracing
|
||||
(see doc/UserManual*)
|
||||
- bugfix: corrected process id for OpenMP collective operations
|
||||
- changed default function/region group from 'USR' to 'Application'
|
||||
- if only MPI-functions are instrumented, then entry-record of
|
||||
function 'user' will be generated before MPI_Init
|
||||
- added trace filter generator tool 'vtfilter'
|
||||
(see doc/USAGE.vtfilter)
|
||||
- added support for multiple compiler-instrumentations from one
|
||||
installation of VampirTrace (see INSTALL)
|
||||
- replaced vtinst, vtinst-pomp, and vtinst-dyn by VT's compiler
|
||||
wrapper (see doc/UserManual* and doc/USAGE.compinst)
|
||||
- added simple example applications
|
||||
- changed install directory of documentations from '$prefix/info'
|
||||
to '$prefix/share/vampirtrace/doc'
|
||||
- changed install directory of metrics-, filter-, and grouping
|
||||
configuration from '$prefix/doc' to '$prefix/share/vampirtrace'
|
||||
|
||||
5.2.5
|
||||
- fixed potentially race condition by tracing OpenMP apps.
|
||||
- fixed some little memory leaks
|
||||
- fixed native counter issue on IA64 systems
|
||||
- added configure check for header files 'stdint.h' and 'inttypes.h';
|
||||
if none of these files found, then own integer types will be defined
|
||||
|
||||
5.2.4
|
||||
- updated version of internal OTF to 1.2.19 (see extlib/otf/ChangeLog)
|
||||
- fixed compile error which occurred by using old SUN compilers
|
||||
- added a configure summary
|
||||
- added HP MPI support
|
||||
- renamed Fortran MPI wrapper library to 'libvt.fmpi' to avoid possible
|
||||
name conflicts
|
||||
- fixed a bug (integer overflow) in mechanism for getting timer on
|
||||
Linux systems
|
||||
|
||||
5.2.3
|
||||
- changed install directory of documentations from 'doc' to 'info'
|
||||
(adjustable by configure option '--infodir')
|
||||
- forward configure options '--exec-prefix', '--bindir', '--libdir', ',
|
||||
'--includedir', and '--infodir' to configure command of internal OTF
|
||||
- added configure check for CPP-Style Fortran preprocessor of gfortran
|
||||
- added configure check for location of 'mmtimer.h'
|
||||
- made sure that peers of events (e.g. msg. send enter + msg. send)
|
||||
have the same timestamp
|
||||
- clock synchronization can be forced
|
||||
(see config.h after configure)
|
||||
|
||||
5.2.2
|
||||
- fixed a bug in region filter which occurred by tracing OpenMP apps.
|
||||
instrumented by compiler (vtinst)
|
||||
- added option '-k' for vtunify to keep input trace files
|
||||
|
||||
5.2.1
|
||||
- fixed several performance issues
|
||||
- improved mechanism for getting clock cycles on IBM PPC64 machines
|
||||
- the user can specify the mechanism which used for getting timer
|
||||
(only for Linux, SGI Altix, IBM AIX, Cray X1
|
||||
- see config.h after configure)
|
||||
|
||||
5.2.0
|
||||
- updated version of internal OTF to 1.2.18 (see extlib/otf/ChangeLog)
|
||||
- replaced build system by GNU Autoconf/Automake
|
||||
- changed base name (e.g. environment variables, source files) to VT...
|
||||
(see doc/USAGE)
|
||||
- added OpenMP support by using OPARI instrumentation tool
|
||||
- write process group records which contain the location of processes
|
||||
(node name)
|
||||
- added tool 'vtconfig' to simplify determining the right compiler and
|
||||
linker flags
|
||||
|
||||
5.1.7
|
||||
- updated version of internal OTF to 1.2.13
|
||||
|
||||
5.1.6
|
||||
- updated version of internal OTF to 1.2.11
|
||||
- fixed a bug: record the REAL buffer-length of a MPI non-blocking
|
||||
receive operation
|
||||
- added wrapper for MPI function 'MPI_Probe'
|
||||
- added Open MPI support
|
||||
- added a simple "configure" command
|
||||
(see INSTALL)
|
||||
|
||||
5.1.5
|
||||
- fixed a bug in elg_otfunify time synchronization
|
||||
|
||||
5.1.4
|
||||
- updated version of internal OTF to 1.1.9
|
||||
- fixed a bug in elg_otfunify which occurred if compiled with PGI
|
||||
and used OMP parallelization
|
||||
- enhanced progress display of elg_otfunify
|
||||
|
||||
5.1.3
|
||||
- fixed little bugs in build system which occurred if multiple
|
||||
mode building used (Makefile.32-64)
|
||||
- added support for clusters of IBM Power3/4 machines
|
||||
and Linux PPC cluster with IBM compilers
|
||||
|
||||
5.1.2
|
||||
- updated version of internal OTF to 1.1.8
|
||||
|
||||
5.1.1
|
||||
- write list of filtered regions to file (*.x.filt)
|
||||
- specified flags of 'ar' in Makefile.defs (AFLAG) will
|
||||
be assign to internal OTF configure script
|
||||
|
||||
5.1.0
|
||||
- counter event record will be wrote before leave event record
|
||||
- added region filter and grouping managment
|
||||
|
||||
5.0.6
|
||||
- added creator informations of trace file (tracelib, version, date
|
||||
and time)
|
||||
- reduced offset of process group token
|
||||
- improved name of process groups
|
||||
|
||||
5.0.5
|
||||
- fixed a bug in elg_otfunify which occurred if the environment
|
||||
variable ELG_PFORM_DIR was set
|
||||
|
||||
5.0.4
|
||||
- fixed a bug which occurred on Opteron systems (faulty timestamps)
|
||||
- made sure that the ids of process groups and processes are
|
||||
different (for analyzing trace files)
|
||||
|
||||
5.0.3
|
||||
- updated version of internal OTF to 1.1.5
|
||||
- fixed a bug in GNU compiler interface which might have caused
|
||||
a segmentation fault during flushing the trace buffer
|
||||
|
||||
5.0.2
|
||||
- updated version of internal OTF to 1.1.4
|
||||
|
||||
5.0.1
|
||||
- updated version of internal OTF to 1.1.3
|
||||
|
||||
5.0.0
|
||||
- initial version
|
@ -1 +0,0 @@
|
||||
See doc/UserManual.pdf appendix A on how to install VampirTrace.
|
@ -1,36 +0,0 @@
|
||||
Copyright (c) 2005-2013, ZIH, TU Dresden, Federal Republic of Germany
|
||||
|
||||
Copyright (c) 1998-2005, Forschungszentrum Juelich, Juelich Supercomputing
|
||||
Centre, Federal Republic of Germany
|
||||
|
||||
Copyright (c) 2007-2008, High Performance Computing Center Stuttgart,
|
||||
Federal Republic of Germany
|
||||
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
- Redistributions of source code must retain the above copyright notice,
|
||||
this list of conditions and the following disclaimer.
|
||||
|
||||
- Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation and/or
|
||||
other materials provided with the distribution.
|
||||
|
||||
- Neither the name of ZIH, TU Dresden, Forschungszentrum Juelich, Juelich
|
||||
Supercomputing Centre, or High Performance Computing Center Stuttgart, nor the
|
||||
names of its contributors may be used to endorse or promote products derived
|
||||
from this software without pecific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
@ -1,59 +0,0 @@
|
||||
ACLOCAL_AMFLAGS = -I config/m4
|
||||
|
||||
SUBDIRS = \
|
||||
extlib \
|
||||
util \
|
||||
rfg \
|
||||
vtlib \
|
||||
tools \
|
||||
include \
|
||||
doc
|
||||
|
||||
vtdata_DATA = \
|
||||
$(top_builddir)/config.log
|
||||
|
||||
vtdata_SCRIPTS = \
|
||||
$(top_builddir)/libtool
|
||||
|
||||
vtdatadir = $(datadir)
|
||||
|
||||
EXTRA_DIST = \
|
||||
config_bottom.h \
|
||||
VERSION \
|
||||
config/defaults/bgl \
|
||||
config/defaults/bgp \
|
||||
config/defaults/bgq \
|
||||
config/defaults/crayxt \
|
||||
config/defaults/crayxe \
|
||||
config/defaults/ibm \
|
||||
config/defaults/ibm-64 \
|
||||
config/defaults/sicortex \
|
||||
config/defaults/sicortex-32 \
|
||||
config/defaults/sun \
|
||||
config/defaults/necsx \
|
||||
config/mpigen/c_dont_generate.txt \
|
||||
config/mpigen/fortran_dont_generate.txt \
|
||||
config/mpigen/mpi_standard.h \
|
||||
config/mpigen/mpi2_1sided.h \
|
||||
config/mpigen/mpi2_extcoll.h \
|
||||
config/mpigen/mpi2_file.h \
|
||||
config/mpigen/mpi2_proc.h \
|
||||
config/mpigen/mpi2_thread.h \
|
||||
config/mpigen/mpi2_standard.h \
|
||||
examples/c/Makefile \
|
||||
examples/c/Makefile.config \
|
||||
examples/c/hello.c \
|
||||
examples/c/mdlbrot.c \
|
||||
examples/c/pi.c \
|
||||
examples/c/ring.c \
|
||||
examples/cxx/Makefile \
|
||||
examples/cxx/Makefile.config \
|
||||
examples/cxx/hello.cc \
|
||||
examples/cxx/pi.cc \
|
||||
examples/cxx/ring.cc \
|
||||
examples/fortran/Makefile \
|
||||
examples/fortran/Makefile.config \
|
||||
examples/fortran/hello.F \
|
||||
examples/fortran/pi.F \
|
||||
examples/fortran/ring.F
|
||||
|
@ -1,12 +0,0 @@
|
||||
VampirTrace
|
||||
|
||||
VampirTrace consists of a tool set and a run-time library for instrumentation and tracing of software applications. In particular, it is tailored towards parallel and distributed High Performance Computing (HPC) applications.
|
||||
|
||||
The instrumentation part modifies a given application in order to inject additional measurement calls during run-time. The tracing part provides the actual measurement functionality used by the instrumentation calls. By this means, a variety of detailed performance properties can be collected and recorded during run-time.
|
||||
|
||||
VampirTrace version is available as open source software under the BSD license, see 'COPYING'. The software comes as a source code package. It can be installed by using autoconf procedures, see 'INSTALL'.
|
||||
|
||||
For instructions on how use VampirTrace to instrument application programs so that they produce an OTF event trace when executed, see 'doc/UserManual.pdf'.
|
||||
|
||||
Please, report bugs, wishes, and suggestions to
|
||||
<vampirsupport@zih.tu-dresden.de>.
|
@ -1 +0,0 @@
|
||||
5.14.4openmpi
|
@ -1,45 +0,0 @@
|
||||
m4_include(config/m4/acinclude.clapack.m4)
|
||||
m4_include(config/m4/acinclude.compinst.m4)
|
||||
m4_include(config/m4/acinclude.compwrap.m4)
|
||||
m4_include(config/m4/acinclude.conf.m4)
|
||||
m4_include(config/m4/acinclude.cpc.m4)
|
||||
m4_include(config/m4/acinclude.cross.m4)
|
||||
m4_include(config/m4/acinclude.csfs.m4)
|
||||
m4_include(config/m4/acinclude.ctool.m4)
|
||||
m4_include(config/m4/acinclude.cuda.m4)
|
||||
m4_include(config/m4/acinclude.cupti.m4)
|
||||
m4_include(config/m4/acinclude.cudartwrap.m4)
|
||||
m4_include(config/m4/acinclude.cxxrtlib.m4)
|
||||
m4_include(config/m4/acinclude.dl.m4)
|
||||
m4_include(config/m4/acinclude.dyninst.m4)
|
||||
m4_include(config/m4/acinclude.etimesync.m4)
|
||||
m4_include(config/m4/acinclude.execwrap.m4)
|
||||
m4_include(config/m4/acinclude.getcpu.m4)
|
||||
m4_include(config/m4/acinclude.iofsl.m4)
|
||||
m4_include(config/m4/acinclude.iowrap.m4)
|
||||
m4_include(config/m4/acinclude.java.m4)
|
||||
m4_include(config/m4/acinclude.jvmti.m4)
|
||||
m4_include(config/m4/acinclude.liberty.m4)
|
||||
m4_include(config/m4/acinclude.libwrap.m4)
|
||||
m4_include(config/m4/acinclude.ltmpdir.m4)
|
||||
m4_include(config/m4/acinclude.mallocwrap.m4)
|
||||
m4_include(config/m4/acinclude.math.m4)
|
||||
m4_include(config/m4/acinclude.metrics.m4)
|
||||
m4_include(config/m4/acinclude.mpi.m4)
|
||||
m4_include(config/m4/acinclude.omp.m4)
|
||||
m4_include(config/m4/acinclude.otf.m4)
|
||||
m4_include(config/m4/acinclude.papi.m4)
|
||||
m4_include(config/m4/acinclude.pform.m4)
|
||||
m4_include(config/m4/acinclude.plugincntr.m4)
|
||||
m4_include(config/m4/acinclude.pthread.m4)
|
||||
m4_include(config/m4/acinclude.rusage.m4)
|
||||
m4_include(config/m4/acinclude.tauinst.m4)
|
||||
m4_include(config/m4/acinclude.threads.m4)
|
||||
m4_include(config/m4/acinclude.timer.m4)
|
||||
m4_include(config/m4/acinclude.mpiunifylib.m4)
|
||||
m4_include(config/m4/acinclude.unimci.m4)
|
||||
m4_include(config/m4/acinclude.vtrun.m4)
|
||||
m4_include(config/m4/acinclude.vtsetup.m4)
|
||||
m4_include(config/m4/acinclude.zlib.m4)
|
||||
m4_include(config/m4/acarchive/ax_openmp.m4)
|
||||
m4_include(config/m4/acarchive/acx_pthread.m4)
|
@ -1,13 +0,0 @@
|
||||
CC="blrts_xlc"
|
||||
CXX="blrts_xlC"
|
||||
FC="blrts_xlf90"
|
||||
MPICC="mpixlc"
|
||||
MPICXX="mpixlcxx"
|
||||
CC_FOR_BUILD="xlc_r"
|
||||
CXX_FOR_BUILD="xlC_r"
|
||||
enable_shared="no"
|
||||
enable_threads="no"
|
||||
enable_libtrace="no"
|
||||
enable_cpuidtrace="no"
|
||||
with_cross_prefix="blrts_"
|
||||
with_mpibgl="yes"
|
@ -1,17 +0,0 @@
|
||||
CC="bgxlc_r"
|
||||
CXX="bgxlC_r"
|
||||
FC="bgxlf95_r"
|
||||
MPICC="mpixlc_r"
|
||||
MPICXX="mpixlcxx_r"
|
||||
CFLAGS="-qtune=450 -qarch=450 -O3 -qstrict"
|
||||
CXXFLAGS="-qtune=450 -qarch=450 -O3 -qstrict"
|
||||
CC_FOR_BUILD="xlc_r"
|
||||
CXX_FOR_BUILD="xlC_r"
|
||||
CFLAGS_FOR_BUILD="-O3 -qstrict"
|
||||
CXXFLAGS_FOR_BUILD="-O3 -qstrict"
|
||||
enable_shared="no"
|
||||
enable_cpuidtrace="no"
|
||||
with_cross_prefix="bg"
|
||||
with_mpibgp="yes"
|
||||
with_cxxrtlib="-L/opt/ibmcmp/lib/bg/bglib -L/opt/ibmcmp/vacpp/bg/9.0/bglib -libmc++ -lstdc++"
|
||||
with_shlibc=/lib/libc.so.6
|
@ -1,20 +0,0 @@
|
||||
CC="bgxlc_r"
|
||||
CXX="bgxlC_r"
|
||||
FC="bgxlf95_r"
|
||||
MPICC="mpixlc_r"
|
||||
MPICXX="mpixlcxx_r"
|
||||
CFLAGS="-O3 -qstrict"
|
||||
CXXFLAGS="-O3 -qstrict -qminimaltoc"
|
||||
CC_FOR_BUILD="xlc_r"
|
||||
CXX_FOR_BUILD="xlC_r"
|
||||
CFLAGS_FOR_BUILD="-O3 -qstrict"
|
||||
CXXFLAGS_FOR_BUILD="-O3 -qstrict"
|
||||
enable_shared="no"
|
||||
with_cross_prefix="bg"
|
||||
with_mpibgq="yes"
|
||||
with_cxxrtlib="-L/opt/ibmcmp/vacpp/bg/12.1/bglib64 -libmc++ -lstdc++"
|
||||
with_shlibc="/lib64/libc.so.6"
|
||||
|
||||
# Disable compiler optimization for the OTF library to work around a
|
||||
# not yet evaluated segmentation fault occurs when flushing the trace buffer.
|
||||
with_otf_flags="CFLAGS=-O0"
|
@ -1,18 +0,0 @@
|
||||
CC="cc"
|
||||
CXX="CC"
|
||||
FC="ftn"
|
||||
CFLAGS="-O3"
|
||||
CXXFLAGS="-O3"
|
||||
FCFLAGS="-O3"
|
||||
if test x"$XTPE_COMPILE_TARGET" != x; then
|
||||
CFLAGS="$CFLAGS -target=$XTPE_COMPILE_TARGET"
|
||||
CXXFLAGS="$CXXFLAGS -target=$XTPE_COMPILE_TARGET"
|
||||
FCFLAGS="$FCFLAGS -target=$XTPE_COMPILE_TARGET"
|
||||
fi
|
||||
CC_FOR_BUILD="gcc"
|
||||
CXX_FOR_BUILD="g++"
|
||||
CFLAGS_FOR_BUILD="-O3"
|
||||
CXXFLAGS_FOR_BUILD="-O3"
|
||||
enable_shared="no"
|
||||
with_mpich2="yes"
|
||||
with_shlibc=/lib64/libc.so.6
|
@ -1,14 +0,0 @@
|
||||
CC="cc"
|
||||
CXX="CC"
|
||||
FC="ftn"
|
||||
CFLAGS="-O3"
|
||||
CXXFLAGS="-O3"
|
||||
FCFLAGS="-O3"
|
||||
if test x"$XTPE_COMPILE_TARGET" != x; then
|
||||
CFLAGS="$CFLAGS -target=$XTPE_COMPILE_TARGET"
|
||||
CXXFLAGS="$CXXFLAGS -target=$XTPE_COMPILE_TARGET"
|
||||
FCFLAGS="$FCFLAGS -target=$XTPE_COMPILE_TARGET"
|
||||
fi
|
||||
enable_shared="no"
|
||||
with_mpich2="yes"
|
||||
with_shlibc=/lib64/libc-2.4.so
|
@ -1,11 +0,0 @@
|
||||
CC="xlc_r"
|
||||
CXX="xlC_r"
|
||||
FC="xlf90_r"
|
||||
CFLAGS="-O2 -qsuppress=1500-030"
|
||||
CXXFLAGS="-O2 -qstaticinline -qrtti -qsuppress=1500-029:1500-030"
|
||||
FCFLAGS="-O2 -qsuppress=cmpmsg"
|
||||
OPENMP_CFLAGS="-qsmp=omp"
|
||||
PTHREAD_CFLAGS="-D_THREAD_SAFE"
|
||||
PTHREAD_LIBS="-lpthreads"
|
||||
enable_shared="no"
|
||||
enable_cpuidtrace="no"
|
@ -1,13 +0,0 @@
|
||||
AR="ar -X64"
|
||||
NM="nm -B -X64"
|
||||
CC="xlc_r"
|
||||
CXX="xlC_r"
|
||||
FC="xlf90_r"
|
||||
CFLAGS="-q64 -O2 -qsuppress=1500-030"
|
||||
CXXFLAGS="-q64 -O2 -qstaticinline -qrtti -qsuppress=1500-029:1500-030:1501-201"
|
||||
FCFLAGS="-q64 -O2 -qsuppress=cmpmsg"
|
||||
OPENMP_CFLAGS="-qsmp=omp"
|
||||
PTHREAD_CFLAGS="-D_THREAD_SAFE"
|
||||
PTHREAD_LIBS="-lpthreads"
|
||||
enable_shared="no"
|
||||
enable_cpuidtrace="no"
|
@ -1,24 +0,0 @@
|
||||
AR="sxar"
|
||||
CC="sxcc"
|
||||
CXX="sxc++"
|
||||
FC="sxf90"
|
||||
CCAS="sxas"
|
||||
MPICC="sxmpicc"
|
||||
MPICXX="sxmpic++"
|
||||
MPIFC="sxmpif90"
|
||||
CC_FOR_BUILD="cc"
|
||||
CXX_FOR_BUILD="c++"
|
||||
RANLIB="echo"
|
||||
CFLAGS="-Csopt"
|
||||
CXXFLAGS="-Csopt"
|
||||
FCFLAGS="-Csopt"
|
||||
CFLAGS_FOR_BUILD="-O2"
|
||||
CXXFLAGS_FOR_BUILD="-O2"
|
||||
OPENMP_CFLAGS="-Popenmp"
|
||||
PTHREAD_LIBS="-lpthread"
|
||||
enable_shared="no"
|
||||
enable_libtrace="no"
|
||||
enable_cpuidtrace="no"
|
||||
enable_metrics="necsx"
|
||||
with_cross_prefix="sx"
|
||||
with_mpisx="yes"
|
@ -1,13 +0,0 @@
|
||||
CC="scpathcc"
|
||||
CXX="scpathCC"
|
||||
FC="scpathf95"
|
||||
MPICC="scmpicc"
|
||||
MPIFC="scmpif77"
|
||||
CC_FOR_BUILD="gcc"
|
||||
CXX_FOR_BUILD="g++"
|
||||
OPENMP_CFLAGS="-mp"
|
||||
PTHREAD_CFLAGS="-pthread"
|
||||
enable_fmpi_lib="yes"
|
||||
with_mpi_lib="-lscmpi"
|
||||
with_pmpi_lib="-lscmpi"
|
||||
with_cross_prefix="sc"
|
@ -1,18 +0,0 @@
|
||||
CC="scpathcc32"
|
||||
CXX="scpathCC32"
|
||||
FC="scpathf9532"
|
||||
MPICC="scmpicc32"
|
||||
MPIFC="scmpif7732"
|
||||
CFLAGS="-mabi=n32"
|
||||
CXXFLAGS="-mabi=n32"
|
||||
FCFLAGS="-mabi=n32"
|
||||
CC_FOR_BUILD="gcc"
|
||||
CXX_FOR_BUILD="g++"
|
||||
CFLAGS_FOR_BUILD="-m32"
|
||||
CXXFLAGS_FOR_BUILD="-m32"
|
||||
OPENMP_CFLAGS="-mp"
|
||||
PTHREAD_CFLAGS="-pthread"
|
||||
enable_fmpi_lib="yes"
|
||||
with_mpi_lib="-lscmpi"
|
||||
with_pmpi_lib="-lscmpi"
|
||||
with_cross_prefix="sc"
|
@ -1,10 +0,0 @@
|
||||
CC="cc"
|
||||
CXX="CC"
|
||||
FC="f95"
|
||||
CFLAGS="-xO3"
|
||||
CXXFLAGS="-xO3"
|
||||
FCFLAGS="-xO3"
|
||||
OPENMP_CFLAGS="-xopenmp -xO3 -D_REENTRANT"
|
||||
PTHREAD_CFLAGS="-D_REENTRANT"
|
||||
PTHREAD_LIBS="-lpthread"
|
||||
enable_cpuidtrace="no"
|
@ -1,238 +0,0 @@
|
||||
dnl @synopsis ACX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
|
||||
dnl
|
||||
dnl @summary figure out how to build C programs using POSIX threads
|
||||
dnl
|
||||
dnl This macro figures out how to build C programs using POSIX threads.
|
||||
dnl It sets the PTHREAD_LIBS output variable to the threads library and
|
||||
dnl linker flags, and the PTHREAD_CFLAGS output variable to any special
|
||||
dnl C compiler flags that are needed. (The user can also force certain
|
||||
dnl compiler flags/libs to be tested by setting these environment
|
||||
dnl variables.)
|
||||
dnl
|
||||
dnl Also sets PTHREAD_CC to any special C compiler that is needed for
|
||||
dnl multi-threaded programs (defaults to the value of CC otherwise).
|
||||
dnl (This is necessary on AIX to use the special cc_r compiler alias.)
|
||||
dnl
|
||||
dnl NOTE: You are assumed to not only compile your program with these
|
||||
dnl flags, but also link it with them as well. e.g. you should link
|
||||
dnl with $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS
|
||||
dnl $LIBS
|
||||
dnl
|
||||
dnl If you are only building threads programs, you may wish to use
|
||||
dnl these variables in your default LIBS, CFLAGS, and CC:
|
||||
dnl
|
||||
dnl LIBS="$PTHREAD_LIBS $LIBS"
|
||||
dnl CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
|
||||
dnl CC="$PTHREAD_CC"
|
||||
dnl
|
||||
dnl In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute
|
||||
dnl constant has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to
|
||||
dnl that name (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
|
||||
dnl
|
||||
dnl ACTION-IF-FOUND is a list of shell commands to run if a threads
|
||||
dnl library is found, and ACTION-IF-NOT-FOUND is a list of commands to
|
||||
dnl run it if it is not found. If ACTION-IF-FOUND is not specified, the
|
||||
dnl default action will define HAVE_PTHREAD.
|
||||
dnl
|
||||
dnl Please let the authors know if this macro fails on any platform, or
|
||||
dnl if you have any other suggestions or comments. This macro was based
|
||||
dnl on work by SGJ on autoconf scripts for FFTW (www.fftw.org) (with
|
||||
dnl help from M. Frigo), as well as ac_pthread and hb_pthread macros
|
||||
dnl posted by Alejandro Forero Cuervo to the autoconf macro repository.
|
||||
dnl We are also grateful for the helpful feedback of numerous users.
|
||||
dnl
|
||||
dnl @category InstalledPackages
|
||||
dnl @author Steven G. Johnson <stevenj@alum.mit.edu>
|
||||
dnl @version 2005-06-15
|
||||
dnl @license GPLWithACException
|
||||
|
||||
AC_DEFUN([ACX_PTHREAD], [
|
||||
AC_REQUIRE([AC_CANONICAL_HOST])
|
||||
AC_LANG_SAVE
|
||||
AC_LANG_C
|
||||
acx_pthread_ok=no
|
||||
|
||||
# We used to check for pthread.h first, but this fails if pthread.h
|
||||
# requires special compiler flags (e.g. on True64 or Sequent).
|
||||
# It gets checked for in the link test anyway.
|
||||
|
||||
# First of all, check if the user has set any of the PTHREAD_LIBS,
|
||||
# etcetera environment variables, and if threads linking works using
|
||||
# them:
|
||||
if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
|
||||
save_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
|
||||
save_LIBS="$LIBS"
|
||||
LIBS="$PTHREAD_LIBS $LIBS"
|
||||
AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS])
|
||||
AC_TRY_LINK_FUNC(pthread_join, acx_pthread_ok=yes)
|
||||
AC_MSG_RESULT($acx_pthread_ok)
|
||||
if test x"$acx_pthread_ok" = xno; then
|
||||
PTHREAD_LIBS=""
|
||||
PTHREAD_CFLAGS=""
|
||||
fi
|
||||
LIBS="$save_LIBS"
|
||||
CFLAGS="$save_CFLAGS"
|
||||
fi
|
||||
|
||||
# We must check for the threads library under a number of different
|
||||
# names; the ordering is very important because some systems
|
||||
# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
|
||||
# libraries is broken (non-POSIX).
|
||||
|
||||
# Create a list of thread flags to try. Items starting with a "-" are
|
||||
# C compiler flags, and other items are library names, except for "none"
|
||||
# which indicates that we try without any flags at all, and "pthread-config"
|
||||
# which is a program returning the flags for the Pth emulation library.
|
||||
|
||||
acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
|
||||
|
||||
# The ordering *is* (sometimes) important. Some notes on the
|
||||
# individual items follow:
|
||||
|
||||
# pthreads: AIX (must check this before -lpthread)
|
||||
# none: in case threads are in libc; should be tried before -Kthread and
|
||||
# other compiler flags to prevent continual compiler warnings
|
||||
# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
|
||||
# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
|
||||
# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
|
||||
# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
|
||||
# -pthreads: Solaris/gcc
|
||||
# -mthreads: Mingw32/gcc, Lynx/gcc
|
||||
# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
|
||||
# doesn't hurt to check since this sometimes defines pthreads too;
|
||||
# also defines -D_REENTRANT)
|
||||
# ... -mt is also the pthreads flag for HP/aCC
|
||||
# pthread: Linux, etcetera
|
||||
# --thread-safe: KAI C++
|
||||
# pthread-config: use pthread-config program (for GNU Pth library)
|
||||
|
||||
case "${host_cpu}-${host_os}" in
|
||||
*solaris*)
|
||||
|
||||
# On Solaris (at least, for some versions), libc contains stubbed
|
||||
# (non-functional) versions of the pthreads routines, so link-based
|
||||
# tests will erroneously succeed. (We need to link with -pthreads/-mt/
|
||||
# -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
|
||||
# a function called by this macro, so we could check for that, but
|
||||
# who knows whether they'll stub that too in a future libc.) So,
|
||||
# we'll just look for -pthreads and -lpthread first:
|
||||
|
||||
acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
|
||||
;;
|
||||
esac
|
||||
|
||||
if test x"$acx_pthread_ok" = xno; then
|
||||
for flag in $acx_pthread_flags; do
|
||||
|
||||
case $flag in
|
||||
none)
|
||||
AC_MSG_CHECKING([whether pthreads work without any flags])
|
||||
;;
|
||||
|
||||
-*)
|
||||
AC_MSG_CHECKING([whether pthreads work with $flag])
|
||||
PTHREAD_CFLAGS="$flag"
|
||||
;;
|
||||
|
||||
pthread-config)
|
||||
AC_CHECK_PROG(acx_pthread_config, pthread-config, yes, no)
|
||||
if test x"$acx_pthread_config" = xno; then continue; fi
|
||||
PTHREAD_CFLAGS="`pthread-config --cflags`"
|
||||
PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
|
||||
;;
|
||||
|
||||
*)
|
||||
AC_MSG_CHECKING([for the pthreads library -l$flag])
|
||||
PTHREAD_LIBS="-l$flag"
|
||||
;;
|
||||
esac
|
||||
|
||||
save_LIBS="$LIBS"
|
||||
save_CFLAGS="$CFLAGS"
|
||||
LIBS="$PTHREAD_LIBS $LIBS"
|
||||
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
|
||||
|
||||
# Check for various functions. We must include pthread.h,
|
||||
# since some functions may be macros. (On the Sequent, we
|
||||
# need a special flag -Kthread to make this header compile.)
|
||||
# We check for pthread_join because it is in -lpthread on IRIX
|
||||
# while pthread_create is in libc. We check for pthread_attr_init
|
||||
# due to DEC craziness with -lpthreads. We check for
|
||||
# pthread_cleanup_push because it is one of the few pthread
|
||||
# functions on Solaris that doesn't have a non-functional libc stub.
|
||||
# We try pthread_create on general principles.
|
||||
AC_TRY_LINK([#include <pthread.h>],
|
||||
[pthread_t th; pthread_join(th, 0);
|
||||
pthread_attr_init(0); pthread_cleanup_push(0, 0);
|
||||
pthread_create(0,0,0,0); pthread_cleanup_pop(0); ],
|
||||
[acx_pthread_ok=yes])
|
||||
|
||||
LIBS="$save_LIBS"
|
||||
CFLAGS="$save_CFLAGS"
|
||||
|
||||
AC_MSG_RESULT($acx_pthread_ok)
|
||||
if test "x$acx_pthread_ok" = xyes; then
|
||||
break;
|
||||
fi
|
||||
|
||||
PTHREAD_LIBS=""
|
||||
PTHREAD_CFLAGS=""
|
||||
done
|
||||
fi
|
||||
|
||||
# Various other checks:
|
||||
if test "x$acx_pthread_ok" = xyes; then
|
||||
save_LIBS="$LIBS"
|
||||
LIBS="$PTHREAD_LIBS $LIBS"
|
||||
save_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
|
||||
|
||||
# Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
|
||||
AC_MSG_CHECKING([for joinable pthread attribute])
|
||||
attr_name=unknown
|
||||
for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
|
||||
AC_TRY_LINK([#include <pthread.h>], [int attr=$attr; return attr;],
|
||||
[attr_name=$attr; break])
|
||||
done
|
||||
AC_MSG_RESULT($attr_name)
|
||||
if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
|
||||
AC_DEFINE_UNQUOTED(PTHREAD_CREATE_JOINABLE, $attr_name,
|
||||
[Define to necessary symbol if this constant
|
||||
uses a non-standard name on your system.])
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING([if more special flags are required for pthreads])
|
||||
flag=no
|
||||
case "${host_cpu}-${host_os}" in
|
||||
*-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
|
||||
*solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
|
||||
esac
|
||||
AC_MSG_RESULT(${flag})
|
||||
if test "x$flag" != xno; then
|
||||
PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
|
||||
fi
|
||||
|
||||
LIBS="$save_LIBS"
|
||||
CFLAGS="$save_CFLAGS"
|
||||
|
||||
# More AIX lossage: must compile with cc_r
|
||||
AC_CHECK_PROG(PTHREAD_CC, cc_r, cc_r, ${CC})
|
||||
else
|
||||
PTHREAD_CC="$CC"
|
||||
fi
|
||||
|
||||
AC_SUBST(PTHREAD_LIBS)
|
||||
AC_SUBST(PTHREAD_CFLAGS)
|
||||
AC_SUBST(PTHREAD_CC)
|
||||
|
||||
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
|
||||
if test x"$acx_pthread_ok" = xyes; then
|
||||
ifelse([$1],,AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.]),[$1])
|
||||
:
|
||||
else
|
||||
acx_pthread_ok=no
|
||||
$2
|
||||
fi
|
||||
AC_LANG_RESTORE
|
||||
])dnl ACX_PTHREAD
|
@ -1,71 +0,0 @@
|
||||
dnl @synopsis AX_OPENMP([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
|
||||
dnl
|
||||
dnl @summary determine how to compile programs using OpenMP
|
||||
dnl
|
||||
dnl This macro tries to find out how to compile programs that use
|
||||
dnl OpenMP a standard API and set of compiler directives for parallel
|
||||
dnl programming (see http://www-unix.mcs/)
|
||||
dnl
|
||||
dnl On success, it sets the
|
||||
dnl OPENMP_CFLAGS/OPENMP_CXXFLAGS/OPENMP_F77FLAGS output variable to
|
||||
dnl the flag (e.g. -omp) used both to compile *and* link OpenMP
|
||||
dnl programs in the current language.
|
||||
dnl
|
||||
dnl NOTE: You are assumed to not only compile your program with these
|
||||
dnl flags, but also link it with them as well.
|
||||
dnl
|
||||
dnl If you want to compile everything with OpenMP, you should set:
|
||||
dnl
|
||||
dnl CFLAGS="$CFLAGS $OPENMP_CFLAGS"
|
||||
dnl #OR# CXXFLAGS="$CXXFLAGS $OPENMP_CXXFLAGS"
|
||||
dnl #OR# FFLAGS="$FFLAGS $OPENMP_FFLAGS"
|
||||
dnl
|
||||
dnl (depending on the selected language).
|
||||
dnl
|
||||
dnl The user can override the default choice by setting the
|
||||
dnl corresponding environment variable (e.g. OPENMP_CFLAGS).
|
||||
dnl
|
||||
dnl ACTION-IF-FOUND is a list of shell commands to run if an OpenMP
|
||||
dnl flag is found, and ACTION-IF-NOT-FOUND is a list of commands to run
|
||||
dnl it if it is not found. If ACTION-IF-FOUND is not specified, the
|
||||
dnl default action will define HAVE_OPENMP.
|
||||
dnl
|
||||
dnl @category InstalledPackages
|
||||
dnl @author Steven G. Johnson <stevenj@alum.mit.edu>
|
||||
dnl @version 2006-01-24
|
||||
dnl @license GPLWithACException
|
||||
|
||||
AC_DEFUN([AX_OPENMP], [
|
||||
AC_PREREQ(2.59) dnl for _AC_LANG_PREFIX
|
||||
|
||||
AC_CACHE_CHECK([for OpenMP flag of _AC_LANG compiler], ax_cv_[]_AC_LANG_ABBREV[]_openmp, [save[]_AC_LANG_PREFIX[]FLAGS=$[]_AC_LANG_PREFIX[]FLAGS
|
||||
ax_cv_[]_AC_LANG_ABBREV[]_openmp=unknown
|
||||
# Flags to try: -fopenmp (gcc), -openmp (icc), -mp (SGI & PGI),
|
||||
# -xopenmp (Sun), -omp (Tru64), -qsmp=omp (AIX),
|
||||
# -Popenmp (NECSX), none (e.g. Cray)
|
||||
ax_openmp_flags="-fopenmp -openmp -mp -xopenmp -omp -qsmp=omp -Popenmp none"
|
||||
if test "x$OPENMP_[]_AC_LANG_PREFIX[]FLAGS" != x; then
|
||||
ax_openmp_flags="$OPENMP_[]_AC_LANG_PREFIX[]FLAGS $ax_openmp_flags"
|
||||
fi
|
||||
for ax_openmp_flag in $ax_openmp_flags; do
|
||||
case $ax_openmp_flag in
|
||||
none) []_AC_LANG_PREFIX[]FLAGS="$save[]_AC_LANG_PREFIX[]FLAGS" ;;
|
||||
*) []_AC_LANG_PREFIX[]FLAGS="$ax_openmp_flag $save[]_AC_LANG_PREFIX[]FLAGS" ;;
|
||||
esac
|
||||
AC_TRY_COMPILE([], [
|
||||
#ifndef _OPENMP
|
||||
# error "_OPENMP not defined"
|
||||
#endif
|
||||
], [ax_cv_[]_AC_LANG_ABBREV[]_openmp=$ax_openmp_flag; break])
|
||||
done
|
||||
[]_AC_LANG_PREFIX[]FLAGS=$save[]_AC_LANG_PREFIX[]FLAGS
|
||||
])
|
||||
if test "x$ax_cv_[]_AC_LANG_ABBREV[]_openmp" = "xunknown"; then
|
||||
m4_default([$2],:)
|
||||
else
|
||||
if test "x$ax_cv_[]_AC_LANG_ABBREV[]_openmp" != "xnone"; then
|
||||
OPENMP_[]_AC_LANG_PREFIX[]FLAGS=$ax_cv_[]_AC_LANG_ABBREV[]_openmp
|
||||
fi
|
||||
m4_default([$1],:)
|
||||
fi
|
||||
])dnl AX_OPENMP
|
@ -1,179 +0,0 @@
|
||||
AC_DEFUN([ACVT_CLAPACK],
|
||||
[
|
||||
clapack_error="no"
|
||||
have_clapack="no"
|
||||
clapack_3thparty=
|
||||
|
||||
CLAPACKDIR=
|
||||
CLAPACKINCDIR=
|
||||
CLAPACKLIBDIR=
|
||||
CLAPACKLIB=
|
||||
|
||||
AC_ARG_WITH(clapack-dir,
|
||||
AC_HELP_STRING([--with-clapack-dir=LAPACKDIR], [give the path for CLAPACK, default: /usr]),
|
||||
[CLAPACKDIR="$withval/"])
|
||||
|
||||
AC_ARG_WITH(clapack-inc-dir,
|
||||
AC_HELP_STRING([--with-clapack-inc-dir=CLAPACKINCDIR],
|
||||
[give the path for CLAPACK-include files, default: CLAPACKDIR/include)]),
|
||||
[CLAPACKINCDIR="-I$withval"],
|
||||
[AS_IF([test x"$CLAPACKDIR" != x], [CLAPACKINCDIR="-I$CLAPACKDIR"include])])
|
||||
|
||||
AC_ARG_WITH(clapack-lib-dir,
|
||||
AC_HELP_STRING([--with-clapack-lib-dir=CLAPACKLIBDIR],
|
||||
[give the path for CLAPACK-libraries, default: CLAPACKDIR/lib]),
|
||||
[CLAPACKLIBDIR="-L$withval"],
|
||||
[AS_IF([test x"$CLAPACKDIR" != x], [CLAPACKLIBDIR="-L$CLAPACKDIR"lib])])
|
||||
|
||||
AC_ARG_WITH(clapack-mkl,
|
||||
AC_HELP_STRING([--with-clapack-mkl], [set CLAPACK-lib for MKL]),
|
||||
[
|
||||
AS_IF([test x"$withval" = "xyes"],
|
||||
[
|
||||
CLAPACKLIB="-lmkl -lmkl_lapack"
|
||||
clapack_3thparty="mkl"
|
||||
])
|
||||
])
|
||||
|
||||
AC_ARG_WITH(clapack-acml,
|
||||
AC_HELP_STRING([--with-clapack-acml], [set CLAPACK-lib for ACML]),
|
||||
[
|
||||
AS_IF([test x"$withval" = "xyes"],
|
||||
[
|
||||
CLAPACKLIB="-lacml"
|
||||
clapack_3thparty="acml"
|
||||
])
|
||||
])
|
||||
|
||||
AC_ARG_WITH(clapack-essl,
|
||||
AC_HELP_STRING([--with-clapack-essl], [set CLAPACK-lib for ESSL]),
|
||||
[
|
||||
AS_IF([test x"$withval" = "xyes"],
|
||||
[
|
||||
CLAPACKLIB="-lessl"
|
||||
clapack_3thparty="essl"
|
||||
])
|
||||
])
|
||||
|
||||
AC_ARG_WITH(clapack-sunperf,
|
||||
AC_HELP_STRING([--with-clapack-sunperf], [set CLAPACK-lib for Sun Performace Library]),
|
||||
[
|
||||
AS_IF([test x"$withval" = "xyes"],
|
||||
[
|
||||
CLAPACKLIB="-lsunperf -lfsu -lfui"
|
||||
clapack_3thparty="sunperf"
|
||||
])
|
||||
])
|
||||
|
||||
AC_ARG_WITH(clapack-lib,
|
||||
AC_HELP_STRING([--with-clapack-lib=CLAPACKLIB], [use given clapack lib, default: -lclapack -lcblas -lf2c]),
|
||||
[CLAPACKLIB="$withval"])
|
||||
|
||||
sav_CPPFLAGS=$CPPFLAGS
|
||||
sav_CFLAGS=$CFLAGS
|
||||
CPPFLAGS="$CPPFLAGS $CLAPACKINCDIR"
|
||||
CFLAGS="$CFLAGS $CLAPACKINCDIR"
|
||||
|
||||
AS_IF([test x"$clapack_3thparty" = "xmkl"],
|
||||
[
|
||||
AC_CHECK_HEADER([mkl.h],
|
||||
[AC_DEFINE([HAVE_MKL], [1], [Define to 1 if you have the MKL.])],
|
||||
[
|
||||
AC_MSG_NOTICE([error: no mkl.h found; check path for MKL package first...])
|
||||
clapack_error="yes"
|
||||
])
|
||||
])
|
||||
AS_IF([test x"$clapack_3thparty" = "xacml"],
|
||||
[
|
||||
AC_CHECK_HEADER([acml.h],
|
||||
[AC_DEFINE([HAVE_ACML], [1], [Define to 1 if you have the ACML.])],
|
||||
[
|
||||
AC_MSG_NOTICE([error: no acml.h found; check path for ACML package first...])
|
||||
clapack_error="yes"
|
||||
])
|
||||
])
|
||||
AS_IF([test x"$clapack_3thparty" = "xessl"],
|
||||
[
|
||||
AC_CHECK_HEADER([essl.h],
|
||||
[AC_DEFINE([HAVE_ESSL], [1], [Define to 1 if you have the ESSL.])],
|
||||
[
|
||||
AC_MSG_NOTICE([error: no essl.h found; check path for ESSL package first...])
|
||||
clapack_error="yes"
|
||||
])
|
||||
])
|
||||
AS_IF([test x"$clapack_3thparty" = "xsunperf"],
|
||||
[
|
||||
AC_CHECK_HEADER([sunperf.h],
|
||||
[AC_DEFINE([HAVE_SUNPERF], [1], [Define to 1 if you have the SUN Performance Library.])],
|
||||
[
|
||||
AC_MSG_NOTICE([error: no sunperf.h found; check path for SUNPERF package first...])
|
||||
clapack_error="yes"
|
||||
])
|
||||
])
|
||||
AS_IF([test x"$clapack_3thparty" = x],
|
||||
[
|
||||
AC_CHECK_HEADER([f2c.h], [],
|
||||
[
|
||||
AC_MSG_NOTICE([error: no f2c.h found; check path for CLAPACK package first...])
|
||||
clapack_error="yes"
|
||||
])
|
||||
|
||||
AS_IF([test x"$clapack_error" = "xno"],
|
||||
[
|
||||
AC_MSG_CHECKING([for clapack.h])
|
||||
AC_TRY_COMPILE(
|
||||
[
|
||||
#include "f2c.h"
|
||||
#include "clapack.h"
|
||||
], [],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[
|
||||
AC_MSG_RESULT([no])
|
||||
AC_MSG_NOTICE([error: no clapack.h found; check path for CLAPACK package first...])
|
||||
clapack_error="yes"
|
||||
])
|
||||
])
|
||||
|
||||
AS_IF([test x"$clapack_error" = "xno"],
|
||||
[
|
||||
AC_MSG_CHECKING([for blaswrap.h])
|
||||
AC_TRY_COMPILE(
|
||||
[
|
||||
#include "f2c.h"
|
||||
#include "blaswrap.h"
|
||||
], [],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[
|
||||
AC_MSG_RESULT([no])
|
||||
AC_MSG_NOTICE([error: no blaswrap.h found; check path for CLAPACK package first...])
|
||||
clapack_error="yes"
|
||||
])
|
||||
])
|
||||
])
|
||||
|
||||
CPPFLAGS=$sav_CPPFLAGS
|
||||
CFLAGS=$sav_CFLAGS
|
||||
|
||||
AS_IF([test x"$CLAPACKLIB" = x -a x"$clapack_error" = "xno"],
|
||||
[
|
||||
sav_LIBS=$LIBS
|
||||
LIBS="$LIBS $CLAPACKLIBDIR -lclapack -lcblas -lf2c"
|
||||
AC_MSG_CHECKING([whether linking with -lclapack -lcblas -lf2c works])
|
||||
AC_TRY_LINK([],[],
|
||||
[AC_MSG_RESULT([yes]); CLAPACKLIB="-lclapack -lcblas -lf2c"], [AC_MSG_RESULT([no])])
|
||||
LIBS=$sav_LIBS
|
||||
])
|
||||
|
||||
AS_IF([test x"$CLAPACKLIB" = x -a x"$clapack_error" = "xno"],
|
||||
[
|
||||
AC_MSG_NOTICE([error: either libclapack, libcblas or libf2x not found; check path for CLAPACK package first...])
|
||||
clapack_error="yes"
|
||||
])
|
||||
|
||||
AS_IF([test x"$clapack_error" = "xno"], [have_clapack="yes"])
|
||||
|
||||
AC_SUBST(CLAPACKINCDIR)
|
||||
AC_SUBST(CLAPACKLIBDIR)
|
||||
AC_SUBST(CLAPACKLIB)
|
||||
])
|
||||
|
@ -1,284 +0,0 @@
|
||||
AC_DEFUN([ACVT_COMPINST],
|
||||
[
|
||||
compinst_error="no"
|
||||
check_compinst="yes"
|
||||
force_compinst="no"
|
||||
have_compinst="no"
|
||||
|
||||
compinst_type=
|
||||
compinst_cflags=
|
||||
compinst_cxxflags=
|
||||
compinst_fcflags=
|
||||
|
||||
compinst_gnu_cflags="-g -finstrument-functions"
|
||||
compinst_gnu_cxxflags="$compinst_gnu_cflags"
|
||||
compinst_gnu_fcflags="$compinst_gnu_cflags"
|
||||
|
||||
compinst_pgi_cflags="-Mprof=func"
|
||||
compinst_pgi_cxxflags="$compinst_pgi_cflags"
|
||||
compinst_pgi_fcflags="$compinst_pgi_cflags"
|
||||
|
||||
compinst_pgi9_cflags="-Minstrument=functions"
|
||||
compinst_pgi9_cxxflags="$compinst_pgi9_cflags"
|
||||
compinst_pgi9_fcflags="$compinst_pgi9_cflags"
|
||||
|
||||
compinst_craycce_cflags="-hfunc_trace"
|
||||
compinst_craycce_cxxflags="$compinst_craycce_cflags"
|
||||
compinst_craycce_fcflags="$compinst_craycce_cflags"
|
||||
|
||||
compinst_sun_cflags=""
|
||||
compinst_sun_cxxflags=""
|
||||
compinst_sun_fcflags="-O -Qoption f90comp -phat"
|
||||
|
||||
compinst_xl_cflags="-qdebug=function_trace"
|
||||
compinst_xl_cxxflags="$compinst_xl_cflags"
|
||||
compinst_xl_fcflags="$compinst_xl_cflags"
|
||||
|
||||
compinst_necsx_cflags="-ftrace"
|
||||
compinst_necsx_cxxflags="$compinst_necsx_cflags"
|
||||
compinst_necsx_fcflags="$compinst_necsx_cflags"
|
||||
|
||||
compinst_openuh_cflags="-fb_create inst -fb_type=1 -fb_phase=0 -epilog -OPT:instr_proc"
|
||||
compinst_openuh_cxxflags="$compinst_openuh_cflags"
|
||||
compinst_openuh_fcflags="$compinst_openuh_cflags"
|
||||
|
||||
AC_REQUIRE([ACVT_PLATFORM])
|
||||
|
||||
AC_ARG_ENABLE(compinst,
|
||||
AC_HELP_STRING([--enable-compinst=TYPE],
|
||||
[enable support for compiler instrumentation (gnu,intel,pathscale,pgi,pgi9,craycce,xl,necsx,open64,openuh), default: automatically by configure]),
|
||||
[AS_IF([test x"$enableval" = "xno"], [check_compinst="no"], [enable_compinst="$enableval"])])
|
||||
|
||||
AS_IF([test x"$check_compinst" = "xyes"],
|
||||
[
|
||||
AC_MSG_CHECKING([for compiler instrumentation])
|
||||
|
||||
AS_IF([test x"$enable_compinst" != x], [force_compinst="yes"])
|
||||
AS_IF([test x"$enable_compinst" = "xyes"], [enable_compinst=""])
|
||||
|
||||
AS_IF([test x"$enable_compinst" != x],
|
||||
[
|
||||
AC_MSG_RESULT([skipped (--enable-compinst=$enable_compinst)])
|
||||
|
||||
case $enable_compinst in
|
||||
gnu | intel | pathscale | open64)
|
||||
compinst_type="gnu"
|
||||
;;
|
||||
pgi)
|
||||
compinst_type="pgi"
|
||||
;;
|
||||
pgi9)
|
||||
compinst_type="pgi9"
|
||||
;;
|
||||
craycce)
|
||||
compinst_type="craycce"
|
||||
;;
|
||||
sun)
|
||||
compinst_type="sun"
|
||||
;;
|
||||
xl)
|
||||
compinst_type="xl"
|
||||
;;
|
||||
necsx)
|
||||
compinst_type="necsx"
|
||||
;;
|
||||
openuh)
|
||||
compinst_type="openuh"
|
||||
;;
|
||||
*) AC_MSG_ERROR([unknown compiler instrumentation '$enable_compinst'])
|
||||
;;
|
||||
esac
|
||||
],
|
||||
[
|
||||
base_CC=`basename $CC`
|
||||
case $base_CC in
|
||||
gcc* | scgcc* | ppu-gcc*)
|
||||
compinst_type="gnu"
|
||||
AC_MSG_RESULT([gnu])
|
||||
;;
|
||||
icc*)
|
||||
compver=`$CC -dumpversion`
|
||||
compver_major=`echo $compver | cut -d '.' -f 1`
|
||||
AS_IF([test $compver_major -ge 10],
|
||||
[
|
||||
compinst_type="gnu"
|
||||
AC_MSG_RESULT([gnu (intel)])
|
||||
])
|
||||
;;
|
||||
pathcc*)
|
||||
compver=`$CC -dumpversion`
|
||||
compver_major=`echo $compver | cut -d '.' -f 1`
|
||||
compver_minor=`echo $compver | cut -d '.' -f 2`
|
||||
AS_IF([test $compver_major -gt 3], [compinst_type="gnu"])
|
||||
AS_IF([test x"$compinst_type" = x -a $compver_major -eq 3 -a $compver_minor -ge 1], [compinst_type="gnu"])
|
||||
AS_IF([test x"$compinst_type" != x],
|
||||
[
|
||||
AC_MSG_RESULT([gnu (pathscale)])
|
||||
])
|
||||
;;
|
||||
scpathcc*)
|
||||
compinst_type="gnu"
|
||||
AC_MSG_RESULT([gnu (pathscale)])
|
||||
;;
|
||||
pgcc*)
|
||||
sav_CFLAGS=$CFLAGS
|
||||
CFLAGS="$CFLAGS $compinst_pgi9_cflags"
|
||||
AC_TRY_COMPILE([], [],
|
||||
[
|
||||
compinst_type="pgi9"
|
||||
AC_MSG_RESULT([pgi9])
|
||||
],
|
||||
[
|
||||
compinst_type="pgi"
|
||||
AC_MSG_RESULT([pgi])
|
||||
])
|
||||
CFLAGS=$sav_CFLAGS
|
||||
;;
|
||||
craycc*)
|
||||
compinst_type="craycce"
|
||||
AC_MSG_RESULT([craycce])
|
||||
;;
|
||||
xlc* | blrts_xlc* | bgxlc*)
|
||||
compinst_type="xl"
|
||||
AC_MSG_RESULT([xl])
|
||||
;;
|
||||
suncc*)
|
||||
compinst_type="sun"
|
||||
AC_MSG_RESULT([sun])
|
||||
;;
|
||||
cc*)
|
||||
AS_IF([test "$PLATFORM" = "crayxt" -o "$PLATFORM" = "crayxe"],
|
||||
[
|
||||
for f in -V --version; do
|
||||
case `$CC $f 2>&1` in
|
||||
*pgcc\ [[1-8]].*)
|
||||
compinst_type="pgi"
|
||||
AC_MSG_RESULT([pgi])
|
||||
;;
|
||||
*pgcc\ *)
|
||||
compinst_type="pgi9"
|
||||
AC_MSG_RESULT([pgi9])
|
||||
;;
|
||||
*PathScale*)
|
||||
compinst_type="gnu"
|
||||
AC_MSG_RESULT([gnu (pathscale)])
|
||||
;;
|
||||
*Intel*)
|
||||
compinst_type="gnu"
|
||||
AC_MSG_RESULT([gnu (intel)])
|
||||
;;
|
||||
*gcc\ *)
|
||||
compinst_type="gnu"
|
||||
AC_MSG_RESULT([gnu])
|
||||
;;
|
||||
*Cray*)
|
||||
compinst_type="craycce"
|
||||
AC_MSG_RESULT([craycce])
|
||||
;;
|
||||
esac
|
||||
AS_IF([test x"$compinst_type" != x], [break])
|
||||
done
|
||||
],
|
||||
[
|
||||
compver=`$CC -V 2>&1 | grep "Sun C"`
|
||||
AS_IF([test "$?" = "0"],
|
||||
[
|
||||
compinst_type="sun"
|
||||
AC_MSG_RESULT([sun])
|
||||
])
|
||||
])
|
||||
;;
|
||||
opencc*)
|
||||
compver=`$CC -dumpversion | head -n1 2>&1`
|
||||
compver_major=`echo $compver | cut -d '.' -f 1`
|
||||
compver_minor=`echo $compver | cut -d '.' -f 2`
|
||||
AS_IF([test $compver_major -gt 4], [compinst_type="gnu"])
|
||||
AS_IF([test x"$compinst_type" = x -a $compver_major -eq 4 -a $compver_minor -ge 2], [compinst_type="gnu"])
|
||||
AS_IF([test x"$compinst_type" != x],
|
||||
[
|
||||
AC_MSG_RESULT([gnu (open64)])
|
||||
])
|
||||
;;
|
||||
uhcc*)
|
||||
compver=`$CC -dumpversion | head -n1 2>&1`
|
||||
compver_major=`echo $compver | cut -d '.' -f 1`
|
||||
AS_IF([test $compver_major -ge 4],
|
||||
[
|
||||
compinst_type="openuh"
|
||||
AC_MSG_RESULT([openuh])
|
||||
])
|
||||
;;
|
||||
sxcc*)
|
||||
compinst_type="necsx"
|
||||
AC_MSG_RESULT([necsx])
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
AS_IF([test x"$compinst_type" = x],
|
||||
[
|
||||
AC_MSG_RESULT([unknown])
|
||||
AC_MSG_NOTICE([error: the compiler '$base_CC' doesn't support instrumentation])
|
||||
compinst_error="yes"
|
||||
])
|
||||
])
|
||||
|
||||
AS_IF([test x"$compinst_error" = "xno"],
|
||||
[
|
||||
AS_IF([test x"$compinst_type" = "xgnu" -o x"$compinst_type" = "xpgi9" -o x"$compinst_type" = "xcraycce"],
|
||||
[
|
||||
ACVT_DL
|
||||
])
|
||||
])
|
||||
|
||||
AS_IF([test x"$compinst_error" = "xno" -a x"$compinst_type" != x],
|
||||
[
|
||||
have_compinst="yes"
|
||||
|
||||
case $compinst_type in
|
||||
gnu)
|
||||
compinst_cflags=$compinst_gnu_cflags
|
||||
compinst_cxxflags=$compinst_gnu_cxxflags
|
||||
compinst_fcflags=$compinst_gnu_fcflags
|
||||
;;
|
||||
pgi)
|
||||
compinst_cflags=$compinst_pgi_cflags
|
||||
compinst_cxxflags=$compinst_pgi_cxxflags
|
||||
compinst_fcflags=$compinst_pgi_fcflags
|
||||
;;
|
||||
pgi9)
|
||||
compinst_cflags=$compinst_pgi9_cflags
|
||||
compinst_cxxflags=$compinst_pgi9_cxxflags
|
||||
compinst_fcflags=$compinst_pgi9_fcflags
|
||||
;;
|
||||
craycce)
|
||||
compinst_cflags=$compinst_craycce_cflags
|
||||
compinst_cxxflags=$compinst_craycce_cxxflags
|
||||
compinst_fcflags=$compinst_craycce_fcflags
|
||||
;;
|
||||
sun)
|
||||
compinst_cflags=$compinst_sun_cflags
|
||||
compinst_cxxflags=$compinst_sun_cxxflags
|
||||
compinst_fcflags=$compinst_sun_fcflags
|
||||
;;
|
||||
xl)
|
||||
compinst_cflags=$compinst_xl_cflags
|
||||
compinst_cxxflags=$compinst_xl_cxxflags
|
||||
compinst_fcflags=$compinst_xl_fcflags
|
||||
;;
|
||||
necsx)
|
||||
compinst_cflags=$compinst_necsx_cflags
|
||||
compinst_cxxflags=$compinst_necsx_cxxflags
|
||||
compinst_fcflags=$compinst_necsx_fcflags
|
||||
;;
|
||||
openuh)
|
||||
compinst_cflags=$compinst_openuh_cflags
|
||||
compinst_cxxflags=$compinst_openuh_cxxflags
|
||||
compinst_fcflags=$compinst_openuh_fcflags
|
||||
;;
|
||||
esac
|
||||
])
|
||||
])
|
||||
])
|
||||
|
@ -1,431 +0,0 @@
|
||||
AC_DEFUN([ACVT_COMPWRAP],
|
||||
[
|
||||
VT_WRAPPER_CC_COMPILER=$CC
|
||||
VT_WRAPPER_CC_EXTRA_COMPILER_FLAGS=
|
||||
VT_WRAPPER_CC_EXTRA_LINKER_FLAGS=
|
||||
VT_WRAPPER_CC_EXTRA_LIBS=
|
||||
VT_WRAPPER_CC_CPP=$CPP
|
||||
VT_WRAPPER_CC_EXTRA_CPPFLAGS=
|
||||
VT_WRAPPER_CC_DYNINST_COMPILER_FLAGS=
|
||||
VT_WRAPPER_CC_TAUINST_OPTS=
|
||||
VT_WRAPPER_CC_TAUINST_PARSE_BIN=
|
||||
VT_WRAPPER_CC_TAUINST_PARSE_OPTS=
|
||||
VT_WRAPPER_CC_COMPINST_COMPILER_FLAGS=
|
||||
VT_WRAPPER_CC_DEFAULT_PARTYPE="seq"
|
||||
|
||||
VT_WRAPPER_CXX_COMPILER=$CXX
|
||||
VT_WRAPPER_CXX_EXTRA_COMPILER_FLAGS=
|
||||
VT_WRAPPER_CXX_EXTRA_LINKER_FLAGS=
|
||||
VT_WRAPPER_CXX_EXTRA_LIBS=
|
||||
VT_WRAPPER_CXX_CPP=$CXXCPP
|
||||
VT_WRAPPER_CXX_EXTRA_CPPFLAGS=
|
||||
VT_WRAPPER_CXX_DYNINST_COMPILER_FLAGS=
|
||||
VT_WRAPPER_CXX_TAUINST_OPTS=
|
||||
VT_WRAPPER_CXX_TAUINST_PARSE_BIN=
|
||||
VT_WRAPPER_CXX_TAUINST_PARSE_OPTS=
|
||||
VT_WRAPPER_CXX_COMPINST_COMPILER_FLAGS=
|
||||
VT_WRAPPER_CXX_DEFAULT_PARTYPE="seq"
|
||||
|
||||
VT_WRAPPER_FC_COMPILER=$FC
|
||||
VT_WRAPPER_FC_EXTRA_COMPILER_FLAGS=
|
||||
VT_WRAPPER_FC_EXTRA_LINKER_FLAGS=
|
||||
VT_WRAPPER_FC_EXTRA_LIBS=
|
||||
VT_WRAPPER_FC_CPP=$CPP
|
||||
VT_WRAPPER_FC_EXTRA_CPPFLAGS=
|
||||
VT_WRAPPER_FC_DYNINST_COMPILER_FLAGS=
|
||||
VT_WRAPPER_FC_TAUINST_OPTS=
|
||||
VT_WRAPPER_FC_TAUINST_PARSE_BIN=
|
||||
VT_WRAPPER_FC_TAUINST_PARSE_OPTS=
|
||||
VT_WRAPPER_FC_COMPINST_COMPILER_FLAGS=
|
||||
VT_WRAPPER_FC_DEFAULT_PARTYPE="seq"
|
||||
|
||||
VT_WRAPPER_NVCC_COMPILER=$NVCC
|
||||
VT_WRAPPER_NVCC_EXTRA_COMPILER_FLAGS=
|
||||
VT_WRAPPER_NVCC_EXTRA_LINKER_FLAGS=
|
||||
VT_WRAPPER_NVCC_EXTRA_LIBS=
|
||||
VT_WRAPPER_NVCC_CPP=$CPP
|
||||
VT_WRAPPER_NVCC_EXTRA_CPPFLAGS=
|
||||
VT_WRAPPER_NVCC_DYNINST_COMPILER_FLAGS=
|
||||
VT_WRAPPER_NVCC_TAUINST_OPTS=
|
||||
VT_WRAPPER_NVCC_TAUINST_PARSE_BIN=
|
||||
VT_WRAPPER_NVCC_TAUINST_PARSE_OPTS=
|
||||
VT_WRAPPER_NVCC_COMPINST_COMPILER_FLAGS=
|
||||
VT_WRAPPER_NVCC_AVAIL_INST="manual"
|
||||
VT_WRAPPER_NVCC_DEFAULT_INST="manual"
|
||||
VT_WRAPPER_NVCC_DEFAULT_PARTYPE="seq"
|
||||
|
||||
VT_WRAPPER_VTLIB="-lvt"
|
||||
VT_WRAPPER_VTMPILIB="-lvt-mpi"
|
||||
VT_WRAPPER_VTMTLIB="-lvt-mt"
|
||||
VT_WRAPPER_VTHYBLIB="-lvt-hyb"
|
||||
VT_WRAPPER_OPARI_BIN=
|
||||
VT_WRAPPER_OPARI_OPTS=
|
||||
VT_WRAPPER_OPARI_TAB_COMPILER=
|
||||
VT_WRAPPER_OPARI_TAB_COMPILER_FLAGS=
|
||||
VT_WRAPPER_TAUINST_BIN=
|
||||
VT_WRAPPER_AVAIL_INST="manual"
|
||||
VT_WRAPPER_DEFAULT_INST="manual"
|
||||
|
||||
AC_REQUIRE([ACVT_PLATFORM])
|
||||
AC_REQUIRE([ACVT_COMPINST])
|
||||
AC_REQUIRE([ACVT_DYNINST])
|
||||
AC_REQUIRE([ACVT_THREADS])
|
||||
|
||||
AC_ARG_WITH(wrapper-cc-compiler,
|
||||
AC_HELP_STRING([--with-wrapper-cc-compiler=WRAPPERCC],
|
||||
[underlying C compiler command for vtcc, default: CC]),
|
||||
[VT_WRAPPER_CC_COMPILER=$withval])
|
||||
|
||||
AC_ARG_WITH(wrapper-cc-compiler-flags,
|
||||
AC_HELP_STRING([--with-wrapper-cc-compiler-flags=WRAPPERCCCFLAGS],
|
||||
[extra compiler flags to add when using vtcc]),
|
||||
[VT_WRAPPER_CC_EXTRA_COMPILER_FLAGS=$withval])
|
||||
|
||||
AC_ARG_WITH(wrapper-cc-linker-flags,
|
||||
AC_HELP_STRING([--with-wrapper-cc-linker-flags=WRAPPERCCLDFLAGS],
|
||||
[extra linker flags to add when using vtcc]),
|
||||
[VT_WRAPPER_CC_EXTRA_LINKER_FLAGS=$withval])
|
||||
|
||||
AC_ARG_WITH(wrapper-cc-libs,
|
||||
AC_HELP_STRING([--with-wrapper-cc-libs=WRAPPERCCLIBS],
|
||||
[extra libraries to link when using vtcc]),
|
||||
[VT_WRAPPER_CC_EXTRA_LIBS=$withval])
|
||||
|
||||
AC_ARG_WITH(wrapper-cc-cpp,
|
||||
AC_HELP_STRING([--with-wrapper-cc-cpp=WRAPPERCCCPP],
|
||||
[C preprocessor command for vtcc, default: CPP]),
|
||||
[VT_WRAPPER_CC_CPP=$withval])
|
||||
|
||||
AC_ARG_WITH(wrapper-cc-cppflags,
|
||||
AC_HELP_STRING([--with-wrapper-cc-cppflags=WRAPPERCCCPPFLAGS],
|
||||
[extra preprocessor flags to add when using vtcc -vt:preprocess]),
|
||||
[VT_WRAPPER_CC_EXTRA_CPPFLAGS=$withval])
|
||||
|
||||
|
||||
AC_ARG_WITH(wrapper-cc-default-partype,
|
||||
AC_HELP_STRING([--with-wrapper-cc-default-partype=TYPE],
|
||||
[default parallelization type for vtcc (seq,mt,mpi,hyb), default: $VT_WRAPPER_CC_DEFAULT_PARTYPE]),
|
||||
[
|
||||
case $withval in
|
||||
seq | mt | mpi | hyb)
|
||||
VT_WRAPPER_CC_DEFAULT_PARTYPE=$withval
|
||||
;;
|
||||
*)
|
||||
AC_MSG_ERROR([value of '--with-wrapper-cc-default-partype' not properly set])
|
||||
;;
|
||||
esac
|
||||
])
|
||||
|
||||
AC_ARG_WITH(wrapper-cxx-compiler,
|
||||
AC_HELP_STRING([--with-wrapper-cxx-compiler=WRAPPERCXX],
|
||||
[underlying C++ compiler command for vtcxx, default: CXX]),
|
||||
[VT_WRAPPER_CXX_COMPILER=$withval])
|
||||
|
||||
AC_ARG_WITH(wrapper-cxx-compiler-flags,
|
||||
AC_HELP_STRING([--with-wrapper-cxx-compiler-flags=WRAPPERCXXCFLAGS],
|
||||
[extra compiler flags to add when using vtcxx]),
|
||||
[VT_WRAPPER_CXX_EXTRA_COMPILER_FLAGS=$withval])
|
||||
|
||||
AC_ARG_WITH(wrapper-cxx-linker-flags,
|
||||
AC_HELP_STRING([--with-wrapper-cxx-linker-flags=WRAPPERCXXLDFLAGS],
|
||||
[extra linker flags to add when using vtcxx]),
|
||||
[VT_WRAPPER_CXX_EXTRA_LINKER_FLAGS=$withval])
|
||||
|
||||
AC_ARG_WITH(wrapper-cxx-libs,
|
||||
AC_HELP_STRING([--with-wrapper-cxx-libs=WRAPPERCXXLIBS],
|
||||
[extra libraries to link when using vtcxx]),
|
||||
[VT_WRAPPER_CXX_EXTRA_LIBS=$withval])
|
||||
|
||||
AC_ARG_WITH(wrapper-cxx-cpp,
|
||||
AC_HELP_STRING([--with-wrapper-cxx-cpp=WRAPPERCXXCPP],
|
||||
[C++ preprocessor command for vtcxx, default: CXXCPP]),
|
||||
[VT_WRAPPER_CXX_CPP=$withval])
|
||||
|
||||
AC_ARG_WITH(wrapper-cxx-cppflags,
|
||||
AC_HELP_STRING([--with-wrapper-cxx-cppflags=WRAPPERCXXCPPFLAGS],
|
||||
[extra preprocessor flags to add when using vtcxx -vt:preprocess]),
|
||||
[VT_WRAPPER_CXX_EXTRA_CPPFLAGS=$withval])
|
||||
|
||||
AC_ARG_WITH(wrapper-cxx-default-partype,
|
||||
AC_HELP_STRING([--with-wrapper-cxx-default-partype=TYPE],
|
||||
[default parallelization type for vtcxx (seq,mt,mpi,hyb), default: $VT_WRAPPER_CXX_DEFAULT_PARTYPE]),
|
||||
[
|
||||
case $withval in
|
||||
seq | mt | mpi | hyb)
|
||||
VT_WRAPPER_CXX_DEFAULT_PARTYPE=$withval
|
||||
;;
|
||||
*)
|
||||
AC_MSG_ERROR([value of '--with-wrapper-cxx-default-partype' not properly set])
|
||||
;;
|
||||
esac
|
||||
])
|
||||
|
||||
AC_ARG_WITH(wrapper-fc-compiler,
|
||||
AC_HELP_STRING([--with-wrapper-fc-compiler=WRAPPERFC],
|
||||
[underlying Fortran compiler command for vtfort, default: FC]),
|
||||
[VT_WRAPPER_FC_COMPILER=$withval])
|
||||
|
||||
AC_ARG_WITH(wrapper-fc-compiler-flags,
|
||||
AC_HELP_STRING([--with-wrapper-fc-compiler-flags=WRAPPERFCCFLAGS],
|
||||
[extra compiler flags to add when using vtfort]),
|
||||
[VT_WRAPPER_FC_EXTRA_COMPILER_FLAGS=$withval])
|
||||
|
||||
AC_ARG_WITH(wrapper-fc-linker-flags,
|
||||
AC_HELP_STRING([--with-wrapper-fc-linker-flags=WRAPPERFCLDFLAGS],
|
||||
[extra linker flags to add when using vtfort]),
|
||||
[VT_WRAPPER_FC_EXTRA_LINKER_FLAGS=$withval])
|
||||
|
||||
AC_ARG_WITH(wrapper-fc-libs,
|
||||
AC_HELP_STRING([--with-wrapper-fc-libs=WRAPPERFCLIBS],
|
||||
[extra libraries to link when using vtfort]),
|
||||
[VT_WRAPPER_FC_EXTRA_LIBS=$withval])
|
||||
|
||||
AC_ARG_WITH(wrapper-fc-cpp,
|
||||
AC_HELP_STRING([--with-wrapper-fc-cpp=WRAPPERFCCPP],
|
||||
[C preprocessor command for vtfort, default: CPP]),
|
||||
[VT_WRAPPER_FC_CPP=$withval])
|
||||
|
||||
AC_ARG_WITH(wrapper-fc-cppflags,
|
||||
AC_HELP_STRING([--with-wrapper-fc-cppflags=WRAPPERFCCPPFLAGS],
|
||||
[extra preprocessor flags to add when using vtfort -vt:preprocess]),
|
||||
[VT_WRAPPER_fC_EXTRA_CPPFLAGS=$withval])
|
||||
|
||||
AC_ARG_WITH(wrapper-fc-default-partype,
|
||||
AC_HELP_STRING([--with-wrapper-fc-default-partype=TYPE],
|
||||
[default parallelization type for vtfort (seq,mt,mpi,hyb), default: $VT_WRAPPER_FC_DEFAULT_PARTYPE]),
|
||||
[
|
||||
case $withval in
|
||||
seq | mt | mpi | hyb)
|
||||
VT_WRAPPER_FC_DEFAULT_PARTYPE=$withval
|
||||
;;
|
||||
*)
|
||||
AC_MSG_ERROR([value of '--with-wrapper-fc-default-partype' not properly set])
|
||||
;;
|
||||
esac
|
||||
])
|
||||
|
||||
AC_ARG_WITH(wrapper-nvcc-compiler,
|
||||
AC_HELP_STRING([--with-wrapper-nvcc-compiler=WRAPPERNVCC],
|
||||
[underlying NVIDIA CUDA compiler command for vtnvcc, default: NVCC]),
|
||||
[VT_WRAPPER_NVCC_COMPILER=$withval])
|
||||
|
||||
AC_ARG_WITH(wrapper-nvcc-compiler-flags,
|
||||
AC_HELP_STRING([--with-wrapper-nvcc-compiler-flags=WRAPPERNVCCCFLAGS],
|
||||
[extra compiler flags to add when using vtnvcc]),
|
||||
[VT_WRAPPER_NVCC_EXTRA_COMPILER_FLAGS=$withval])
|
||||
|
||||
AC_ARG_WITH(wrapper-nvcc-linker-flags,
|
||||
AC_HELP_STRING([--with-wrapper-nvcc-linker-flags=WRAPPERNVCCLDFLAGS],
|
||||
[extra linker flags to add when using vtnvcc]),
|
||||
[VT_WRAPPER_NVCC_EXTRA_LINKER_FLAGS=$withval])
|
||||
|
||||
AC_ARG_WITH(wrapper-nvcc-libs,
|
||||
AC_HELP_STRING([--with-wrapper-nvcc-libs=WRAPPERNVCCLIBS],
|
||||
[extra libraries to link when using vtnvcc]),
|
||||
[VT_WRAPPER_NVCC_EXTRA_LIBS=$withval])
|
||||
|
||||
AC_ARG_WITH(wrapper-nvcc-cpp,
|
||||
AC_HELP_STRING([--with-wrapper-nvcc-cpp=WRAPPERNVCCCPP],
|
||||
[C preprocessor command for vtnvcc, default: CPP]),
|
||||
[VT_WRAPPER_NVCC_CPP=$withval])
|
||||
|
||||
AC_ARG_WITH(wrapper-nvcc-cppflags,
|
||||
AC_HELP_STRING([--with-wrapper-nvcc-cppflags=WRAPPERNVCCCPPFLAGS],
|
||||
[extra preprocessor flags to add when using vtnvcc -vt:preprocess]),
|
||||
[VT_WRAPPER_NVCC_EXTRA_CPPFLAGS=$withval])
|
||||
|
||||
AC_ARG_WITH(wrapper-nvcc-default-partype,
|
||||
AC_HELP_STRING([--with-wrapper-nvcc-default-partype=TYPE],
|
||||
[default parallelization type for vtnvcc (seq,mt,mpi,hyb), default: $VT_WRAPPER_NVCC_DEFAULT_PARTYPE]),
|
||||
[
|
||||
case $withval in
|
||||
seq | mt | mpi | hyb)
|
||||
VT_WRAPPER_NVCC_DEFAULT_PARTYPE=$withval
|
||||
;;
|
||||
*)
|
||||
AC_MSG_ERROR([value of '--with-wrapper-nvcc-default-partype' not properly set])
|
||||
;;
|
||||
esac
|
||||
])
|
||||
|
||||
AS_IF([test "$PLATFORM" = "macos"],
|
||||
[
|
||||
VT_WRAPPER_CC_EXTRA_LINKER_FLAGS="$VT_WRAPPER_CC_EXTRA_LINKER_FLAGS -Wl,-force_flat_namespace"
|
||||
VT_WRAPPER_CXX_EXTRA_LINKER_FLAGS="$VT_WRAPPER_CXX_EXTRA_LINKER_FLAGS -Wl,-force_flat_namespace"
|
||||
VT_WRAPPER_FC_EXTRA_LINKER_FLAGS="$VT_WRAPPER_FC_EXTRA_LINKER_FLAGS -Wl,-force_flat_namespace"
|
||||
VT_WRAPPER_NVCC_EXTRA_LINKER_FLAGS="$VT_WRAPPER_NVCC_EXTRA_LINKER_FLAGS -Wl,-force_flat_namespace"
|
||||
])
|
||||
|
||||
AS_IF([test x"$enable_shared" = "xyes"],
|
||||
[
|
||||
case $PLATFORM in
|
||||
bgp | bgq)
|
||||
VT_WRAPPER_CC_EXTRA_LINKER_FLAGS="$VT_WRAPPER_CC_EXTRA_LINKER_FLAGS -Wl,-dy"
|
||||
VT_WRAPPER_CXX_EXTRA_LINKER_FLAGS="$VT_WRAPPER_CXX_EXTRA_LINKER_FLAGS -Wl,-dy"
|
||||
VT_WRAPPER_FC_EXTRA_LINKER_FLAGS="$VT_WRAPPER_FC_EXTRA_LINKER_FLAGS -Wl,-dy"
|
||||
VT_WRAPPER_NVCC_EXTRA_LINKER_FLAGS="$VT_WRAPPER_NVCC_EXTRA_LINKER_FLAGS -Wl,-dy"
|
||||
;;
|
||||
esac
|
||||
])
|
||||
|
||||
AS_IF([test x"$compinst_type" = "xpgi9" -o x"$compinst_type" = "xcraycce"],
|
||||
[
|
||||
VT_WRAPPER_VTLIB="-Wl,--whole-archive $VT_WRAPPER_VTLIB -Wl,--no-whole-archive"
|
||||
VT_WRAPPER_VTMPILIB="-Wl,--whole-archive $VT_WRAPPER_VTMPILIB -Wl,--no-whole-archive"
|
||||
VT_WRAPPER_VTMTLIB="-Wl,--whole-archive $VT_WRAPPER_VTMTLIB -Wl,--no-whole-archive"
|
||||
VT_WRAPPER_VTHYBLIB="-Wl,--whole-archive $VT_WRAPPER_VTHYBLIB -Wl,--no-whole-archive"
|
||||
])
|
||||
|
||||
AS_IF([test x"$build_opari" = "xyes"],
|
||||
[
|
||||
VT_WRAPPER_OPARI_BIN="\${bindir}/opari"
|
||||
|
||||
for f in -V --version; do
|
||||
case `$CC $f 2>&1` in
|
||||
*pgcc\ [[1-8]].* | *PathScale*)
|
||||
VT_WRAPPER_OPARI_OPTS="-nodecl"
|
||||
break
|
||||
;;
|
||||
*Cray\ C*)
|
||||
VT_WRAPPER_OPARI_OPTS="-nosrc"
|
||||
break
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
VT_WRAPPER_OPARI_TAB_COMPILER="$CC"
|
||||
VT_WRAPPER_OPARI_TAB_COMPILER_FLAGS="$CFLAGS"
|
||||
])
|
||||
|
||||
AS_IF([test x"$have_compinst" = "xyes"],
|
||||
[
|
||||
VT_WRAPPER_CC_COMPINST_COMPILER_FLAGS="$compinst_cflags"
|
||||
VT_WRAPPER_CXX_COMPINST_COMPILER_FLAGS="$compinst_cxxflags"
|
||||
VT_WRAPPER_FC_COMPINST_COMPILER_FLAGS="$compinst_fcflags"
|
||||
AS_IF([test x"$compinst_type" = "xgnu"],
|
||||
[
|
||||
VT_WRAPPER_NVCC_COMPINST_COMPILER_FLAGS="$compinst_cflags"
|
||||
VT_WRAPPER_NVCC_AVAIL_INST="$VT_WRAPPER_NVCC_AVAIL_INST compinst"
|
||||
VT_WRAPPER_NVCC_DEFAULT_INST="compinst"
|
||||
])
|
||||
VT_WRAPPER_AVAIL_INST="$VT_WRAPPER_AVAIL_INST compinst"
|
||||
VT_WRAPPER_DEFAULT_INST="compinst"
|
||||
])
|
||||
|
||||
AS_IF([test x"$have_dyninst" = "xyes"],
|
||||
[
|
||||
VT_WRAPPER_CC_DYNINST_COMPILER_FLAGS="-g"
|
||||
VT_WRAPPER_CXX_DYNINST_COMPILER_FLAGS="-g"
|
||||
VT_WRAPPER_FC_DYNINST_COMPILER_FLAGS="-g"
|
||||
VT_WRAPPER_NVCC_DYNINST_COMPILER_FLAGS="-g"
|
||||
VT_WRAPPER_NVCC_AVAIL_INST="$VT_WRAPPER_NVCC_AVAIL_INST dyninst"
|
||||
VT_WRAPPER_AVAIL_INST="$VT_WRAPPER_AVAIL_INST dyninst"
|
||||
])
|
||||
|
||||
mpiincdir=
|
||||
fmpiincdir=
|
||||
|
||||
AS_IF([test x"$have_mpi" = "xyes"],
|
||||
[
|
||||
AS_IF([test x"$inside_openmpi" != "xno"],
|
||||
[mpiincdir="-I\${includedir}/.."],
|
||||
[mpiincdir="$MPIINCDIR"])
|
||||
AS_IF([test x"$have_fmpi" = "xyes"],
|
||||
[
|
||||
AS_IF([test x"$inside_openmpi" != "xno"],
|
||||
[fmpiincdir="$mpiincdir"],
|
||||
[fmpiincdir="$FMPIINCDIR"])
|
||||
])
|
||||
])
|
||||
|
||||
VT_WRAPPER_CC_EXTRA_CPPFLAGS="$VT_WRAPPER_EXTRA_CPPFLAGS $mpiincdir"
|
||||
VT_WRAPPER_CXX_EXTRA_CPPFLAGS="$VT_WRAPPER_EXTRA_CPPFLAGS $mpiincdir"
|
||||
VT_WRAPPER_FC_EXTRA_CPPFLAGS="$VT_WRAPPER_EXTRA_CPPFLAGS $fmpiincdir"
|
||||
VT_WRAPPER_NVCC_EXTRA_CPPFLAGS="$VT_WRAPPER_EXTRA_CPPFLAGS $mpiincdir"
|
||||
|
||||
AS_IF([test x"$have_tauinst" = "xyes"],
|
||||
[
|
||||
VT_WRAPPER_TAUINST_BIN="$tauinst_cmd"
|
||||
VT_WRAPPER_CC_TAUINST_OPTS="-c -spec \${datadir}/TAUINST.SPEC"
|
||||
VT_WRAPPER_CC_TAUINST_PARSE_BIN="$tauinst_cparse_cmd"
|
||||
VT_WRAPPER_CC_TAUINST_PARSE_OPTS="$mpiincdir"
|
||||
VT_WRAPPER_CXX_TAUINST_OPTS="-c++ -spec \${datadir}/TAUINST.SPEC"
|
||||
VT_WRAPPER_CXX_TAUINST_PARSE_BIN="$tauinst_cxxparse_cmd"
|
||||
VT_WRAPPER_CXX_TAUINST_PARSE_OPTS="$VT_WRAPPER_CC_TAUINST_PARSE_OPTS"
|
||||
VT_WRAPPER_FC_TAUINST_OPTS="-fortran -spec \${datadir}/TAUINST.SPEC"
|
||||
VT_WRAPPER_FC_TAUINST_PARSE_BIN="$tauinst_fparse_cmd"
|
||||
VT_WRAPPER_FC_TAUINST_PARSE_OPTS="$fmpiincdir"
|
||||
VT_WRAPPER_NVCC_TAUINST_OPTS="$VT_WRAPPER_CC_TAUINST_OPTS"
|
||||
VT_WRAPPER_NVCC_TAUINST_PARSE_BIN="$VT_WRAPPER_CC_TAUINST_PARSE_BIN"
|
||||
VT_WRAPPER_NVCC_TAUINST_PARSE_OPTS="$VT_WRAPPER_CC_TAUINST_PARSE_OPTS $CUDATKINCDIR"
|
||||
VT_WRAPPER_NVCC_AVAIL_INST="$VT_WRAPPER_NVCC_AVAIL_INST tauinst"
|
||||
VT_WRAPPER_AVAIL_INST="$VT_WRAPPER_AVAIL_INST tauinst"
|
||||
])
|
||||
|
||||
AC_SUBST(VT_WRAPPER_CC_COMPILER)
|
||||
AC_SUBST(VT_WRAPPER_CC_EXTRA_COMPILER_FLAGS)
|
||||
AC_SUBST(VT_WRAPPER_CC_EXTRA_LINKER_FLAGS)
|
||||
AC_SUBST(VT_WRAPPER_CC_EXTRA_LIBS)
|
||||
AC_SUBST(VT_WRAPPER_CC_CPP)
|
||||
AC_SUBST(VT_WRAPPER_CC_EXTRA_CPPFLAGS)
|
||||
AC_SUBST(VT_WRAPPER_CC_DYNINST_COMPILER_FLAGS)
|
||||
AC_SUBST(VT_WRAPPER_CC_TAUINST_OPTS)
|
||||
AC_SUBST(VT_WRAPPER_CC_TAUINST_PARSE_BIN)
|
||||
AC_SUBST(VT_WRAPPER_CC_TAUINST_PARSE_OPTS)
|
||||
AC_SUBST(VT_WRAPPER_CC_COMPINST_COMPILER_FLAGS)
|
||||
AC_SUBST(VT_WRAPPER_CC_DEFAULT_PARTYPE)
|
||||
|
||||
AC_SUBST(VT_WRAPPER_CXX_COMPILER)
|
||||
AC_SUBST(VT_WRAPPER_CXX_EXTRA_COMPILER_FLAGS)
|
||||
AC_SUBST(VT_WRAPPER_CXX_EXTRA_LINKER_FLAGS)
|
||||
AC_SUBST(VT_WRAPPER_CXX_EXTRA_LIBS)
|
||||
AC_SUBST(VT_WRAPPER_CXX_CPP)
|
||||
AC_SUBST(VT_WRAPPER_CXX_EXTRA_CPPFLAGS)
|
||||
AC_SUBST(VT_WRAPPER_CXX_DYNINST_COMPILER_FLAGS)
|
||||
AC_SUBST(VT_WRAPPER_CXX_TAUINST_OPTS)
|
||||
AC_SUBST(VT_WRAPPER_CXX_TAUINST_PARSE_BIN)
|
||||
AC_SUBST(VT_WRAPPER_CXX_TAUINST_PARSE_OPTS)
|
||||
AC_SUBST(VT_WRAPPER_CXX_COMPINST_COMPILER_FLAGS)
|
||||
AC_SUBST(VT_WRAPPER_CXX_DEFAULT_PARTYPE)
|
||||
|
||||
AC_SUBST(VT_WRAPPER_FC_COMPILER)
|
||||
AC_SUBST(VT_WRAPPER_FC_EXTRA_COMPILER_FLAGS)
|
||||
AC_SUBST(VT_WRAPPER_FC_EXTRA_LINKER_FLAGS)
|
||||
AC_SUBST(VT_WRAPPER_FC_EXTRA_LIBS)
|
||||
AC_SUBST(VT_WRAPPER_FC_CPP)
|
||||
AC_SUBST(VT_WRAPPER_FC_EXTRA_CPPFLAGS)
|
||||
AC_SUBST(VT_WRAPPER_FC_DYNINST_COMPILER_FLAGS)
|
||||
AC_SUBST(VT_WRAPPER_FC_TAUINST_OPTS)
|
||||
AC_SUBST(VT_WRAPPER_FC_TAUINST_PARSE_BIN)
|
||||
AC_SUBST(VT_WRAPPER_FC_TAUINST_PARSE_OPTS)
|
||||
AC_SUBST(VT_WRAPPER_FC_COMPINST_COMPILER_FLAGS)
|
||||
AC_SUBST(VT_WRAPPER_FC_DEFAULT_PARTYPE)
|
||||
|
||||
AC_SUBST(VT_WRAPPER_NVCC_COMPILER)
|
||||
AC_SUBST(VT_WRAPPER_NVCC_EXTRA_COMPILER_FLAGS)
|
||||
AC_SUBST(VT_WRAPPER_NVCC_EXTRA_LINKER_FLAGS)
|
||||
AC_SUBST(VT_WRAPPER_NVCC_EXTRA_LIBS)
|
||||
AC_SUBST(VT_WRAPPER_NVCC_CPP)
|
||||
AC_SUBST(VT_WRAPPER_NVCC_EXTRA_CPPFLAGS)
|
||||
AC_SUBST(VT_WRAPPER_NVCC_DYNINST_COMPILER_FLAGS)
|
||||
AC_SUBST(VT_WRAPPER_NVCC_TAUINST_OPTS)
|
||||
AC_SUBST(VT_WRAPPER_NVCC_TAUINST_PARSE_BIN)
|
||||
AC_SUBST(VT_WRAPPER_NVCC_TAUINST_PARSE_OPTS)
|
||||
AC_SUBST(VT_WRAPPER_NVCC_COMPINST_COMPILER_FLAGS)
|
||||
AC_SUBST(VT_WRAPPER_NVCC_AVAIL_INST)
|
||||
AC_SUBST(VT_WRAPPER_NVCC_DEFAULT_INST)
|
||||
AC_SUBST(VT_WRAPPER_NVCC_DEFAULT_PARTYPE)
|
||||
|
||||
AC_SUBST(VT_WRAPPER_VTLIB)
|
||||
AC_SUBST(VT_WRAPPER_VTMPILIB)
|
||||
AC_SUBST(VT_WRAPPER_VTMTLIB)
|
||||
AC_SUBST(VT_WRAPPER_VTHYBLIB)
|
||||
AC_SUBST(VT_WRAPPER_OPARI_BIN)
|
||||
AC_SUBST(VT_WRAPPER_OPARI_OPTS)
|
||||
AC_SUBST(VT_WRAPPER_OPARI_TAB_COMPILER)
|
||||
AC_SUBST(VT_WRAPPER_OPARI_TAB_COMPILER_FLAGS)
|
||||
AC_SUBST(VT_WRAPPER_TAUINST_BIN)
|
||||
AC_SUBST(VT_WRAPPER_AVAIL_INST)
|
||||
AC_SUBST(VT_WRAPPER_DEFAULT_INST)
|
||||
])
|
||||
|
@ -1,388 +0,0 @@
|
||||
AC_DEFUN([ACVT_CONF_INIT],
|
||||
[
|
||||
AC_ARG_ENABLE(config-summary,
|
||||
AC_HELP_STRING([--enable-config-summary],
|
||||
[show summary of configuration, default: enabled]), [],
|
||||
[
|
||||
AS_IF([test x"$inside_openmpi" != "xno"],
|
||||
[enable_config_summary="no"], [enable_config_summary="yes"])
|
||||
])
|
||||
|
||||
AC_ARG_ENABLE(config-titles,
|
||||
AC_HELP_STRING([--enable-config-titles],
|
||||
[show titles for each configure section, default: enabled]), [],
|
||||
[
|
||||
AS_IF([test x"$inside_openmpi" != "xno"],
|
||||
[enable_config_titles="no"], [enable_config_titles="yes"])
|
||||
])
|
||||
])
|
||||
|
||||
AC_DEFUN([ACVT_CONF_OPTIONS],
|
||||
[
|
||||
options_dir="$srcdir/config/defaults"
|
||||
options_file=
|
||||
|
||||
AC_REQUIRE([ACVT_PLATFORM])
|
||||
|
||||
AC_MSG_CHECKING([for options file])
|
||||
|
||||
AC_ARG_WITH(options,
|
||||
AC_HELP_STRING([--with-options=FILE],
|
||||
[load options from FILE]),
|
||||
[
|
||||
AC_MSG_RESULT([skipped (--with-options=$withval)])
|
||||
|
||||
AS_IF([test x"$withval" = "xyes"],
|
||||
[AC_MSG_ERROR([value of '--with-options' not properly set])])
|
||||
|
||||
AS_IF([test x"$withval" != "xno"],
|
||||
[
|
||||
dnl if no path, check in config/defaults
|
||||
AS_IF([test "`basename $withval`" = "$withval"],
|
||||
[
|
||||
AS_IF([test -r "$options_dir/$withval"],
|
||||
[withval="$options_dir/$withval"])
|
||||
])
|
||||
|
||||
dnl make sure file exists
|
||||
AS_IF([test ! -r "$withval"],
|
||||
[AC_MSG_ERROR([options file '$withval' not found])])
|
||||
|
||||
options_file="$withval"
|
||||
])
|
||||
],
|
||||
[
|
||||
dnl if no file given, generate options file name and look for it
|
||||
dnl in config/defaults
|
||||
AS_IF([test x"$inside_openmpi" = "xno"],
|
||||
[
|
||||
AS_IF([test x"$BITMODE" != x],
|
||||
[
|
||||
AS_IF([test -r "$options_dir/$PLATFORM-$BITMODE"],
|
||||
[options_file="$options_dir/$PLATFORM-$BITMODE"])
|
||||
])
|
||||
|
||||
AS_IF([test x"$options_file" = x],
|
||||
[
|
||||
AS_IF([test -r "$options_dir/$PLATFORM"],
|
||||
[options_file="$options_dir/$PLATFORM"])
|
||||
])
|
||||
])
|
||||
|
||||
AS_IF([test x"$options_file" != x],
|
||||
[AC_MSG_RESULT([$options_file])], [AC_MSG_RESULT([no])])
|
||||
])
|
||||
|
||||
dnl load options from file
|
||||
AS_IF([test x"$options_file" != x],
|
||||
[
|
||||
AC_MSG_NOTICE([loading options from '$options_file'])
|
||||
|
||||
dnl save command line options
|
||||
rm -f confopts
|
||||
for var in $ac_precious_vars; do
|
||||
set | grep ^$var= >>confopts
|
||||
done
|
||||
|
||||
set | grep ^enable_.*= >>confopts
|
||||
set | grep ^with_.*= >>confopts
|
||||
|
||||
dnl show + load options into environment
|
||||
cat $options_file
|
||||
set -a
|
||||
. $options_file
|
||||
dnl restore command line options
|
||||
. ./confopts
|
||||
set +a
|
||||
|
||||
rm -f confopts
|
||||
])
|
||||
])
|
||||
|
||||
AC_DEFUN([ACVT_CONF_TITLE],
|
||||
[
|
||||
AS_IF([test x"$enable_config_titles" = "xyes"],
|
||||
[echo; echo "*** $1"])
|
||||
])
|
||||
|
||||
AC_DEFUN([ACVT_CONF_SUBTITLE],
|
||||
[
|
||||
AS_IF([test x"$enable_config_titles" = "xyes"],
|
||||
[echo "+++ $1"])
|
||||
])
|
||||
|
||||
AC_DEFUN([ACVT_CONF_SUBSUBTITLE],
|
||||
[
|
||||
AS_IF([test x"$enable_config_titles" = "xyes"],
|
||||
[echo "--- $1"])
|
||||
])
|
||||
|
||||
AC_DEFUN([ACVT_CONF_EXPAND_VARS],
|
||||
[
|
||||
var=$1
|
||||
|
||||
while :
|
||||
do
|
||||
$2=`eval echo $var`
|
||||
AS_IF([test x"$$2" = "x$var"], [break], [var=$$2])
|
||||
done
|
||||
])
|
||||
|
||||
AC_DEFUN([ACVT_CONF_SUMMARY],
|
||||
[
|
||||
AS_IF([test x"$enable_config_summary" = "xyes"],
|
||||
[
|
||||
echo ""
|
||||
echo "-----------------------------------------------------------------------------"
|
||||
echo "Configuration:"
|
||||
echo ""
|
||||
AS_IF([test x"$options_file" != x],
|
||||
[answer="$options_file"], [answer="no"])
|
||||
echo " Options file: $answer"
|
||||
echo ""
|
||||
echo " Build (B): $build"
|
||||
echo " Host (H): $host"
|
||||
echo " Cross compiling: $cross_compiling"
|
||||
echo ""
|
||||
AS_IF([test x"$cross_compiling" = "xyes"],
|
||||
[echo " C Compiler (H|B): $CC | $CC_FOR_BUILD"],
|
||||
[echo " C Compiler: $CC"])
|
||||
AS_IF([test x"$cross_compiling" = "xyes"],
|
||||
[echo " C++ Compiler (H|B): $CXX | $CXX_FOR_BUILD"],
|
||||
[echo " C++ compiler: $CXX"])
|
||||
echo " Fortran compiler: $FC"
|
||||
AS_IF([test x"$cross_compiling" = "xyes"],
|
||||
[echo " C preprocessor (H|B): $CPP | $CPP_FOR_BUILD"],
|
||||
[echo " C preprocessor: $CPP"])
|
||||
AS_IF([test x"$cross_compiling" = "xyes"],
|
||||
[echo " C++ preprocessor (H|B): $CXXCPP | $CXXCPP_FOR_BUILD"],
|
||||
[echo " C++ preprocessor: $CXXCPP"])
|
||||
echo ""
|
||||
AS_IF([test x"$cross_compiling" = "xyes"],
|
||||
[echo " CFLAGS (H|B): $CFLAGS | $CFLAGS_FOR_BUILD"],
|
||||
[echo " CFLAGS: $CFLAGS"])
|
||||
AS_IF([test x"$cross_compiling" = "xyes"],
|
||||
[echo " CXXFLAGS (H|B): $CXXFLAGS | $CXXFLAGS_FOR_BUILD"],
|
||||
[echo " CXXFLAGS: $CXXFLAGS"])
|
||||
echo " FCFLAGS: $FCFLAGS"
|
||||
AS_IF([test x"$cross_compiling" = "xyes"],
|
||||
[echo " LDFLAGS (H|B): $LDFLAGS | $LDFLAGS_FOR_BUILD"],
|
||||
[echo " LDFLAGS: $LDFLAGS"])
|
||||
AS_IF([test x"$cross_compiling" = "xyes"],
|
||||
[echo " LIBS (H|B): $LIBS | $LIBS_FOR_BUILD"],
|
||||
[echo " LIBS: $LIBS"])
|
||||
echo ""
|
||||
|
||||
AS_IF([test x"$have_mpi" = "xyes"],
|
||||
[
|
||||
echo " MPI C compiler: $MPICC"
|
||||
echo " MPI C++ compiler: $MPICXX"
|
||||
echo " MPI Fortran compiler: $MPIFC"
|
||||
echo ""
|
||||
echo " MPICFLAGS (append to CFLAGS): $MPICFLAGS"
|
||||
echo " MPICXXFLAGS (append to CXXFLAGS): $MPICXXFLAGS"
|
||||
echo " MPIFCFLAGS (append to FCFLAGS): $MPIFCFLAGS"
|
||||
echo ""
|
||||
])
|
||||
|
||||
echo " Source code location: $PWD"
|
||||
echo " Install path: $prefix"
|
||||
echo ""
|
||||
answer=""
|
||||
AS_IF([test x"$use_extern_otf" = "xno"],
|
||||
[answer="yes"], [answer="no"])
|
||||
echo " Build OTF library and tools: $answer"
|
||||
|
||||
AS_IF([test x"$have_zlib" = "xyes"],
|
||||
[answer="yes"], [answer="no"])
|
||||
echo " Build ZLIB trace compression support: $answer"
|
||||
|
||||
AS_IF([test x"$have_iofsl" = "xyes"],
|
||||
[answer="yes"], [answer="no"])
|
||||
echo " Build IOFSL I/O forwarding support: $answer"
|
||||
|
||||
AS_IF([test x"$have_iofsl" = "xyes"],
|
||||
[
|
||||
AS_IF([test x"$IOFSLSCRIPTS" != x],
|
||||
[answer="yes ($IOFSLSCRIPTS)"], [answer="no"])
|
||||
echo " Build IOFSL scripts: $answer"
|
||||
])
|
||||
|
||||
AS_IF([test x"$have_mpi" = "xyes"],
|
||||
[answer="yes"], [answer="no"])
|
||||
echo " Build MPI support: $answer"
|
||||
|
||||
AS_IF([test x"$have_mpi" = "xyes"],
|
||||
[
|
||||
AS_IF([test x"$have_fmpi" = "xyes"],
|
||||
[answer="yes"], [answer="no"])
|
||||
echo " Build MPI Fortran support: $answer"
|
||||
|
||||
AS_IF([test x"$have_fmpi" = "xyes"],
|
||||
[
|
||||
AS_IF([test x"$build_fmpiwraplib" = "xyes"],
|
||||
[answer="yes"], [answer="no"])
|
||||
echo " Build MPI Fortran wrapper library: $answer"
|
||||
])
|
||||
|
||||
echo " Build MPI-2 support for"
|
||||
|
||||
AS_IF([test x"$have_mpi2_1sided" = "xyes"],
|
||||
[answer="yes"], [answer="no"])
|
||||
echo " One-Sided Communications: $answer"
|
||||
|
||||
AS_IF([test x"$have_mpi2_extcoll" = "xyes"],
|
||||
[answer="yes"], [answer="no"])
|
||||
echo " Extended Collective Operations: $answer"
|
||||
|
||||
AS_IF([test x"$have_mpi2_io" = "xyes"],
|
||||
[answer="yes"], [answer="no"])
|
||||
echo " I/O: $answer"
|
||||
|
||||
AS_IF([test x"$build_etimesync" = "xyes"],
|
||||
[answer="yes"], [answer="no"])
|
||||
echo " Build enhanced time sync. support: $answer"
|
||||
|
||||
AS_IF([test x"$have_unimci" = "xyes"],
|
||||
[answer="yes ($unimci_checker_name $unimci_checker_version)"],
|
||||
[answer="no"])
|
||||
echo " Build MPI correctness checking support: $answer"
|
||||
|
||||
AS_IF([test x"$build_mpiunifylib" = "xyes"],
|
||||
[answer="yes"], [answer="no"])
|
||||
echo " Build MPI trace unification library: $answer"
|
||||
])
|
||||
|
||||
AS_IF([test x"$have_threads" = "xyes"],
|
||||
[
|
||||
answer=
|
||||
AS_IF([test x"$have_pthread" = "xyes"],
|
||||
[answer="POSIX threads"])
|
||||
AS_IF([test x"$have_omp" = "xyes"],
|
||||
[AS_IF([test x"$answer" != x],
|
||||
[answer="$answer, OpenMP"],
|
||||
[answer="OpenMP"])])
|
||||
answer="yes ($answer)"
|
||||
], [answer="no"])
|
||||
echo " Build Multithreading support: $answer"
|
||||
|
||||
AS_IF([test x"$build_hybrid" = "xyes"],
|
||||
[answer="yes"], [answer="no"])
|
||||
echo " Build Hybrid (MPI/Threads) support: $answer"
|
||||
|
||||
AS_IF([test x"$have_java" = "xyes"],
|
||||
[answer="yes"], [answer="no"])
|
||||
echo " Build Java support: $answer"
|
||||
|
||||
AS_IF([test x"$have_papi" = "xyes"],
|
||||
[answer="yes (PAPI)"], [AS_IF([test x"$have_cpc" = "xyes"],
|
||||
[answer="yes (CPC)"], [AS_IF([test x"$have_necsxcntr" = "xyes"],
|
||||
[answer="yes (NEC SX)"], [answer="no"])])])
|
||||
echo " Build Hardware Perf. Counter support: $answer"
|
||||
|
||||
AS_IF([test x"$have_plugin_cntr" = "xyes"],
|
||||
[answer="yes"], [answer="no"])
|
||||
echo " Build Plugin Counter support: $answer"
|
||||
|
||||
AS_IF([test x"$have_rusage" = "xyes"],
|
||||
[answer="yes"], [answer="no"])
|
||||
echo " Build Resource usage trace support: $answer"
|
||||
|
||||
AS_IF([test x"$have_getcpu" = "xyes"],
|
||||
[answer="yes"], [answer="no"])
|
||||
echo " Build GLIBC's CPU ID trace support: $answer"
|
||||
|
||||
AS_IF([test x"$have_libwrap" = "xyes"],
|
||||
[
|
||||
answer=
|
||||
AS_IF([test x"$have_execwrap" = "xyes"],
|
||||
[AS_IF([test x"$answer" != x],
|
||||
[answer="$answer, LIBC-EXEC"],
|
||||
[answer="LIBC-EXEC"])])
|
||||
AS_IF([test x"$have_iowrap" = "xyes"],
|
||||
[AS_IF([test x"$answer" != x],
|
||||
[answer="$answer, LIBC-I/O"],
|
||||
[answer="LIBC-I/O"])])
|
||||
AS_IF([test x"$have_mallocwrap" = "xyes"],
|
||||
[AS_IF([test x"$answer" != x],
|
||||
[answer="$answer, LIBC-MALLOC"],
|
||||
[answer="LIBC-MALLOC"])])
|
||||
AS_IF([test x"$have_cudartwrap" = "xyes"],
|
||||
[AS_IF([test x"$answer" != x],
|
||||
[answer="$answer, CUDA-RT"],
|
||||
[answer="CUDA-RT"])])
|
||||
answer="yes ($answer)"
|
||||
], [answer="no"])
|
||||
echo " Build Library trace support: $answer"
|
||||
|
||||
AS_IF([test x"$have_libwrap" = "xyes"],
|
||||
[
|
||||
AS_IF([test x"$build_libwrapgen" = "xyes"],
|
||||
[answer="yes"], [answer="no"])
|
||||
echo " Build Library wrapper generator: $answer"
|
||||
])
|
||||
|
||||
AS_IF([test x"$have_cupti" = "xyes"],
|
||||
[
|
||||
answer=
|
||||
AS_IF([test x"$have_cupti_callbacks" = "xyes"],
|
||||
[AS_IF([test x"$answer" != x],
|
||||
[answer="$answer, Callbacks"],
|
||||
[answer="Callbacks"])])
|
||||
AS_IF([test x"$have_cupti_activity" = "xyes"],
|
||||
[AS_IF([test x"$answer" != x],
|
||||
[answer="$answer, Activitiy"],
|
||||
[answer="Activitiy"])])
|
||||
AS_IF([test x"$have_cupti_events" = "xyes"],
|
||||
[AS_IF([test x"$answer" != x],
|
||||
[answer="$answer, Events"],
|
||||
[answer="Events"])])
|
||||
answer="yes ($answer)"
|
||||
], [answer=no])
|
||||
echo " Build CUPTI support: $answer"
|
||||
|
||||
AS_IF([test x"$have_compinst" = "xyes"],
|
||||
[answer=`echo $compinst_type | sed s/gnu/gnu*/g`],
|
||||
[answer="no"])
|
||||
echo ""
|
||||
echo " Build compiler instrumentation support: $answer"
|
||||
|
||||
AS_IF([test x"$compinst_type" = "xgnu"],
|
||||
[
|
||||
echo " *The instrumentation type 'gnu' also works for Intel, PathScale,"
|
||||
echo " and Open64 compilers."
|
||||
])
|
||||
|
||||
AS_IF([test x"$have_dyninst" = "xyes"],
|
||||
[answer="yes"], [answer="no"])
|
||||
echo ""
|
||||
echo " Build binary instrumentation support"
|
||||
echo " by using Dyninst: $answer"
|
||||
|
||||
AS_IF([test x"$build_dynattlib" = "xyes"],
|
||||
[answer="yes"], [answer="no"])
|
||||
echo " Build Dyninst attach library: $answer"
|
||||
|
||||
AS_IF([test x"$have_tauinst" = "xyes"],
|
||||
[answer="yes"], [answer="no"])
|
||||
echo ""
|
||||
echo " Build automatic source code"
|
||||
echo " instrumentation support by using TAU: $answer"
|
||||
|
||||
AS_IF([test x"$build_vtsetup" = "xyes"],
|
||||
[answer="yes"], [answer="no"])
|
||||
echo ""
|
||||
echo " Build vtsetup - a GUI to prepare"
|
||||
echo " measurement runs with VampirTrace $answer"
|
||||
|
||||
AS_IF([test x"$build_vtrun" = "xyes"],
|
||||
[answer="yes"], [answer="no"])
|
||||
echo ""
|
||||
echo " Build vtrun - an application execution"
|
||||
echo " wrapper script $answer"
|
||||
|
||||
echo ""
|
||||
echo " See config.h for further configuration information."
|
||||
echo "-----------------------------------------------------------------------------"
|
||||
])
|
||||
])
|
@ -1,87 +0,0 @@
|
||||
AC_DEFUN([ACVT_CPC],
|
||||
[
|
||||
cpc_error="no"
|
||||
have_cpc="no"
|
||||
|
||||
CPCDIR=
|
||||
CPCINCDIR=
|
||||
CPCLIBDIR=
|
||||
CPCLIB=
|
||||
|
||||
AC_ARG_WITH(cpc-dir,
|
||||
AC_HELP_STRING([--with-cpc-dir=CPCDIR],
|
||||
[give the path for CPC, default: /usr]),
|
||||
[CPCDIR="$withval/"])
|
||||
|
||||
AC_ARG_WITH(cpc-inc-dir,
|
||||
AC_HELP_STRING([--with-cpc-inc-dir=CPCINCDIR],
|
||||
[give the path for CPC-include files, default: CPCDIR/include]),
|
||||
[CPCINCDIR="-I$withval"],
|
||||
[AS_IF([test x"$CPCDIR" != x], [CPCINCDIR="-I$CPCDIR"include])])
|
||||
|
||||
AC_ARG_WITH(cpc-lib-dir,
|
||||
AC_HELP_STRING([--with-cpc-lib-dir=CPCLIBDIR],
|
||||
[give the path for CPC-libraries, default: CPCDIR/lib]),
|
||||
[CPCLIBDIR="-L$withval"],
|
||||
[AS_IF([test x"$CPCDIR" != x], [CPCLIBDIR="-L$CPCDIR"lib])])
|
||||
|
||||
AC_ARG_WITH(cpc-lib,
|
||||
AC_HELP_STRING([--with-cpc-lib=CPCLIB], [use given cpc lib, default: -lcpc]),
|
||||
[CPCLIB="$withval"])
|
||||
|
||||
sav_CPPFLAGS=$CPPFLAGS
|
||||
CPPFLAGS="$CPPFLAGS $CPCINCDIR"
|
||||
AC_CHECK_HEADER([libcpc.h], [],
|
||||
[
|
||||
AC_MSG_NOTICE([error: no libcpc.h found; check path for CPC package first...])
|
||||
cpc_error="yes"
|
||||
])
|
||||
CPPFLAGS=$sav_CPPFLAGS
|
||||
|
||||
AS_IF([test x"$CPCLIB" = x -a x"$cpc_error" = "xno"],
|
||||
[
|
||||
sav_LIBS=$LIBS
|
||||
LIBS="$LIBS $CPCLIBDIR -lcpc"
|
||||
AC_MSG_CHECKING([whether linking with -lcpc works])
|
||||
AC_TRY_LINK([],[],
|
||||
[AC_MSG_RESULT([yes]); CPCLIB=-lcpc],[AC_MSG_RESULT([no])])
|
||||
LIBS=$sav_LIBS
|
||||
])
|
||||
|
||||
AS_IF([test x"$CPCLIB" = x -a x"$cpc_error" = "xno"],
|
||||
[
|
||||
AC_MSG_NOTICE([error: no libcpc found; check path for CPC package first...])
|
||||
cpc_error="yes"
|
||||
])
|
||||
|
||||
AS_IF([test x"$cpc_error" = "xno"],
|
||||
[
|
||||
AC_MSG_CHECKING([whether CPC version = 2])
|
||||
|
||||
sav_CPPFLAGS=$CPPFLAGS
|
||||
CPPFLAGS="$CPPFLAGS $CPCINCDIR"
|
||||
AC_TRY_COMPILE([#include <libcpc.h>],
|
||||
[
|
||||
#ifndef CPC_VER_CURRENT
|
||||
# error "CPC_VER_CURRENT not defined"
|
||||
#elif CPC_VER_CURRENT != 2
|
||||
# error "CPC_VER_CURRENT != 2"
|
||||
#endif
|
||||
],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[
|
||||
AC_MSG_RESULT([no])
|
||||
AC_MSG_NOTICE([error: CPC version could not be determined and/or is incompatible (!= 2)
|
||||
See \`config.log' for more details.])
|
||||
cpc_error="yes"
|
||||
])
|
||||
CPPFLAGS=$sav_CPPFLAGS
|
||||
])
|
||||
|
||||
AS_IF([test x"$CPCLIB" != x -a x"$cpc_error" = "xno"], [have_cpc="yes"])
|
||||
|
||||
AC_SUBST(CPCINCDIR)
|
||||
AC_SUBST(CPCLIBDIR)
|
||||
AC_SUBST(CPCLIB)
|
||||
])
|
||||
|
@ -1,119 +0,0 @@
|
||||
AC_DEFUN([ACVT_CROSS],
|
||||
[
|
||||
CROSS_PREFIX=
|
||||
|
||||
comp_for_build_given="no"
|
||||
|
||||
AC_ARG_VAR(CC_FOR_BUILD, [C compiler command for build system])
|
||||
AC_ARG_VAR(CFLAGS_FOR_BUILD, [C compiler flags for build system])
|
||||
AC_ARG_VAR(CPP_FOR_BUILD, [C preprocessor for build system])
|
||||
AC_ARG_VAR(CXX_FOR_BUILD, [C++ compiler command for build system])
|
||||
AC_ARG_VAR(CXXFLAGS_FOR_BUILD, [C++ compiler flags for build system])
|
||||
AC_ARG_VAR(CXXCPP_FOR_BUILD, [C++ preprocessor for build system])
|
||||
AC_ARG_VAR(CPPFLAGS_FOR_BUILD, [C/C++/Objective C preprocessor flags for build system])
|
||||
AC_ARG_VAR(LDFLAGS_FOR_BUILD, [linker flags for build system])
|
||||
AC_ARG_VAR(LIBS_FOR_BUILD, [libraries to pass to the linker for build system])
|
||||
|
||||
AS_IF([test x"$cross_compiling" != "xyes"],
|
||||
[
|
||||
# reset *_FOR_BUILD variables, if no cross compiling
|
||||
CC_FOR_BUILD=$CC; CFLAGS_FOR_BUILD=$CFLAGS; CPP_FOR_BUILD=$CPP
|
||||
CXX_FOR_BUILD=$CXX; CXXFLAGS_FOR_BUILD=$CXXFLAGS; CXXCPP_FOR_BUILD=$CXXCPP
|
||||
CPPFLAGS_FOR_BUILD=$CPPFLAGS; LDFLAGS_FOR_BUILD=$LDFLAGS; LIBS_FOR_BUILD=$LIBS
|
||||
],
|
||||
[
|
||||
AC_MSG_CHECKING([for C compiler for build system ($build)])
|
||||
AS_IF([test x"$CC_FOR_BUILD" = x],
|
||||
[AC_MSG_RESULT([$CC])], [AC_MSG_RESULT([$CC_FOR_BUILD])])
|
||||
AC_MSG_CHECKING([for C++ compiler for build system ($build)])
|
||||
AS_IF([test x"$CXX_FOR_BUILD" = x],
|
||||
[AC_MSG_RESULT([$CXX])], [AC_MSG_RESULT([$CXX_FOR_BUILD])])
|
||||
|
||||
AS_IF([test x"$CC_FOR_BUILD" = x -a x"$CXX_FOR_BUILD" != x],
|
||||
[
|
||||
AC_MSG_ERROR([no C compiler command for build system given
|
||||
Set \`CC_FOR_BUILD' to the C compiler of build system.])
|
||||
])
|
||||
AS_IF([test x"$CXX_FOR_BUILD" = x -a x"$CC_FOR_BUILD" != x],
|
||||
[
|
||||
AC_MSG_ERROR([no C++ compiler command for build system given
|
||||
Set \`CXX_FOR_BUILD' to the C++ compiler of build system.])
|
||||
])
|
||||
AS_IF([test x"$CC_FOR_BUILD" != x -a x"$CXX_FOR_BUILD" != x],
|
||||
[
|
||||
comp_for_build_given="yes"
|
||||
])
|
||||
AS_IF([test x"$CC_FOR_BUILD" = x -a x"$CXX_FOR_BUILD" = x],
|
||||
[
|
||||
AC_MSG_NOTICE([no C/C++ compiler command for build system given
|
||||
In cross compile mode, it's recommended to build the compiler wrappers and OPARI for the build system. Set \`CC_FOR_BUILD' and \`CXX_FOR_BUILD' to the C/C++ compiler of build system.])
|
||||
CC_FOR_BUILD=$CC
|
||||
CXX_FOR_BUILD=$CXX
|
||||
])
|
||||
|
||||
AS_IF([test x"$CFLAGS_FOR_BUILD" = x], [CFLAGS_FOR_BUILD=$CFLAGS])
|
||||
AS_IF([test x"$CXXFLAGS_FOR_BUILD" = x], [CXXFLAGS_FOR_BUILD=$CXXFLAGS])
|
||||
AS_IF([test x"$CPPFLAGS_FOR_BUILD" = x], [CPPFLAGS_FOR_BUILD=$CPPFLAGS])
|
||||
AS_IF([test x"$LDFLAGS_FOR_BUILD" = x], [LDFLAGS_FOR_BUILD=$LDFLAGS])
|
||||
AS_IF([test x"$LIBS_FOR_BUILD" = x], [LIBS_FOR_BUILD=$LIBS])
|
||||
|
||||
AS_IF([test x"$comp_for_build_given" = "xyes"],
|
||||
[
|
||||
sav_CPPFLAGS=$CPPFLAGS; sav_LDFLAGS=$LDFLAGS; sav_LIBS=$LIBS
|
||||
CPPFLAGS=$CPPFLAGS_FOR_BUILD; LDFLAGS=$LDFLAGS_FOR_BUILD; LIBS=$LIBS_FOR_BUILD
|
||||
|
||||
sav_CC=$CC; sav_CFLAGS=$CFLAGS; sav_CPP=$CPP
|
||||
CC=$CC_FOR_BUILD; CFLAGS=$CFLAGS_FOR_BUILD
|
||||
AC_MSG_CHECKING([whether the C compiler for build system works])
|
||||
AC_TRY_LINK([], [],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[AC_MSG_ERROR([C compiler for build system cannot create executables
|
||||
See \`config.log' for more details.])])
|
||||
|
||||
AS_IF([test x"$CPP_FOR_BUILD" = x],
|
||||
[
|
||||
unset CPP
|
||||
unset ac_cv_prog_CPP # clear cache variable for CPP
|
||||
AC_PROG_CPP
|
||||
CPP_FOR_BUILD=$CPP
|
||||
])
|
||||
CC=$sav_CC; CFLAGS=$sav_CFLAGS; CPP=$sav_CPP
|
||||
|
||||
AC_LANG([C++])
|
||||
sav_CXX=$CXX; sav_CXXFLAGS=$CXXFLAGS; sav_CXXCPP=$CXXCPP
|
||||
CXX=$CXX_FOR_BUILD; CXXFLAGS=$CXXFLAGS_FOR_BUILD
|
||||
AC_MSG_CHECKING([whether the C++ compiler for build system works])
|
||||
AC_TRY_LINK([], [],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[AC_MSG_ERROR([C++ compiler for build system cannot create executables
|
||||
See \`config.log' for more details.])])
|
||||
|
||||
AS_IF([test x"$CXXCPP_FOR_BUILD" = x],
|
||||
[
|
||||
unset CXXCPP
|
||||
unset ac_cv_prog_CXXCPP # clear cache variable for CXXCPP
|
||||
AC_PROG_CXXCPP
|
||||
CXXCPP_FOR_BUILD=$CXXCPP
|
||||
])
|
||||
CXX=$sav_CXX; CXXFLAGS=$sav_CXXFLAGS; CXXCPP=$sav_CXXCPP
|
||||
AC_LANG([C])
|
||||
|
||||
CPPFLAGS=$sav_CPPFLAGS; LDFLAGS=$sav_LDFLAGS; LIBS=$sav_LIBS
|
||||
])
|
||||
])
|
||||
|
||||
# Check prefix for cross-tool's executables
|
||||
AC_ARG_WITH(cross-prefix,
|
||||
AC_HELP_STRING([--with-cross-prefix=PREFIX],
|
||||
[prefix for cross-tool's executables (e.g. PREFIXvtcc, PREFIXvtfort), default: cross-]),
|
||||
[
|
||||
AS_IF([test x"$cross_compiling" = "xyes" -a x"$comp_for_build_given" = "xyes"],
|
||||
[
|
||||
AS_IF([test x"$withval" = "xyes"], [CROSS_PREFIX="cross-"],
|
||||
[AS_IF([test x"$withval" != "xno"], [CROSS_PREFIX="$withval"])])
|
||||
])
|
||||
])
|
||||
|
||||
AC_SUBST(CROSS_PREFIX)
|
||||
])
|
||||
|
@ -1,22 +0,0 @@
|
||||
AC_DEFUN([ACVT_CSFS],
|
||||
[
|
||||
have_csfs="no"
|
||||
|
||||
AC_MSG_CHECKING([if build filesystem is case sensitive])
|
||||
|
||||
cat > conftest.out << EOF
|
||||
lowercase
|
||||
EOF
|
||||
|
||||
cat > CONFTEST.OUT <<EOF
|
||||
uppercase
|
||||
EOF
|
||||
|
||||
AS_IF([test "`cat conftest.out`" = "lowercase"],
|
||||
[have_csfs="yes"])
|
||||
|
||||
AC_MSG_RESULT([$have_csfs])
|
||||
|
||||
rm -f conftest.out CONFTEST.OUT
|
||||
])
|
||||
|
@ -1,79 +0,0 @@
|
||||
AC_DEFUN([ACVT_CTOOL],
|
||||
[
|
||||
ctool_error="no"
|
||||
have_ctool="no"
|
||||
|
||||
CTOOLDIR=
|
||||
CTOOLINCDIR=
|
||||
CTOOLLIBDIR=
|
||||
CTOOLLIB=
|
||||
|
||||
AC_ARG_WITH(ctool-dir,
|
||||
AC_HELP_STRING([--with-ctool-dir=CTOOLDIR],
|
||||
[give the path for CTool, default: /usr]),
|
||||
[CTOOLDIR="$withval/"])
|
||||
|
||||
AC_ARG_WITH(ctool-inc-dir,
|
||||
AC_HELP_STRING([--with-ctool-inc-dir=CTOOLINCDIR],
|
||||
[give the path for CTool-include files, default: CTOOLDIR/include]),
|
||||
[CTOOLINCDIR="-I$withval"],
|
||||
[AS_IF([test x"$CTOOLDIR" != x], [CTOOLINCDIR="-I$CTOOLDIR"include])])
|
||||
|
||||
AC_ARG_WITH(ctool-lib-dir,
|
||||
AC_HELP_STRING([--with-ctool-lib-dir=CTOOLLIBDIR],
|
||||
[give the path for CTool-libraries, default: CTOOLDIR/lib]),
|
||||
[CTOOLLIBDIR="-L$withval"],
|
||||
[AS_IF([test x"$CTOOLDIR" != x], [CTOOLLIBDIR="-L$CTOOLDIR"lib])])
|
||||
|
||||
AC_ARG_WITH(ctool-lib,
|
||||
AC_HELP_STRING([--with-ctool-lib=CTOOLLIB], [use given CTool lib, default: -lctool]),
|
||||
[CTOOLLIB="$withval"])
|
||||
|
||||
AC_LANG([C++])
|
||||
sav_CXX=$CXX; CXX=$CXX_FOR_BUILD
|
||||
sav_CXXFLAGS=$CXXFLAGS; CXXFLAGS=$CXXFLAGS_FOR_BUILD
|
||||
sav_CXXCPP=$CXXCPP; CXXCPP=$CXXCPP_FOR_BUILD
|
||||
sav_CPPFLAGS=$CPPFLAGS; CPPFLAGS=$CPPFLAGS_FOR_BUILD
|
||||
sav_LDFLAGS=$LDFLAGS; LDFLAGS=$LDFLAGS_FOR_BUILD
|
||||
sav_LIBS=$LIBS; LIBS=$LIBS_FOR_BUILD
|
||||
|
||||
sav2_CPPFLAGS=$CPPFLAGS
|
||||
CPPFLAGS="$CPPFLAGS $CTOOLINCDIR"
|
||||
AC_CHECK_HEADER([ctool/ctool.h], [],
|
||||
[
|
||||
AC_MSG_NOTICE([error: no ctool/ctool.h found; check path for CTool package first...])
|
||||
ctool_error="yes"
|
||||
])
|
||||
CPPFLAGS=$sav2_CPPFLAGS
|
||||
|
||||
AS_IF([test x"$CTOOLLIB" = x -a x"$ctool_error" = "xno"],
|
||||
[
|
||||
sav2_LIBS=$LIBS
|
||||
LIBS="$LIBS $CTOOLLIBDIR -lctool"
|
||||
AC_MSG_CHECKING([whether linking with -lctool works])
|
||||
AC_TRY_LINK([],[],
|
||||
[AC_MSG_RESULT([yes]); CTOOLLIB=-lctool],[AC_MSG_RESULT([no])])
|
||||
LIBS=$sav2_LIBS
|
||||
])
|
||||
|
||||
CXX=$sav_CXX
|
||||
CXXFLAGS=$sav_CXXFLAGS
|
||||
CXXCPP=$sav_CXXCPP
|
||||
CPPFLAGS=$sav_CPPFLAGS
|
||||
LDFLAGS=$sav_LDFLAGS
|
||||
LIBS=$sav_LIBS
|
||||
AC_LANG([C])
|
||||
|
||||
AS_IF([test x"$CTOOLLIB" = x -a x"$ctool_error" = "xno"],
|
||||
[
|
||||
AC_MSG_NOTICE([error: no libctool found; check path for CTool package first...])
|
||||
ctool_error="yes"
|
||||
])
|
||||
|
||||
AS_IF([test x"$ctool_error" = "xno"], [have_ctool="yes"])
|
||||
|
||||
AC_SUBST(CTOOLINCDIR)
|
||||
AC_SUBST(CTOOLLIBDIR)
|
||||
AC_SUBST(CTOOLLIB)
|
||||
])
|
||||
|
@ -1,142 +0,0 @@
|
||||
AC_DEFUN([ACVT_CUDA],
|
||||
[
|
||||
cuda_error="no"
|
||||
cudart_error="no"
|
||||
have_cuda="no"
|
||||
have_cudart="no"
|
||||
|
||||
CUDATKDIR=
|
||||
CUDATKINCDIR=
|
||||
CUDATKLIBDIR=
|
||||
CUDALIB=
|
||||
CUDARTLIB=
|
||||
|
||||
AC_ARG_VAR(NVCC, [NVIDIA CUDA compiler command])
|
||||
|
||||
AC_ARG_WITH(cuda-dir,
|
||||
AC_HELP_STRING([--with-cuda-dir=CUDATKDIR],
|
||||
[give the path for CUDA Toolkit, default: /usr/local/cuda]),
|
||||
[CUDATKDIR="$withval/"], [CUDATKDIR="/usr/local/cuda/"])
|
||||
|
||||
AC_ARG_WITH(cuda-inc-dir,
|
||||
AC_HELP_STRING([--with-cuda-inc-dir=CUDATKINCDIR],
|
||||
[give the path for CUDA-Toolkit-include files, default: CUDATKDIR/include]),
|
||||
[CUDATKINCDIR="-I$withval"],
|
||||
[AS_IF([test x"$CUDATKDIR" != x], [CUDATKINCDIR="-I$CUDATKDIR"include])])
|
||||
|
||||
AC_ARG_WITH(cuda-lib-dir,
|
||||
AC_HELP_STRING([--with-cuda-lib-dir=CUDATKLIBDIR],
|
||||
[give the path for CUDA-Toolkit-libraries, default: CUDATKDIR/lib64]),
|
||||
[CUDATKLIBDIR="-L$withval"],
|
||||
[AS_IF([test x"$CUDATKDIR" != x], [CUDATKLIBDIR="-L$CUDATKDIR"lib64])])
|
||||
|
||||
AC_ARG_WITH(cuda-lib,
|
||||
AC_HELP_STRING([--with-cuda-lib=CUDALIB], [use given CUDA driver library, default: -lcuda]),
|
||||
[CUDALIB="$withval"])
|
||||
|
||||
AC_ARG_WITH(cudart-lib,
|
||||
AC_HELP_STRING([--with-cudart-lib=CUDARTLIB], [use given CUDA runtime library, default: -lcudart]),
|
||||
[CUDARTLIB="$withval"])
|
||||
|
||||
AS_IF([test x"$cuda_error" = "xno"],
|
||||
[
|
||||
sav_CPPFLAGS=$CPPFLAGS
|
||||
CPPFLAGS="$CPPFLAGS $CUDATKINCDIR"
|
||||
AC_CHECK_HEADER([cuda.h], [],
|
||||
[
|
||||
AC_MSG_NOTICE([error: no cuda.h found; check path for CUDA Toolkit first...])
|
||||
cuda_error="yes"
|
||||
])
|
||||
CPPFLAGS=$sav_CPPFLAGS
|
||||
])
|
||||
|
||||
AS_IF([test x"$CUDALIB" = x -a x"$cuda_error" = "xno"],
|
||||
[
|
||||
sav_LIBS=$LIBS
|
||||
LIBS="$LIBS $CUDATKLIBDIR -lcuda"
|
||||
AC_MSG_CHECKING([whether linking with -lcuda works])
|
||||
AC_TRY_LINK([],[],
|
||||
[AC_MSG_RESULT([yes]); CUDALIB=-lcuda],[AC_MSG_RESULT([no])])
|
||||
LIBS=$sav_LIBS
|
||||
])
|
||||
|
||||
AS_IF([test x"$CUDALIB" = x -a x"$cuda_error" = "xno"],
|
||||
[
|
||||
AC_MSG_NOTICE([error: no libcuda found; check path for CUDA Toolkit first...])
|
||||
cuda_error="yes"
|
||||
])
|
||||
|
||||
AS_IF([test x"$cudart_error" = "xno"],
|
||||
[
|
||||
sav_CPPFLAGS=$CPPFLAGS
|
||||
CPPFLAGS="$CPPFLAGS $CUDATKINCDIR"
|
||||
AC_CHECK_HEADER([cuda_runtime_api.h], [],
|
||||
[
|
||||
AC_MSG_NOTICE([error: no cuda_runtime_api.h found; check path for CUDA Toolkit first...])
|
||||
cudart_error="yes"
|
||||
])
|
||||
CPPFLAGS=$sav_CPPFLAGS
|
||||
])
|
||||
|
||||
AS_IF([test x"$CUDARTLIB" = x -a x"$cudart_error" = "xno"],
|
||||
[
|
||||
sav_LIBS=$LIBS
|
||||
LIBS="$LIBS $CUDATKLIBDIR -lcudart"
|
||||
AC_MSG_CHECKING([whether linking with -lcudart works])
|
||||
AC_TRY_LINK([],[],
|
||||
[AC_MSG_RESULT([yes]); CUDARTLIB=-lcudart],[AC_MSG_RESULT([no])])
|
||||
LIBS=$sav_LIBS
|
||||
])
|
||||
|
||||
AS_IF([test x"$CUDARTLIB" = x -a x"$cudart_error" = "xno"],
|
||||
[
|
||||
AC_MSG_NOTICE([error: no libcudart found; check path for CUDA Toolkit first...])
|
||||
cudart_error="yes"
|
||||
])
|
||||
|
||||
AS_IF([test x"$cudart_error" = "xno"],
|
||||
[
|
||||
AC_MSG_CHECKING([whether CUDA runtime version >= 3.0])
|
||||
|
||||
sav_CPPFLAGS=$CPPFLAGS
|
||||
CPPFLAGS="$CPPFLAGS $CUDATKINCDIR"
|
||||
AC_TRY_COMPILE([#include "cuda_runtime_api.h"],
|
||||
[
|
||||
#ifndef CUDART_VERSION
|
||||
# error "CUDART_VERSION not defined"
|
||||
#elif CUDART_VERSION < 3000
|
||||
# error "CUDART_VERSION < 3000"
|
||||
#endif
|
||||
],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[
|
||||
AC_MSG_RESULT([no])
|
||||
AC_MSG_NOTICE([error: CUDA runtime version could not be determined and/or is incompatible (< 3.0)
|
||||
See \`config.log' for more details.])
|
||||
cudart_error="yes"
|
||||
])
|
||||
CPPFLAGS=$sav_CPPFLAGS
|
||||
])
|
||||
|
||||
AS_IF([test x"$cudart_error" = "xno"],
|
||||
[
|
||||
AC_CHECK_PROG(NVCC, nvcc, nvcc, , [$PATH$PATH_SEPARATOR$CUDATKDIR"bin/"])
|
||||
have_cudart="yes"
|
||||
])
|
||||
|
||||
AS_IF([test x"$cuda_error" = "xno"],
|
||||
[
|
||||
have_cuda="yes"
|
||||
],
|
||||
[
|
||||
dnl if no CUDA found, remove content of CUDATKLIBDIR to prevent adding them
|
||||
dnl to the linker flags when using the VT compiler wrappers
|
||||
CUDATKLIBDIR=
|
||||
])
|
||||
|
||||
AC_SUBST(CUDATKDIR)
|
||||
AC_SUBST(CUDATKINCDIR)
|
||||
AC_SUBST(CUDATKLIBDIR)
|
||||
AC_SUBST(CUDALIB)
|
||||
AC_SUBST(CUDARTLIB)
|
||||
])
|
@ -1,85 +0,0 @@
|
||||
AC_DEFUN([ACVT_CUDARTWRAP],
|
||||
[
|
||||
cudartwrap_error="no"
|
||||
check_cudartwrap="yes"
|
||||
have_cudartwrap="no"
|
||||
|
||||
cudartshlib_pathname=
|
||||
|
||||
AC_REQUIRE([ACVT_CUPTI])
|
||||
|
||||
AC_ARG_ENABLE(cudartwrap,
|
||||
AC_HELP_STRING([--enable-cudartwrap],
|
||||
[enable support for tracing the CUDA runtime API via library wrapping, default: enable if no CUPTI present]),
|
||||
[AS_IF([test x"$enableval" = "xyes"], [force_cudartwrap="yes"], [check_cudartwrap="no"])],
|
||||
[AS_IF([test x"$force_cudartwrap" = "xno" -a x"$have_cupti" = "xyes"], [check_cudartwrap="no"])])
|
||||
|
||||
AS_IF([test "$check_cudartwrap" = "yes"],
|
||||
[
|
||||
AC_REQUIRE([ACVT_CUDA])
|
||||
|
||||
AS_IF([test x"$have_cuda" != "xyes" -o x"$have_cudart" != "xyes"],
|
||||
[cudartwrap_error="yes"])
|
||||
|
||||
AS_IF([test x"$cudartwrap_error" = "xno"],
|
||||
[
|
||||
AC_ARG_WITH(cudart-shlib,
|
||||
AC_HELP_STRING([--with-cudart-shlib=CUDARTSHLIB], [give the pathname for the shared CUDA runtime library, default: automatically by configure]),
|
||||
[
|
||||
AS_IF([test x"$withval" = "xyes" -o x"$withval" = "xno"],
|
||||
[AC_MSG_ERROR([value of '--with-cudart-shlib' not properly set])])
|
||||
cudartshlib_pathname=$withval
|
||||
])
|
||||
])
|
||||
|
||||
AS_IF([test x"$cudartwrap_error" = "xno"],
|
||||
[
|
||||
AC_MSG_CHECKING([for pathname of shared CUDA runtime library])
|
||||
|
||||
AS_IF([test x"$cudartshlib_pathname" != x],
|
||||
[
|
||||
AC_MSG_RESULT([skipped (--with-cudart-shlib=$cudartshlib_pathname)])
|
||||
],
|
||||
[
|
||||
AS_IF([test x"$have_rtld_next" = "xyes"],
|
||||
[
|
||||
AC_MSG_RESULT([not needed])
|
||||
],
|
||||
[
|
||||
AS_IF([test x"$CUDATKLIBDIR" != x],
|
||||
[cudartlib_dir=`echo $CUDATKLIBDIR | sed s/\-L//`])
|
||||
cudartshlib_pathname=$cudartlib_dir`echo $CUDARTLIB | sed s/\-l/lib/`".so"
|
||||
|
||||
AS_IF([! test -f $cudartshlib_pathname],
|
||||
[
|
||||
AC_MSG_RESULT([unknown])
|
||||
AC_MSG_NOTICE([error: could not determine pathname of shared CUDA runtime library])
|
||||
cudartwrap_error="yes"
|
||||
],
|
||||
[
|
||||
AC_MSG_RESULT([$cudartshlib_pathname])
|
||||
])
|
||||
])
|
||||
])
|
||||
])
|
||||
|
||||
AS_IF([test x"$cudartwrap_error" = "xno"],
|
||||
[
|
||||
AS_IF([test x"$cudartshlib_pathname" != x],
|
||||
[
|
||||
AC_DEFINE_UNQUOTED([CUDARTSHLIB_PATHNAME],
|
||||
["$cudartshlib_pathname"], [pathname of shared CUDA runtime library])
|
||||
])
|
||||
have_cudartwrap="yes"
|
||||
])
|
||||
])
|
||||
|
||||
dnl if CUPTI found, CUPTILIB already contains CUDATKLIBDIR and CUDARTLIB;
|
||||
dnl remove content of CUDATKLIBDIR and CUDARTLIB to prevent double linking when
|
||||
dnl using the VT compiler wrappers
|
||||
AS_IF([test x"$have_cupti" = "xyes"],
|
||||
[
|
||||
CUDATKLIBDIR=
|
||||
CUDARTLIB=
|
||||
])
|
||||
])
|
@ -1,132 +0,0 @@
|
||||
AC_DEFUN([ACVT_CUPTI],
|
||||
[
|
||||
cupti_error="no"
|
||||
check_cupti="yes"
|
||||
force_cupti="no"
|
||||
have_cupti="no"
|
||||
have_cupti_events="no"
|
||||
have_cupti_callbacks="no"
|
||||
have_cupti_activity="no"
|
||||
|
||||
CUPTIDIR=
|
||||
CUPTIINCDIR=
|
||||
CUPTILIBDIR=
|
||||
CUPTILIB=
|
||||
|
||||
AC_REQUIRE([ACVT_CUDA])
|
||||
|
||||
AC_ARG_ENABLE(cupti,
|
||||
AC_HELP_STRING([--enable-cupti],
|
||||
[enable support for tracing CUDA via CUPTI, default: enable if found by configure]),
|
||||
[AS_IF([test x"$enableval" = "xyes"], [force_cupti="yes"], [check_cupti="no"])])
|
||||
|
||||
AC_ARG_WITH(cupti-dir,
|
||||
AC_HELP_STRING([--with-cupti-dir=CUPTIDIR],
|
||||
[give the path for CUPTI, default: /usr]),
|
||||
[CUPTIDIR="$withval/"],
|
||||
[AS_IF([test x"$CUDATKDIR" != x], [CUPTIDIR="$CUDATKDIR"extras/CUPTI/])])
|
||||
|
||||
AC_ARG_WITH(cupti-inc-dir,
|
||||
AC_HELP_STRING([--with-cupti-inc-dir=CUPTIINCDIR],
|
||||
[give the path for CUPTI-include files, default: CUPTIDIR/include]),
|
||||
[CUPTIINCDIR="-I$withval"],
|
||||
[AS_IF([test x"$CUPTIDIR" != x], [CUPTIINCDIR="-I$CUPTIDIR"include])])
|
||||
|
||||
AC_ARG_WITH(cupti-lib-dir,
|
||||
AC_HELP_STRING([--with-cupti-lib-dir=CUPTILIBDIR],
|
||||
[give the path for CUPTI-libraries, default: CUPTIDIR/lib64]),
|
||||
[CUPTILIBDIR="-L$withval"],
|
||||
[AS_IF([test x"$CUPTIDIR" != x], [CUPTILIBDIR="-L$CUPTIDIR"lib64])])
|
||||
|
||||
AC_ARG_WITH(cupti-lib,
|
||||
AC_HELP_STRING([--with-cupti-lib=CUPTILIB], [use given cupti lib, default: -lcupti CUDALIB]),
|
||||
[CUPTILIB="$withval"])
|
||||
|
||||
AS_IF([test "$check_cupti" = "yes"],
|
||||
[
|
||||
sav_CPPFLAGS=$CPPFLAGS
|
||||
CPPFLAGS="$CPPFLAGS $CUPTIINCDIR $CUDATKINCDIR"
|
||||
AC_CHECK_HEADER([cupti.h], [],
|
||||
[
|
||||
AC_MSG_NOTICE([error: no cupti.h found; check path for CUPTI package first...])
|
||||
cupti_error="yes"
|
||||
])
|
||||
CPPFLAGS=$sav_CPPFLAGS
|
||||
|
||||
AS_IF([test x"$CUPTILIB" = x -a x"$cupti_error" = "xno"],
|
||||
[
|
||||
sav_LIBS=$LIBS
|
||||
LIBS="$LIBS $CUPTILIBDIR -lcupti $CUDATKLIBDIR $CUDALIB $CUDARTLIB"
|
||||
AC_MSG_CHECKING([whether linking with -lcupti works])
|
||||
AC_TRY_LINK([],[],
|
||||
[AC_MSG_RESULT([yes]); CUPTILIB="-lcupti $CUDATKLIBDIR $CUDALIB $CUDARTLIB"],[AC_MSG_RESULT([no])])
|
||||
LIBS=$sav_LIBS
|
||||
])
|
||||
|
||||
AS_IF([test x"$CUPTILIB" = x -a x"$cupti_error" = "xno"],
|
||||
[
|
||||
AC_MSG_NOTICE([error: no libcupti found; check path for CUPTI package first...])
|
||||
cupti_error="yes"
|
||||
])
|
||||
|
||||
AS_IF([test x"$cupti_error" = "xno"],
|
||||
[
|
||||
sav_CPPFLAGS=$CPPFLAGS
|
||||
CPPFLAGS="$CPPFLAGS $CUPTIINCDIR $CUDATKINCDIR"
|
||||
|
||||
AC_MSG_CHECKING([whether CUPTI API version >= 2 & <= 4])
|
||||
AC_TRY_COMPILE([#include "cupti_version.h"],
|
||||
[
|
||||
#ifndef CUPTI_API_VERSION
|
||||
# error "CUPTI_API_VERSION not defined"
|
||||
#elif CUPTI_API_VERSION < 2
|
||||
# error "CUPTI_API_VERSION < 2"
|
||||
#elif CUPTI_API_VERSION > 4
|
||||
# error "CUPTI_API_VERSION > 4"
|
||||
#endif
|
||||
],
|
||||
[
|
||||
AC_MSG_RESULT([yes])
|
||||
have_cupti="yes"
|
||||
],
|
||||
[
|
||||
AC_MSG_RESULT([no])
|
||||
AC_MSG_NOTICE([error: CUPTI API version could not be determined and/or is incompatible (< 2 o. > 4)
|
||||
See \`config.log' for more details.])
|
||||
cupti_error="yes"
|
||||
])
|
||||
|
||||
CPPFLAGS=$sav_CPPFLAGS
|
||||
])
|
||||
|
||||
AS_IF([test x"$cupti_error" = "xno"],
|
||||
[
|
||||
sav_CPPFLAGS=$CPPFLAGS
|
||||
CPPFLAGS="$CPPFLAGS $CUPTIINCDIR $CUDATKINCDIR"
|
||||
|
||||
AC_CHECK_HEADER([cupti_events.h], [have_cupti_events="yes"],
|
||||
[
|
||||
AC_MSG_NOTICE([error: no cupti_events.h found])
|
||||
])
|
||||
AC_CHECK_HEADER([cupti_callbacks.h], [have_cupti_callbacks="yes"],
|
||||
[
|
||||
AC_MSG_NOTICE([error: no cupti_callbacks.h found])
|
||||
])
|
||||
AC_CHECK_HEADER([cupti_activity.h], [have_cupti_activity="yes"],
|
||||
[
|
||||
AC_MSG_NOTICE([error: no cupti_activity.h found])
|
||||
])
|
||||
|
||||
CPPFLAGS=$sav_CPPFLAGS
|
||||
])
|
||||
])
|
||||
|
||||
dnl if no CUPTI found, remove content of CUPTILIBDIR to prevent adding them
|
||||
dnl to the linker flags when using the VT compiler wrappers
|
||||
AS_IF([test x"$have_cupti" = "xno"],
|
||||
[CUPTILIBDIR=])
|
||||
|
||||
AC_SUBST(CUPTIINCDIR)
|
||||
AC_SUBST(CUPTILIBDIR)
|
||||
AC_SUBST(CUPTILIB)
|
||||
])
|
@ -1,67 +0,0 @@
|
||||
AC_DEFUN([ACVT_CXXRTLIB],
|
||||
[
|
||||
cxxrtlib_error="no"
|
||||
|
||||
cxxrtlib=
|
||||
|
||||
AC_ARG_WITH(cxxrtlib,
|
||||
AC_HELP_STRING([--with-cxxrtlib=CXXRTLIB],
|
||||
[use given C++ runtime library, default: automatically by configure]),
|
||||
[
|
||||
AS_IF([test x"$withval" = "xyes" -o x"$withval" = "xno"],
|
||||
[AC_MSG_ERROR([value of '--with-cxxrtlib' not properly set])])
|
||||
cxxrtlib=$withval
|
||||
])
|
||||
|
||||
AC_MSG_CHECKING([for C++ runtime library])
|
||||
|
||||
AS_IF([test x"$cxxrtlib" = x],
|
||||
[
|
||||
AC_LANG([C++])
|
||||
AC_TRY_COMPILE([#include <list>],
|
||||
[
|
||||
std::list<int> l;
|
||||
l.push_back(100);
|
||||
],
|
||||
[cp -f conftest.$ac_objext conftest_cxxrtlib.$ac_objext],
|
||||
[cxxrtlib_error="yes"])
|
||||
AC_LANG([C])
|
||||
|
||||
libs_to_check="-lstdc++ \
|
||||
-lCrun -lCstd \
|
||||
-lstlport \
|
||||
-libmc++;-lstdc++;-lm;-lc \
|
||||
-lxlopt;-lxl;-libmc++;-lstdc++;-lm;-lc \
|
||||
-lC \
|
||||
-lstd;-lC \
|
||||
-lstd;-lC;-lzceh \
|
||||
-lstdz;-lCz;-lzceh \
|
||||
-lstdz;-lCz;-lzceh;-lgcc_eh \
|
||||
-lstdc++;-lm;-lc \
|
||||
-limf;-lm;-lipgo;-lstdc++;-lirc;-lipr;-lirc;-lc;-lirc_s;-ldl;-lc \
|
||||
-lC++ \
|
||||
-lcray-c++-rts;-lcraystdc++"
|
||||
|
||||
AS_IF([test x"$cxxrtlib_error" = "xno"],
|
||||
[
|
||||
for lib in $libs_to_check
|
||||
do
|
||||
lib=`echo $lib | sed s/\;/\ /g`
|
||||
|
||||
eval "$CC -o conftest_cxxrtlib$ac_exeext $CFLAGS $LDFLAGS conftest_cxxrtlib.$ac_objext $LIBS $lib >/dev/null 2>&1"
|
||||
AS_IF([test x"$?" = "x0"],
|
||||
[
|
||||
cxxrtlib="$lib"
|
||||
break
|
||||
])
|
||||
done
|
||||
rm -f conftest_cxxrtlib*
|
||||
|
||||
AS_IF([test x"$cxxrtlib" = x], [cxxrtlib_error="yes"])
|
||||
])
|
||||
])
|
||||
|
||||
AS_IF([test x"$cxxrtlib_error" = "xno"],
|
||||
[AC_MSG_RESULT([$cxxrtlib])], [AC_MSG_RESULT([unknown])])
|
||||
])
|
||||
|
@ -1,99 +0,0 @@
|
||||
AC_DEFUN([ACVT_DL],
|
||||
[
|
||||
dl_error="no"
|
||||
have_dl="no"
|
||||
|
||||
have_rtld_default="no"
|
||||
have_rtld_next="no"
|
||||
|
||||
DLDIR=
|
||||
DLINCDIR=
|
||||
DLLIBDIR=
|
||||
DLLIB=
|
||||
|
||||
AC_REQUIRE([ACVT_PLATFORM])
|
||||
|
||||
AC_ARG_WITH(dl-dir,
|
||||
AC_HELP_STRING([--with-dl-dir=DLDIR], [give the path for libdl, default: /usr]),
|
||||
[DLDIR="$withval/"])
|
||||
|
||||
AC_ARG_WITH(dl-inc-dir,
|
||||
AC_HELP_STRING([--with-dl-inc-dir=DLINCDIR],
|
||||
[give the path for libdl-include files, default: DLDIR/include]),
|
||||
[DLINCDIR="-I$withval"],
|
||||
[AS_IF([test x"$DLDIR" != x], [DLINCDIR="-I$DLDIR"include])])
|
||||
|
||||
AC_ARG_WITH(dl-lib-dir,
|
||||
AC_HELP_STRING([--with-dl-lib-dir=DLLIBDIR],
|
||||
[give the path for libdl-libraries, default: DLDIR/lib]),
|
||||
[DLLIBDIR="-L$withval"],
|
||||
[AS_IF([test x"$DLDIR" != x], [DLLIBDIR="-L$DLDIR"lib])])
|
||||
|
||||
AC_ARG_WITH(dl-lib,
|
||||
AC_HELP_STRING([--with-dl-lib=DLLIB], [use given libdl lib, default: -ldl]),
|
||||
[DLLIB="$withval"])
|
||||
|
||||
AS_IF([test "$PLATFORM" = "bgl"],
|
||||
[
|
||||
AC_MSG_NOTICE([error: dynamic linking library (libdl) isn't suitable on this platform])
|
||||
dl_error="yes"
|
||||
])
|
||||
AS_IF([test "$PLATFORM" = "bgp" -o "$PLATFORM" = "bgq"],
|
||||
[
|
||||
AS_IF([test x"$enable_shared" = "xno"],
|
||||
[
|
||||
ac_cv_have_decl_RTLD_DEFAULT="no"
|
||||
ac_cv_have_decl_RTLD_NEXT="no"
|
||||
])
|
||||
])
|
||||
AS_IF([test "$PLATFORM" = "crayxt" -o "$PLATFORM" = "crayxe"],
|
||||
[
|
||||
ac_cv_have_decl_RTLD_DEFAULT="no"
|
||||
ac_cv_have_decl_RTLD_NEXT="no"
|
||||
])
|
||||
|
||||
AS_IF([test x"$dl_error" = "xno"],
|
||||
[
|
||||
sav_CPPFLAGS=$CPPFLAGS
|
||||
CPPFLAGS="$CPPFLAGS $DLINCDIR"
|
||||
AC_CHECK_HEADER([dlfcn.h], [],
|
||||
[
|
||||
AC_MSG_NOTICE([error: no dlfcn.h found; check path for libdl package first...])
|
||||
dl_error="yes"
|
||||
])
|
||||
CPPFLAGS=$sav_CPPFLAGS
|
||||
])
|
||||
|
||||
AS_IF([test x"$DLLIB" = x -a x"$dl_error" = "xno"],
|
||||
[
|
||||
sav_LIBS=$LIBS
|
||||
LIBS="$LIBS $DLLIBDIR -ldl"
|
||||
AC_MSG_CHECKING([whether linking with -ldl works])
|
||||
AC_TRY_LINK([],[],
|
||||
[AC_MSG_RESULT([yes]); DLLIB=-ldl],[AC_MSG_RESULT([no])])
|
||||
LIBS=$sav_LIBS
|
||||
])
|
||||
|
||||
AS_IF([test x"$DLLIB" = x -a x"$dl_error" = "xno"],
|
||||
[
|
||||
AC_MSG_NOTICE([error: no libdl found; check path for libdl package first...])
|
||||
dl_error="yes"
|
||||
])
|
||||
|
||||
AS_IF([test x"$dl_error" = "xno"],
|
||||
[
|
||||
have_dl="yes"
|
||||
AC_DEFINE([HAVE_DL], [1], [Define to 1 if you have the DL.])
|
||||
|
||||
sav_CPPFLAGS=$CPPFLAGS
|
||||
CPPFLAGS="$CPPFLAGS $DLINCDIR -D_GNU_SOURCE"
|
||||
AC_CHECK_DECLS([RTLD_DEFAULT], [have_rtld_default="yes"], [], [#include <dlfcn.h>])
|
||||
AC_CHECK_DECLS([RTLD_NEXT], [have_rtld_next="yes"], [], [#include <dlfcn.h>])
|
||||
CPPFLAGS=$sav_CPPFLAGS
|
||||
])
|
||||
|
||||
AC_SUBST(DLINCDIR)
|
||||
AC_SUBST(DLLIBDIR)
|
||||
AC_SUBST(DLLIB)
|
||||
])
|
||||
|
@ -1,136 +0,0 @@
|
||||
AC_DEFUN([ACVT_DYNINST],
|
||||
[
|
||||
dyninst_error="no"
|
||||
dynattlib_error="no"
|
||||
check_dyninst="yes"
|
||||
force_dyninst="no"
|
||||
check_dynattlib="yes"
|
||||
force_dynattlib="no"
|
||||
build_dynattlib="no"
|
||||
have_dyninst="no"
|
||||
|
||||
DYNIDIR=
|
||||
DYNIINCDIR=
|
||||
DYNILIBDIR=
|
||||
DYNILIB=
|
||||
VTDYNATTLIB=
|
||||
|
||||
AC_ARG_ENABLE(dyninst,
|
||||
AC_HELP_STRING([--enable-dyninst],
|
||||
[enable support for binary instrumentation by using Dyninst, default: enable if found by configure]),
|
||||
[AS_IF([test x"$enableval" = "xyes"], [force_dyninst="yes"], [check_dyninst="no"])])
|
||||
|
||||
AC_ARG_ENABLE(dyninst-attlib,
|
||||
AC_HELP_STRING([--enable-dyninst-attlib],
|
||||
[build shared library which attaches Dyninst to running application, default: enable if Dyninst found by configure and system supports shared libraries]),
|
||||
[AS_IF([test x"$enableval" = "xyes"], [force_dyninst="yes"; check_dyninst="yes"; force_dynattlib="yes"; build_dynattlib="yes"], [check_dynattlib="no"])])
|
||||
|
||||
AC_ARG_WITH(dyninst-dir,
|
||||
AC_HELP_STRING([--with-dyninst-dir=DYNIDIR], [give the path for Dyninst, default: /usr]),
|
||||
[DYNIDIR="$withval/"])
|
||||
|
||||
AC_ARG_WITH(dyninst-inc-dir,
|
||||
AC_HELP_STRING([--with-dyninst-inc-dir=DYNIINCDIR],
|
||||
[give the path for Dyninst-include files, default: DYNIDIR/include]),
|
||||
[DYNIINCDIR="-I$withval"],
|
||||
[AS_IF([test x"$DYNIDIR" != x], [DYNIINCDIR="-I$DYNIDIR"include])])
|
||||
|
||||
AC_ARG_WITH(dyninst-lib-dir,
|
||||
AC_HELP_STRING([--with-dyninst-lib-dir=DYNILIBDIR],
|
||||
[give the path for Dyninst-libraries, default: DYNIDIR/lib]),
|
||||
[DYNILIBDIR="-L$withval"],
|
||||
[AS_IF([test x"$DYNIDIR" != x], [DYNILIBDIR="-L$DYNIDIR"lib])])
|
||||
|
||||
AC_ARG_WITH(dyninst-lib,
|
||||
AC_HELP_STRING([--with-dyninst-lib=DYNILIB], [use given Dyninst lib, default: -ldyninstAPI]),
|
||||
[DYNILIB="$withval"])
|
||||
|
||||
AS_IF([test "$check_dyninst" = "yes"],
|
||||
[
|
||||
AC_LANG([C++])
|
||||
|
||||
AS_IF([test x"$dyninst_error" = "xno"],
|
||||
[
|
||||
sav_CPPFLAGS=$CPPFLAGS
|
||||
CPPFLAGS="$CPPFLAGS $DYNIINCDIR"
|
||||
AC_CHECK_HEADER([BPatch.h], [],
|
||||
[
|
||||
AC_MSG_NOTICE([error: no BPatch.h found; check path for Dyninst package first...])
|
||||
dyninst_error="yes"
|
||||
])
|
||||
CPPFLAGS=$sav_CPPFLAGS
|
||||
])
|
||||
|
||||
AS_IF([test x"$DYNILIB" = x -a x"$dyninst_error" = "xno"],
|
||||
[
|
||||
sav_LIBS=$LIBS
|
||||
LIBS="$LIBS $DYNILIBDIR -ldyninstAPI"
|
||||
AC_MSG_CHECKING([whether linking with -ldyninstAPI works])
|
||||
AC_TRY_LINK([],[],
|
||||
[AC_MSG_RESULT([yes]); DYNILIB="-ldyninstAPI"],
|
||||
[AC_MSG_RESULT([no])])
|
||||
LIBS=$sav_LIBS
|
||||
])
|
||||
|
||||
AS_IF([test x"$DYNILIB" = x -a x"$dyninst_error" = "xno"],
|
||||
[
|
||||
AC_MSG_NOTICE([error: no libdyninstAPI found; check path for Dyninst package first...])
|
||||
dyninst_error="yes"
|
||||
])
|
||||
|
||||
AS_IF([test x"$dyninst_error" = "xno"],
|
||||
[
|
||||
AC_MSG_CHECKING([whether Dyninst version >= 6.1])
|
||||
|
||||
sav_CXXFLAGS=$CXXFLAGS
|
||||
CXXFLAGS="$CXXFLAGS $DYNIINCDIR"
|
||||
AC_TRY_COMPILE([#include <BPatch.h>],
|
||||
[
|
||||
#ifndef DYNINST_6_1
|
||||
# error "DYNINST_6_1 not defined"
|
||||
#endif
|
||||
],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[
|
||||
AC_MSG_RESULT([no])
|
||||
AC_MSG_NOTICE([error: Dyninst version could not be determined and/or is incompatible (< 6.1)
|
||||
See \`config.log' for more details.])
|
||||
dyninst_error="yes"
|
||||
])
|
||||
CXXFLAGS=$sav_CXXFLAGS
|
||||
])
|
||||
|
||||
AC_LANG([C])
|
||||
|
||||
AS_IF([test x"$dyninst_error" = "xno"],
|
||||
[
|
||||
have_dyninst="yes"
|
||||
ACVT_CONF_SUBSUBTITLE([Dyninst attach library])
|
||||
AS_IF([test x"$check_dynattlib" = "xyes"],
|
||||
[
|
||||
AC_MSG_CHECKING([whether we can build shared libraries])
|
||||
AS_IF([test x"$enable_shared" = "xyes"],
|
||||
[
|
||||
AC_MSG_RESULT([yes])
|
||||
build_dynattlib="yes"
|
||||
VTDYNATTLIB="-lvt-dynatt"
|
||||
],
|
||||
[
|
||||
AC_MSG_RESULT([no])
|
||||
dynattlib_error="yes"
|
||||
])
|
||||
],
|
||||
[
|
||||
AS_IF([test x"$enable_config_titles" = "xyes"],
|
||||
[AC_MSG_NOTICE([disabled via command line switch])])
|
||||
])
|
||||
|
||||
])
|
||||
])
|
||||
|
||||
AC_SUBST(DYNIINCDIR)
|
||||
AC_SUBST(DYNILIBDIR)
|
||||
AC_SUBST(DYNILIB)
|
||||
AC_SUBST(VTDYNATTLIB)
|
||||
])
|
||||
|
@ -1,26 +0,0 @@
|
||||
AC_DEFUN([ACVT_ETIMESYNC],
|
||||
[
|
||||
etimesync_error="no"
|
||||
check_etimesync="yes"
|
||||
force_etimesync="no"
|
||||
build_etimesync="no"
|
||||
|
||||
AC_ARG_ENABLE(etimesync,
|
||||
AC_HELP_STRING([--enable-etimesync],
|
||||
[enable enhanced time synchronization support, default: enable if LAPACK found by configure]),
|
||||
[AS_IF([test x"$enableval" = "xyes"], [force_etimesync="yes"], [check_etimesync="no"])])
|
||||
|
||||
AS_IF([test x"$check_etimesync" = "xyes"],
|
||||
[
|
||||
AS_IF([test x"$math_error" = x], [ACVT_MATH])
|
||||
AS_IF([test x"$have_math" = "xno"], [etimesync_error="yes"])
|
||||
|
||||
AS_IF([test x"$etimesync_error" = "xno"],
|
||||
[
|
||||
ACVT_CLAPACK
|
||||
AS_IF([test x"$have_clapack" = "xyes"],
|
||||
[build_etimesync="yes"], [etimesync_error="yes"])
|
||||
])
|
||||
])
|
||||
])
|
||||
|
@ -1,34 +0,0 @@
|
||||
AC_DEFUN([ACVT_EXECWRAP],
|
||||
[
|
||||
execwrap_error="no"
|
||||
check_execwrap="yes"
|
||||
have_execwrap="no"
|
||||
|
||||
AC_ARG_ENABLE(exectrace,
|
||||
AC_HELP_STRING([--enable-exectrace],
|
||||
[enable support for tracing LIBC functions for creating and controling child processes (e.g. execl,fork,system,wait) via library wrapping, default: enable]),
|
||||
[AS_IF([test x"$enableval" = "xyes"], [force_execwrap="yes"], [check_execwrap="no"])])
|
||||
|
||||
AS_IF([test "$check_execwrap" = "yes"],
|
||||
[
|
||||
AS_IF([test x"$shlibc_pathname" = x],
|
||||
[
|
||||
AC_MSG_NOTICE([error: pathname of shared LIBC required for LIBC-EXEC tracing; please specify it by --with-shlibc])
|
||||
execwrap_error="yes"
|
||||
])
|
||||
|
||||
AS_IF([test x"$execwrap_error" = "xno"],
|
||||
[
|
||||
AC_CHECK_TYPES([__WAIT_STATUS], [], [], [#include <sys/wait.h>])
|
||||
|
||||
sav_CPPFLAGS=$CPPFLAGS
|
||||
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE -D_SVID_SOURCE -D_BSD_SOURCE"
|
||||
AC_CHECK_DECLS([environ], [], [], [#include <unistd.h>])
|
||||
AC_CHECK_FUNCS([execvpe fexecve waitid wait3 wait4])
|
||||
CPPFLAGS=$sav_CPPFLAGS
|
||||
|
||||
have_execwrap="yes"
|
||||
])
|
||||
])
|
||||
])
|
||||
|
@ -1,46 +0,0 @@
|
||||
AC_DEFUN([ACVT_GETCPU],
|
||||
[
|
||||
getcpu_error="no"
|
||||
check_getcpu="yes"
|
||||
force_getcpu="no"
|
||||
have_getcpu="no"
|
||||
|
||||
AC_ARG_ENABLE(cpuidtrace,
|
||||
AC_HELP_STRING([--enable-cpuidtrace], [enable CPU ID tracing support, default: enable if found by configure]),
|
||||
[AS_IF([test x"$enableval" = "xyes"], [force_getcpu="yes"], [check_getcpu="no"])])
|
||||
|
||||
AS_IF([test x"$check_getcpu" = "xyes"],
|
||||
[
|
||||
AC_CHECK_HEADER([sched.h], [],
|
||||
[
|
||||
AC_MSG_NOTICE([error: no sched.h found])
|
||||
getcpu_error="yes"
|
||||
])
|
||||
|
||||
AS_IF([test x"$getcpu_error" = "xno"],
|
||||
[
|
||||
sav_CPPFLAGS=$CPPFLAGS
|
||||
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
|
||||
AC_CHECK_FUNC([sched_getcpu], [], [getcpu_error="yes"])
|
||||
CPPFLAGS=$sav_CPPFLAGS
|
||||
])
|
||||
|
||||
AS_IF([test x"$getcpu_error" = "xno" -a x"$cross_compiling" = "xno"],
|
||||
[
|
||||
AC_MSG_CHECKING([whether sched_getcpu works])
|
||||
AC_TRY_RUN(
|
||||
[
|
||||
#define _GNU_SOURCE
|
||||
#include <sched.h>
|
||||
int main() { return (sched_getcpu() != -1) ? 0 : 1; }
|
||||
],
|
||||
[AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); getcpu_error="yes"], [])
|
||||
])
|
||||
|
||||
AS_IF([test x"$getcpu_error" = "xno"],
|
||||
[
|
||||
have_getcpu="yes"
|
||||
])
|
||||
])
|
||||
])
|
||||
|
@ -1,155 +0,0 @@
|
||||
AC_DEFUN([ACVT_IOFSL],
|
||||
[
|
||||
iofsl_error="no"
|
||||
check_iofsl="yes"
|
||||
force_iofsl="no"
|
||||
have_iofsl="no"
|
||||
|
||||
zoidfs_lib_default="-lzoidfsclient -lzoidfs-util -lzoidfshints -liofsl-c-util"
|
||||
bmi_lib_default="-lbmi -lpthread"
|
||||
|
||||
ZOIDFSDIR=
|
||||
ZOIDFSINCDIR=
|
||||
ZOIDFSLIBDIR=
|
||||
ZOIDFSLIB=
|
||||
|
||||
BMIDIR=
|
||||
BMIINCDIR=
|
||||
BMILIBDIR=
|
||||
BMILIB=
|
||||
|
||||
IOFSLSCRIPTS=
|
||||
|
||||
AC_ARG_ENABLE(iofsl,
|
||||
AC_HELP_STRING([--enable-iofsl],
|
||||
[enable IOFSL support, default: enable if found by configure]),
|
||||
[AS_IF([test x"$enableval" = "xyes"], [force_iofsl="yes"], [check_iofsl="no"])])
|
||||
|
||||
AC_ARG_WITH(zoidfs-dir,
|
||||
AC_HELP_STRING([--with-zoidfs-dir=ZOIDFSDIR], [give the path for ZOIDFS, default: /usr]),
|
||||
[ZOIDFSDIR="$withval/"])
|
||||
|
||||
AC_ARG_WITH(zoidfs-inc-dir,
|
||||
AC_HELP_STRING([--with-zoidfs-inc-dir=ZOIDFSINCDIR],
|
||||
[give the path for ZOIDFS-include files, default: ZOIDFSDIR/include]),
|
||||
[ZOIDFSINCDIR="-I$withval"],
|
||||
[AS_IF([test x"$ZOIDFSDIR" != x], [ZOIDFSINCDIR="-I$ZOIDFSDIR"include])])
|
||||
|
||||
AC_ARG_WITH(zoidfs-lib-dir,
|
||||
AC_HELP_STRING([--with-zoidfs-lib-dir=ZOIDFSLIBDIR],
|
||||
[give the path for ZOIDFS-libraries, default: ZOIDFSDIR/lib]),
|
||||
[ZOIDFSLIBDIR="-L$withval"],
|
||||
[AS_IF([test x"$ZOIDFSDIR" != x], [ZOIDFSLIBDIR="-L$ZOIDFSDIR"lib])])
|
||||
|
||||
AC_ARG_WITH(zoidfs-lib,
|
||||
AC_HELP_STRING([--with-zoidfs-lib=ZOIDFSLIB], [use given zoidfs lib, default: $zoidfs_lib_default BMILIBDIR BMILIB]),
|
||||
[ZOIDFSLIB="$withval"])
|
||||
|
||||
AC_ARG_WITH(bmi-dir,
|
||||
AC_HELP_STRING([--with-bmi-dir=BMIDIR], [give the path for BMI, default: ZOIDFSDIR]),
|
||||
[BMIDIR="$withval/"])
|
||||
|
||||
AC_ARG_WITH(bmi-inc-dir,
|
||||
AC_HELP_STRING([--with-bmi-inc-dir=BMIINCDIR],
|
||||
[give the path for BMI-include files, default: BMIDIR/include]),
|
||||
[BMIINCDIR="-I$withval"],
|
||||
[AS_IF([test x"$BMIDIR" != x], [BMIINCDIR="-I$BMIDIR"include])])
|
||||
|
||||
AC_ARG_WITH(bmi-lib-dir,
|
||||
AC_HELP_STRING([--with-bmi-lib-dir=BMILIBDIR],
|
||||
[give the path for BMI-libraries, default: BMIDIR/lib]),
|
||||
[BMILIBDIR="-L$withval"],
|
||||
[AS_IF([test x"$BMIDIR" != x], [BMILIBDIR="-L$BMIDIR"lib])])
|
||||
|
||||
AC_ARG_WITH(bmi-lib,
|
||||
AC_HELP_STRING([--with-bmi-lib=BMILIB], [use given bmi lib, default: $bmi_lib_default]),
|
||||
[BMILIB="$withval"])
|
||||
|
||||
AC_ARG_ENABLE(iofsl-scripts,
|
||||
AC_HELP_STRING([--enable-iofsl-scripts=PLATFORM],
|
||||
[build IOFSL scripts for given platform, possible values: crayxk6, default: disabled]),
|
||||
[
|
||||
AS_IF([test x"$enableval" != "xno"],
|
||||
[
|
||||
AS_IF([test x"$enableval" != "xcrayxk6"],
|
||||
[AC_MSG_ERROR([value of '--enable-iofsl-scripts' not properly set])],
|
||||
[IOFSLSCRIPTS=$enableval])
|
||||
])
|
||||
])
|
||||
|
||||
AS_IF([test x"$check_iofsl" = "xyes"],
|
||||
[
|
||||
sav_CPPFLAGS=$CPPFLAGS
|
||||
CPPFLAGS="$CPPFLAGS $ZOIDFSINCDIR $BMIINCDIR"
|
||||
AC_CHECK_HEADER([bmi.h], [],
|
||||
[
|
||||
AC_MSG_NOTICE([error: no bmi.h found; check path for BMI package first...])
|
||||
iofsl_error="yes"
|
||||
])
|
||||
CPPFLAGS=$sav_CPPFLAGS
|
||||
|
||||
AS_IF([test x"$BMILIB" = x -a x"$iofsl_error" = "xno"],
|
||||
[
|
||||
sav_LIBS=$LIBS
|
||||
LIBS="$LIBS $ZOIDFSLIBDIR $BMILIBDIR $bmi_lib_default"
|
||||
AC_MSG_CHECKING([whether linking with $bmi_lib_default works])
|
||||
AC_TRY_LINK([],[],
|
||||
[AC_MSG_RESULT([yes]); BMILIB=$bmi_lib_default],[AC_MSG_RESULT([no])])
|
||||
LIBS=$sav_LIBS
|
||||
])
|
||||
|
||||
AS_IF([test x"$BMILIB" = x -a x"$iofsl_error" = "xno"],
|
||||
[
|
||||
AC_MSG_NOTICE([error: no libbmi found; check path for BMI package first...])
|
||||
iofsl_error="yes"
|
||||
])
|
||||
|
||||
AS_IF([test x"$iofsl_error" = "xno"],
|
||||
[
|
||||
sav_CPPFLAGS=$CPPFLAGS
|
||||
CPPFLAGS="$CPPFLAGS $ZOIDFSINCDIR"
|
||||
AC_CHECK_HEADER([zoidfs.h], [],
|
||||
[
|
||||
AC_MSG_NOTICE([error: no zoidfs.h found; check path for ZOIDFS package first...])
|
||||
iofsl_error="yes"
|
||||
])
|
||||
CPPFLAGS=$sav_CPPFLAGS
|
||||
|
||||
AS_IF([test x"$ZOIDFSLIB" = x -a x"$iofsl_error" = "xno"],
|
||||
[
|
||||
sav_LIBS=$LIBS
|
||||
LIBS="$LIBS $ZOIDFSLIBDIR $zoidfs_lib_default $BMILIBDIR $BMILIB"
|
||||
AC_MSG_CHECKING([whether linking with $zoidfs_lib_default $BMILIBDIR $BMILIB works])
|
||||
AC_TRY_LINK([],[],
|
||||
[AC_MSG_RESULT([yes]); ZOIDFSLIB=$zoidfs_lib_default],[AC_MSG_RESULT([no])])
|
||||
LIBS=$sav_LIBS
|
||||
])
|
||||
|
||||
AS_IF([test x"$ZOIDFSLIB" = x -a x"$iofsl_error" = "xno"],
|
||||
[
|
||||
AC_MSG_NOTICE([error: no zoidfs library found; check path for ZOIDFS package first...])
|
||||
iofsl_error="yes"
|
||||
])
|
||||
])
|
||||
|
||||
AS_IF([test x"$iofsl_error" = "xno"],
|
||||
[
|
||||
have_iofsl="yes"
|
||||
AC_DEFINE([HAVE_IOFSL], [1], [Define to 1 if VT is configured with IOFSL support.])
|
||||
],
|
||||
[
|
||||
AS_IF([test x"$force_iofsl" = "xyes"], [exit 1])
|
||||
])
|
||||
])
|
||||
|
||||
AC_SUBST(ZOIDFSDIR)
|
||||
AC_SUBST(ZOIDFSINCDIR)
|
||||
AC_SUBST(ZOIDFSLIBDIR)
|
||||
AC_SUBST(ZOIDFSLIB)
|
||||
AC_SUBST(BMIDIR)
|
||||
AC_SUBST(BMIINCDIR)
|
||||
AC_SUBST(BMILIBDIR)
|
||||
AC_SUBST(BMILIB)
|
||||
AC_SUBST(IOFSLSCRIPTS)
|
||||
])
|
||||
|
@ -1,53 +0,0 @@
|
||||
AC_DEFUN([ACVT_IOWRAP],
|
||||
[
|
||||
iowrap_error="no"
|
||||
check_iowrap="yes"
|
||||
have_iowrap="no"
|
||||
|
||||
AC_ARG_ENABLE(iotrace,
|
||||
AC_HELP_STRING([--enable-iotrace],
|
||||
[enable support for tracing LIBC I/O functions (e.g. fopen,fclose,fread,fwrite) via library wrapping, default: enable]),
|
||||
[AS_IF([test x"$enableval" = "xyes"], [force_iowrap="yes"], [check_iowrap="no"])])
|
||||
|
||||
|
||||
AS_IF([test "$check_iowrap" = "yes"],
|
||||
[
|
||||
AS_IF([test x"$shlibc_pathname" = x],
|
||||
[
|
||||
AC_MSG_NOTICE([error: pathname of shared LIBC required for LIBC-I/O tracing; please specify it by --with-shlibc])
|
||||
iowrap_error="yes"
|
||||
])
|
||||
|
||||
AS_IF([test x"$iowrap_error" = "xno"],
|
||||
[
|
||||
sav_CPPFLAGS=$CPPFLAGS
|
||||
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE -D_LARGEFILE64_SOURCE"
|
||||
|
||||
AC_CHECK_FUNCS([ \
|
||||
creat64 \
|
||||
fopen64 \
|
||||
fseeko \
|
||||
fseeko64 \
|
||||
lseek64 \
|
||||
fsetpos64 \
|
||||
open64 \
|
||||
pread64 \
|
||||
pwrite64 \
|
||||
flockfile \
|
||||
ftrylockfile \
|
||||
funlockfile \
|
||||
sync \
|
||||
fflush \
|
||||
fsync \
|
||||
fdatasync \
|
||||
lockf])
|
||||
|
||||
AC_CHECK_DECLS([__fprintf_chk], [], [], [#include <stdio.h>])
|
||||
|
||||
CPPFLAGS=$sav_CPPFLAGS
|
||||
|
||||
have_iowrap="yes"
|
||||
])
|
||||
])
|
||||
])
|
||||
|
@ -1,55 +0,0 @@
|
||||
AC_DEFUN([ACVT_JAVA],
|
||||
[
|
||||
java_error="no"
|
||||
check_java="yes"
|
||||
force_java="no"
|
||||
have_java="no"
|
||||
|
||||
VTJAVALIB=
|
||||
|
||||
AC_REQUIRE([ACVT_PLATFORM])
|
||||
|
||||
AC_ARG_ENABLE(java,
|
||||
AC_HELP_STRING([--enable-java],
|
||||
[enable Java support, default: enable if JVMTI found by configure]),
|
||||
[AS_IF([test x"$enableval" = "xyes"], [force_java="yes"], [check_java="no"])])
|
||||
|
||||
AS_IF([test x"$check_java" = "xyes"],
|
||||
[
|
||||
AS_IF([test "$PLATFORM" = "bgp" -o "$PLATFORM" = "bgq"],
|
||||
[
|
||||
AC_MSG_NOTICE([error: Java tracing not supported on this platform])
|
||||
java_error="yes"
|
||||
])
|
||||
|
||||
AS_IF([test x"$java_error" = "xno"],
|
||||
[
|
||||
AC_MSG_CHECKING([whether we can build shared libraries])
|
||||
AS_IF([test x"$enable_shared" = "xyes"],
|
||||
[AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); java_error="yes"])
|
||||
])
|
||||
|
||||
AS_IF([test x"$java_error" = "xno"],
|
||||
[
|
||||
ACVT_JVMTI
|
||||
AS_IF([test x"$jvmti_error" = "xyes"],
|
||||
[java_error="yes"])
|
||||
])
|
||||
|
||||
AS_IF([test x"$java_error" = "xno"],
|
||||
[
|
||||
AS_IF([test "$PLATFORM" = "macos"],
|
||||
[
|
||||
VTJAVALIB="libvt-java.jnilib"
|
||||
],
|
||||
[
|
||||
VTJAVALIB="libvt-java$SHREXT"
|
||||
])
|
||||
|
||||
have_java="yes"
|
||||
])
|
||||
])
|
||||
|
||||
AC_SUBST(VTJAVALIB)
|
||||
])
|
||||
|
@ -1,50 +0,0 @@
|
||||
AC_DEFUN([ACVT_JVMTI],
|
||||
[
|
||||
jvmti_error="no"
|
||||
have_jvmti="no"
|
||||
|
||||
JVMTIDIR=
|
||||
JVMTIINCDIR=
|
||||
|
||||
AC_REQUIRE([ACVT_PLATFORM])
|
||||
|
||||
AC_ARG_WITH(jvmti-dir,
|
||||
AC_HELP_STRING([--with-jvmti-dir=JVMTIDIR],
|
||||
[give the path for JVMTI, default: JAVA_HOME]),
|
||||
[JVMTIDIR="$withval/"],
|
||||
[AS_IF([test x"$JAVA_HOME" != x], [JVMTIDIR="$JAVA_HOME/"])])
|
||||
|
||||
AC_ARG_WITH(jvmti-inc-dir,
|
||||
AC_HELP_STRING([--with-jvmti-inc-dir=JVMTIINCDIR],
|
||||
[give the path for JVMTI-include files, default: JVMTI/include]),
|
||||
[JVMTIINCDIR="-I$withval"],
|
||||
[AS_IF([test x"$JVMTIDIR" != x], [JVMTIINCDIR="-I$JVMTIDIR"include])])
|
||||
|
||||
extra_inc_dir=
|
||||
case $PLATFORM in
|
||||
altix | linux)
|
||||
extra_inc_dir=linux
|
||||
;;
|
||||
sun)
|
||||
extra_inc_dir=solaris
|
||||
;;
|
||||
esac
|
||||
AS_IF([test x"$extra_inc_dir" != x],
|
||||
[
|
||||
AS_IF([test x"$JVMTIINCDIR" != x],
|
||||
[JVMTIINCDIR="$JVMTIINCDIR $JVMTIINCDIR/$extra_inc_dir"],
|
||||
[JVMTIINCDIR="-I/usr/include/$extra_inc_dir"])
|
||||
])
|
||||
|
||||
sav_CPPFLAGS=$CPPFLAGS
|
||||
CPPFLAGS="$CPPFLAGS $JVMTIINCDIR"
|
||||
AC_CHECK_HEADER([jvmti.h], [have_jvmti="yes"],
|
||||
[
|
||||
AC_MSG_NOTICE([error: no jvmti.h found; check path for JVMTI package first...])
|
||||
jvmti_error="yes"
|
||||
])
|
||||
CPPFLAGS=$sav_CPPFLAGS
|
||||
|
||||
AC_SUBST(JVMTIINCDIR)
|
||||
])
|
||||
|
@ -1,83 +0,0 @@
|
||||
AC_DEFUN([ACVT_LIBERTY],
|
||||
[
|
||||
liberty_error="no"
|
||||
check_liberty="no"
|
||||
force_liberty="no"
|
||||
have_liberty="no"
|
||||
|
||||
LIBERTYDIR=
|
||||
LIBERTYINCDIR=
|
||||
LIBERTYLIBDIR=
|
||||
LIBERTYLIB=
|
||||
|
||||
AC_ARG_WITH(liberty,
|
||||
AC_HELP_STRING([--with-liberty], [use libiberty for symbol demangling, default: no]),
|
||||
[AS_IF([test x"$withval" = "xyes"], [check_liberty="yes"; force_liberty="yes"])])
|
||||
|
||||
AC_ARG_WITH(liberty-dir,
|
||||
AC_HELP_STRING([--with-liberty-dir=LIBERTYDIR], [give the path for LIBERTY, default: /usr]),
|
||||
[LIBERTYDIR="$withval/"])
|
||||
|
||||
AC_ARG_WITH(liberty-inc-dir,
|
||||
AC_HELP_STRING([--with-liberty-inc-dir=LIBERTYINCDIR],
|
||||
[give the path for LIBERTY-include files, default: LIBERTYDIR/include]),
|
||||
[LIBERTYINCDIR="-I$withval"],
|
||||
[AS_IF([test x"$LIBERTYDIR" != x], [LIBERTYINCDIR="-I$LIBERTYDIR"include])])
|
||||
|
||||
AC_ARG_WITH(liberty-lib-dir,
|
||||
AC_HELP_STRING([--with-liberty-lib-dir=LIBERTYLIBDIR],
|
||||
[give the path for LIBERTY-libraries, default: LIBERTYDIR/lib]),
|
||||
[LIBERTYLIBDIR="-L$withval"],
|
||||
[AS_IF([test x"$LIBERTYDIR" != x], [LIBERTYLIBDIR="-L$LIBERTYDIR"lib])])
|
||||
|
||||
AC_ARG_WITH(liberty-lib,
|
||||
AC_HELP_STRING([--with-liberty-lib=LIBERTYLIB], [use given liberty lib, default: -liberty]),
|
||||
[LIBERTYLIB="$withval"])
|
||||
|
||||
AS_IF([test x"$check_liberty" = "xyes"],
|
||||
[
|
||||
AS_IF([test x"$LIBERTYLIB" = x -a x"$liberty_error" = "xno"],
|
||||
[
|
||||
sav_LIBS=$LIBS
|
||||
LIBS="$LIBS $LIBERTYLIBDIR -liberty_pic"
|
||||
AC_MSG_CHECKING([whether linking with -liberty_pic works])
|
||||
AC_TRY_LINK([],[],
|
||||
[AC_MSG_RESULT([yes]); LIBERTYLIB=-liberty_pic],[AC_MSG_RESULT([no])])
|
||||
LIBS=$sav_LIBS
|
||||
])
|
||||
|
||||
AS_IF([test x"$LIBERTYLIB" = x -a x"$liberty_error" = "xno"],
|
||||
[
|
||||
sav_LIBS=$LIBS
|
||||
LIBS="$LIBS $LIBERTYLIBDIR -liberty"
|
||||
AC_MSG_CHECKING([whether linking with -liberty works])
|
||||
AC_TRY_LINK([],[],
|
||||
[AC_MSG_RESULT([yes]); LIBERTYLIB=-liberty],[AC_MSG_RESULT([no])])
|
||||
LIBS=$sav_LIBS
|
||||
])
|
||||
|
||||
AS_IF([test x"$LIBERTYLIB" = x -a x"$liberty_error" = "xno"],
|
||||
[
|
||||
AC_MSG_NOTICE([error: no libiberty found; check path for LIBERTY package first...])
|
||||
liberty_error="yes"
|
||||
])
|
||||
|
||||
AS_IF([test x"$LIBERTYLIB" != x -a x"$liberty_error" = "xno"],
|
||||
[have_liberty="yes"])
|
||||
|
||||
AS_IF([test x"$liberty_error" = "xno"],
|
||||
[
|
||||
sav_CPPFLAGS=$CPPFLAGS
|
||||
CPPFLAGS="$CPPFLAGS $LIBERTYINCDIR"
|
||||
HAVE_DEMANGLE_H=0
|
||||
AC_CHECK_HEADERS([demangle.h])
|
||||
AS_IF([test x"$ac_cv_header_demangle_h"], [HAVE_DEMANGLE_H=1])
|
||||
AC_SUBST(HAVE_DEMANGLE_H)
|
||||
CPPFLAGS=$sav_CPPFLAGS
|
||||
])
|
||||
])
|
||||
|
||||
AC_SUBST(LIBERTYINCDIR)
|
||||
AC_SUBST(LIBERTYLIBDIR)
|
||||
AC_SUBST(LIBERTYLIB)
|
||||
])
|
@ -1,192 +0,0 @@
|
||||
AC_DEFUN([ACVT_LIBWRAP],
|
||||
[
|
||||
libwrap_error="no"
|
||||
check_libwrap="gen exec io malloc cudart"
|
||||
force_libwrap="no"
|
||||
have_libwrap="no"
|
||||
|
||||
force_libwrapgen="no"
|
||||
build_libwrapgen="no"
|
||||
force_execwrap="no"
|
||||
force_iowrap="no"
|
||||
force_mallocwrap="no"
|
||||
force_cudartwrap="no"
|
||||
|
||||
shlibc_pathname=
|
||||
|
||||
AC_REQUIRE([ACVT_PLATFORM])
|
||||
|
||||
AC_ARG_ENABLE(libtrace,
|
||||
AC_HELP_STRING([--enable-libtrace=LIST],
|
||||
[enable library tracing support (gen,exec,io,malloc,cudart), default: automatically by configure]),
|
||||
[
|
||||
AS_IF([test x"$enableval" = "xno"], [check_libwrap="no"])
|
||||
AS_IF([test x"$enableval" = "xyes"], [force_libwrap="yes"])
|
||||
AS_IF([test x"$enableval" != "xyes" -a x"$enableval" != "xno"],
|
||||
[
|
||||
check_libwrap=`echo $enableval | sed 's/,/ /g'`
|
||||
for lw in $check_libwrap
|
||||
do
|
||||
case $lw in
|
||||
gen)
|
||||
force_libwrapgen="yes"
|
||||
;;
|
||||
libc | exec)
|
||||
check_execwrap="yes"
|
||||
force_execwrap="yes"
|
||||
;;
|
||||
io)
|
||||
check_iowrap="yes"
|
||||
force_iowrap="yes"
|
||||
;;
|
||||
malloc)
|
||||
check_mallocwrap="yes"
|
||||
force_mallocwrap="yes"
|
||||
;;
|
||||
cuda | cudart)
|
||||
check_cudartwrap="yes"
|
||||
force_cudartwrap="yes"
|
||||
;;
|
||||
*)
|
||||
AC_MSG_ERROR([value of '--enable-libwrap' not properly set])
|
||||
;;
|
||||
esac
|
||||
done
|
||||
force_libwrap="yes"
|
||||
])
|
||||
])
|
||||
|
||||
AC_ARG_WITH(shlibc,
|
||||
AC_HELP_STRING([--with-shlibc=SHLIBC],
|
||||
[give the pathname for shared LIBC, default: automatically by configure]),
|
||||
[
|
||||
AS_IF([test x"$withval" = "xyes" -o x"$withval" = "xno"],
|
||||
[AC_MSG_ERROR([value of '--with-shlibc' not properly set])])
|
||||
shlibc_pathname=$withval
|
||||
])
|
||||
|
||||
AS_IF([test x"$check_libwrap" != "xno"],
|
||||
[
|
||||
AS_IF([test x"$enable_shared" = "xno"],
|
||||
[
|
||||
case $PLATFORM in
|
||||
bgp | bgq)
|
||||
AC_MSG_NOTICE([error: library tracing requires building of shared libraries on this platform; re-configure with \`--enable-shared'])
|
||||
libwrap_error="yes"
|
||||
;;
|
||||
esac
|
||||
])
|
||||
|
||||
AS_IF([test x"$libwrap_error" = "xno"],
|
||||
[
|
||||
ACVT_DL
|
||||
AS_IF([test x"$have_dl" = "xno"], [libwrap_error="yes"])
|
||||
])
|
||||
|
||||
AS_IF([test x"$libwrap_error" = "xno"],
|
||||
[
|
||||
AC_MSG_CHECKING([for shared LIBC's pathname])
|
||||
|
||||
AS_IF([test x"$shlibc_pathname" = x],
|
||||
[
|
||||
rm -f conftest
|
||||
AC_TRY_LINK([], [],
|
||||
[
|
||||
AS_IF([test -r "conftest"],
|
||||
[
|
||||
shlibc_pathname=`ldd conftest 2>/dev/null | grep "libc\." | \
|
||||
sed -e "s/.*=>//" \
|
||||
-e "s/[ [\(].*[\)]]//" \
|
||||
-e "s/[[[:space:]]]//g" | \
|
||||
head -n1`
|
||||
])
|
||||
])
|
||||
])
|
||||
|
||||
AS_IF([test x"$shlibc_pathname" != x],
|
||||
[
|
||||
AC_MSG_RESULT([$shlibc_pathname])
|
||||
AC_DEFINE_UNQUOTED([SHLIBC_PATHNAME],
|
||||
["$shlibc_pathname"], [pathname of shared LIBC])
|
||||
|
||||
AC_CHECK_DECLS([__errno_location], [],
|
||||
[AC_CHECK_DECLS([_Errno], [], [], [#include <errno.h>])], [#include <errno.h>])
|
||||
],
|
||||
[
|
||||
AC_MSG_RESULT([unknown])
|
||||
])
|
||||
|
||||
for lw in $check_libwrap
|
||||
do
|
||||
case $lw in
|
||||
gen)
|
||||
ACVT_CONF_SUBTITLE([Library wrapper generator])
|
||||
ACVT_CTOOL
|
||||
AS_IF([test x"$have_ctool" = "xyes"],
|
||||
[have_libwrap="yes"; build_libwrapgen="yes"],
|
||||
[
|
||||
AS_IF([test x"$force_libwrapgen" = "xyes"],
|
||||
[
|
||||
libwrap_error="yes"
|
||||
break
|
||||
])
|
||||
])
|
||||
;;
|
||||
libc | exec)
|
||||
ACVT_CONF_SUBTITLE([LIBC-EXEC])
|
||||
ACVT_EXECWRAP
|
||||
AS_IF([test x"$have_execwrap" = "xyes"], [have_execwrap="yes"],
|
||||
[
|
||||
AS_IF([test x"$force_execwrap" = "xyes"],
|
||||
[
|
||||
force_libwrap="yes"
|
||||
libwrap_error="yes"
|
||||
break
|
||||
])
|
||||
])
|
||||
;;
|
||||
io)
|
||||
ACVT_CONF_SUBTITLE([LIBC-I/O])
|
||||
ACVT_IOWRAP
|
||||
AS_IF([test x"$have_iowrap" = "xyes"], [have_libwrap="yes"],
|
||||
[
|
||||
AS_IF([test x"$force_iowrap" = "xyes"],
|
||||
[
|
||||
force_libwrap="yes"
|
||||
libwrap_error="yes"
|
||||
break
|
||||
])
|
||||
])
|
||||
;;
|
||||
malloc)
|
||||
ACVT_CONF_SUBTITLE([LIBC-MALLOC])
|
||||
ACVT_MALLOCWRAP
|
||||
AS_IF([test x"$have_mallocwrap" = "xyes"], [have_libwrap="yes"],
|
||||
[
|
||||
AS_IF([test x"$force_mallocwrap" = "xyes"],
|
||||
[
|
||||
force_libwrap="yes"
|
||||
libwrap_error="yes"
|
||||
break
|
||||
])
|
||||
])
|
||||
;;
|
||||
cuda | cudart)
|
||||
ACVT_CONF_SUBTITLE([CUDA-RT])
|
||||
ACVT_CUDARTWRAP
|
||||
AS_IF([test x"$have_cudartwrap" = "xyes"], [have_libwrap="yes"],
|
||||
[
|
||||
AS_IF([test x"$force_cudartwrap" = "xyes"],
|
||||
[
|
||||
force_libwrap="yes"
|
||||
libwrap_error="yes"
|
||||
break
|
||||
])
|
||||
])
|
||||
;;
|
||||
esac
|
||||
done
|
||||
])
|
||||
])
|
||||
])
|
||||
|
@ -1,20 +0,0 @@
|
||||
AC_DEFUN([ACVT_LTMPDIR],
|
||||
[
|
||||
local_tmp_dir=
|
||||
|
||||
AC_ARG_WITH(local-tmp-dir,
|
||||
AC_HELP_STRING([--with-local-tmp-dir=DIR],
|
||||
[give the path for node-local temporary directory, default: /tmp]),
|
||||
[
|
||||
AS_IF([test x"$withval" = "xyes" -o x"$withval" = "xno"],
|
||||
[AC_MSG_ERROR([value of '--with-local-tmp-dir' not properly set])])
|
||||
local_tmp_dir=$withval
|
||||
])
|
||||
|
||||
AS_IF([test x"$local_tmp_dir" != x],
|
||||
[
|
||||
AC_DEFINE_UNQUOTED(DEFAULT_PFORM_LDIR,
|
||||
["$local_tmp_dir"], [Path for node-local temporary directory])
|
||||
])
|
||||
])
|
||||
|
@ -1,35 +0,0 @@
|
||||
AC_DEFUN([ACVT_MALLOCWRAP],
|
||||
[
|
||||
mallocwrap_error="no"
|
||||
check_mallocwrap="yes"
|
||||
have_mallocwrap="no"
|
||||
|
||||
AC_ARG_ENABLE(memtrace,
|
||||
AC_HELP_STRING([--enable-memtrace],
|
||||
[enable support for tracing LIBC functions for memory de/allocation (e.g. malloc,calloc,realloc,free) via library wrapping, default: enable]),
|
||||
[AS_IF([test x"$enableval" = "xyes"], [force_mallocwrap="yes"], [check_mallocwrap="no"])])
|
||||
|
||||
AS_IF([test "$check_mallocwrap" = "yes"],
|
||||
[
|
||||
sav_CPPFLAGS=$CPPFLAGS
|
||||
CPPFLAGS="$CPPFLAGS $DLINCDIR -D_GNU_SOURCE"
|
||||
AC_CHECK_DECLS([RTLD_NEXT], [], [mallocwrap_error="yes"], [#include <dlfcn.h>])
|
||||
CPPFLAGS=$sav_CPPFLAGS
|
||||
|
||||
AS_IF([test x"$mallocwrap_error" = "xno"],
|
||||
[
|
||||
AC_CHECK_FUNC([malloc_usable_size], [], [mallocwrap_error="yes"])
|
||||
])
|
||||
|
||||
AS_IF([test x"$mallocwrap_error" = "xno"],
|
||||
[
|
||||
sav_CPPFLAGS=$CPPFLAGS
|
||||
CPPFLAGS="$CPPFLAGS $DLINCDIR -D_BSD_SOURCE -D_XOPEN_SOURCE=600"
|
||||
AC_CHECK_FUNCS([memalign posix_memalign valloc])
|
||||
CPPFLAGS=$sav_CPPFLAGS
|
||||
|
||||
have_mallocwrap="yes"
|
||||
])
|
||||
])
|
||||
])
|
||||
|
@ -1,29 +0,0 @@
|
||||
AC_DEFUN([ACVT_MATH],
|
||||
[
|
||||
math_error="no"
|
||||
have_math="no"
|
||||
|
||||
MATHLIB=
|
||||
|
||||
AC_CHECK_HEADER([math.h], [],
|
||||
[
|
||||
AC_MSG_NOTICE([error: no math.h found; check path for libmath package first...])
|
||||
math_error="yes"
|
||||
])
|
||||
|
||||
AS_IF([test x"$math_error" = "xno"],
|
||||
[
|
||||
AC_MSG_CHECKING([whether we need to link -lm to get math functions])
|
||||
AC_TRY_LINK([#include <math.h>],
|
||||
[
|
||||
volatile double c, x = 47.11;
|
||||
c = ceil(x);
|
||||
],
|
||||
[AC_MSG_RESULT([no])], [AC_MSG_RESULT([yes]); MATHLIB=-lm])
|
||||
])
|
||||
|
||||
AS_IF([test x"$math_error" = "xno"], [have_math="yes"])
|
||||
|
||||
AC_SUBST(MATHLIB)
|
||||
])
|
||||
|
@ -1,62 +0,0 @@
|
||||
AC_DEFUN([ACVT_METRICS],
|
||||
[
|
||||
metrics_error="no"
|
||||
check_metrics="papi cpc necsx"
|
||||
force_metrics="no"
|
||||
have_metrics="no"
|
||||
|
||||
AC_REQUIRE([ACVT_PLATFORM])
|
||||
|
||||
AC_ARG_ENABLE(metrics,
|
||||
AC_HELP_STRING([--enable-metrics=TYPE],
|
||||
[enable support for hardware performance counter (papi,cpc,necsx), default: automatically by configure]),
|
||||
[
|
||||
AS_IF([test x"$enableval" = "xno"], [check_metrics="no"])
|
||||
AS_IF([test x"$enableval" = "xyes"], [force_metrics="yes"])
|
||||
AS_IF([test x"$enableval" != "xyes" -a x"$enableval" != "xno"],
|
||||
[
|
||||
AS_IF([test x"$enableval" != "xpapi" -a x"$enableval" != "xcpc" -a x"$enableval" != "xnecsx"],
|
||||
[AC_MSG_ERROR([value of '--enable-metrics' not properly set])])
|
||||
check_metrics="$enableval"
|
||||
force_metrics="yes"
|
||||
])
|
||||
])
|
||||
|
||||
AS_IF([test x"$check_metrics" != "xno"],
|
||||
[
|
||||
for cm in $check_metrics
|
||||
do
|
||||
AS_IF([test x"$cm" = "xpapi"],
|
||||
[
|
||||
ACVT_CONF_SUBTITLE([PAPI])
|
||||
ACVT_PAPI
|
||||
AS_IF([test x"$have_papi" = "xyes"], [have_metrics="yes"; break])
|
||||
])
|
||||
AS_IF([test x"$cm" = "xcpc"],
|
||||
[
|
||||
ACVT_CONF_SUBTITLE([CPC])
|
||||
ACVT_CPC
|
||||
AS_IF([test x"$have_cpc" = "xyes"], [have_metrics="yes"; break])
|
||||
])
|
||||
AS_IF([test x"$cm" = "xnecsx"],
|
||||
[
|
||||
ACVT_CONF_SUBTITLE([NEC SX])
|
||||
AC_MSG_CHECKING([whether we are on a NEC SX])
|
||||
AS_IF([test x"$PLATFORM" = "xnecsx"],
|
||||
[
|
||||
AC_MSG_RESULT([yes])
|
||||
CCASFLAGS="$CCASFLAGS -m"
|
||||
have_necsxcntr="yes"
|
||||
have_metrics="yes"
|
||||
break
|
||||
],
|
||||
[
|
||||
AC_MSG_RESULT([no])
|
||||
])
|
||||
])
|
||||
done
|
||||
|
||||
AS_IF([test x"$have_metrics" = "xno"], [metrics_error="yes"])
|
||||
])
|
||||
])
|
||||
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
@ -1,64 +0,0 @@
|
||||
AC_DEFUN([ACVT_MPIUNIFYLIB],
|
||||
[
|
||||
mpiunifylib_error="no"
|
||||
check_mpiunifylib="yes"
|
||||
force_mpiunifylib="no"
|
||||
build_mpiunifylib="no"
|
||||
|
||||
VTMPIUNIFYLIB=
|
||||
|
||||
AC_REQUIRE([ACVT_PLATFORM])
|
||||
AC_REQUIRE([ACVT_ETIMESYNC])
|
||||
AC_REQUIRE([ACVT_UNIMCI])
|
||||
|
||||
AC_ARG_ENABLE(mpiunify-lib,
|
||||
AC_HELP_STRING([--enable-mpiunify-lib],
|
||||
[build MPI trace unification library, default: enable if C++ runtime library found]),
|
||||
[AS_IF([test x"$enableval" = "xyes"], [force_mpiunifylib="yes"], [check_mpiunifylib="no"])])
|
||||
|
||||
AS_IF([test x"$check_mpiunifylib" = "xyes"],
|
||||
[
|
||||
AS_IF([test "$PLATFORM" = "ibm" -o "$PLATFORM" = "necsx"],
|
||||
[
|
||||
AC_MSG_NOTICE([error: The MPI trace unification library cannot be built on this platform])
|
||||
mpiunifylib_error="yes"
|
||||
])
|
||||
|
||||
AS_IF([test x"$mpiunifylib_error" = "xno" -a x"$inside_openmpi" = "xno"],
|
||||
[
|
||||
bad_mpi="no"
|
||||
AC_CHECK_DECL([PLATFORM_MPI], [bad_mpi="yes"],
|
||||
[AC_CHECK_DECL([HP_MPI], [bad_mpi="yes"], [], [#include "mpi.h"])],
|
||||
[], [#include "mpi.h"])
|
||||
|
||||
AS_IF([test "$bad_mpi" = "yes"],
|
||||
[
|
||||
AC_MSG_NOTICE([error: The MPI trace unification library cannot be built with HP/Platform MPI])
|
||||
mpiunifylib_error="yes"
|
||||
])
|
||||
])
|
||||
|
||||
AS_IF([test x"$mpiunifylib_error" = "xno"],
|
||||
[
|
||||
AS_IF([test x"$have_unimci" = "xyes" -a x"$unimci_checker_name" = "xMARMOT"],
|
||||
[
|
||||
VTMPIUNIFYLIB="-lvt-mpi-unify -lotfaux $CLAPACKLIBDIR $CLAPACKLIB"
|
||||
build_mpiunifylib="yes"
|
||||
],
|
||||
[
|
||||
ACVT_CXXRTLIB
|
||||
AS_IF([test x"$cxxrtlib_error" = "xno"],
|
||||
[
|
||||
VTMPIUNIFYLIB="-lvt-mpi-unify -lotfaux $CLAPACKLIBDIR $CLAPACKLIB $cxxrtlib"
|
||||
build_mpiunifylib="yes"
|
||||
],
|
||||
[
|
||||
mpiunifylib_error="yes"
|
||||
])
|
||||
])
|
||||
])
|
||||
])
|
||||
|
||||
AC_SUBST(VTMPIUNIFYLIB)
|
||||
])
|
||||
|
@ -1,31 +0,0 @@
|
||||
AC_DEFUN([ACVT_OMP],
|
||||
[
|
||||
omp_error="no"
|
||||
build_opari="no"
|
||||
have_omp="no"
|
||||
|
||||
VTPOMPLIB=
|
||||
|
||||
AC_ARG_VAR(OPENMP_CFLAGS, [C compiler flags to enable support for OpenMP])
|
||||
|
||||
AX_OPENMP([], [omp_error="yes"])
|
||||
|
||||
AS_IF([test x"$omp_error" = "xno"],
|
||||
[
|
||||
sav_CFLAGS=$CFLAGS
|
||||
CFLAGS="$CFLAGS $OPENMP_CFLAGS"
|
||||
AC_CHECK_HEADER([omp.h], [], [omp_error="yes"])
|
||||
CFLAGS=$sav_CFLAGS
|
||||
])
|
||||
|
||||
AS_IF([test x"$omp_error" = "xno"],
|
||||
[
|
||||
VTPOMPLIB="-lvt-pomp"
|
||||
build_opari="yes"
|
||||
have_omp="yes"
|
||||
AC_DEFINE([HAVE_OMP], [1], [Define to 1 if VT is configured with OpenMP support.])
|
||||
])
|
||||
|
||||
AC_SUBST(VTPOMPLIB)
|
||||
])
|
||||
|
@ -1,220 +0,0 @@
|
||||
AC_DEFUN([ACVT_OTF],
|
||||
[
|
||||
otf_error="no"
|
||||
|
||||
OTFDIR=
|
||||
OTFINCDIR=
|
||||
OTFLIBDIR=
|
||||
OTFLIB=
|
||||
|
||||
AC_REQUIRE([ACVT_MPI])
|
||||
AC_REQUIRE([ACVT_ZLIB])
|
||||
AC_REQUIRE([ACVT_IOFSL])
|
||||
|
||||
AC_ARG_WITH(extern-otf,
|
||||
AC_HELP_STRING([--with-extern-otf], [use external OTF library, default: not set]),
|
||||
[use_extern_otf="yes"], [use_extern_otf="no"])
|
||||
|
||||
AC_ARG_WITH(extern-otf-dir,
|
||||
AC_HELP_STRING([--with-extern-otf-dir=OTFDIR], [give the path for OTF, default: /usr]),
|
||||
[OTFDIR="$withval/"])
|
||||
|
||||
AC_ARG_WITH(extern-otf-inc-dir,
|
||||
AC_HELP_STRING([--with-extern-otf-inc-dir=OTFINCDIR],
|
||||
[give the path for OTF-include files, default: OTFDIR/include/open-trace-format]),
|
||||
[OTFINCDIR="-I$withval"],
|
||||
[AS_IF([test x"$OTFDIR" != x], [OTFINCDIR="-I$OTFDIR"include/open-trace-format])])
|
||||
|
||||
AC_ARG_WITH(extern-otf-lib-dir,
|
||||
AC_HELP_STRING([--with-extern-otf-lib-dir=OTFLIBDIR],
|
||||
[give the path for OTF-libraries, default: OTFDIR/lib]),
|
||||
[OTFLIBDIR="-L$withval"],
|
||||
[AS_IF([test x"$OTFDIR" != x], [OTFLIBDIR="-L$OTFDIR"lib])])
|
||||
|
||||
AC_ARG_WITH(otf-lib,
|
||||
AC_HELP_STRING([--with-otf-lib=OTFLIB], [use given otf lib, default: -lopen-trace-format ZLIBLIBDIR ZLIBLIB ZOIDFSLIBDIR ZOIDFSLIB BMILIBDIR BMILIB]),
|
||||
[OTFLIB="$withval"])
|
||||
|
||||
AC_ARG_WITH(otf-flags,
|
||||
AC_HELP_STRING([--with-otf-flags=FLAGS], [pass FLAGS to the OTF distribution configuration script]), [OTFFLAGS="$withval"])
|
||||
|
||||
AS_IF([test "$use_extern_otf" = "yes"],
|
||||
[
|
||||
sav_CPPFLAGS=$CPPFLAGS
|
||||
CPPFLAGS="$CPPFLAGS $OTFINCDIR"
|
||||
AC_CHECK_HEADER([otf.h], [],
|
||||
[
|
||||
AC_MSG_NOTICE([error: no otf.h found; check path for OTF package first...])
|
||||
otf_error="yes"
|
||||
])
|
||||
CPPFLAGS=$sav_CPPFLAGS
|
||||
|
||||
AS_IF([test x"$OTFLIB" = x -a "$otf_error" = "no"],
|
||||
[
|
||||
sav_LIBS=$LIBS
|
||||
LIBS="$LIBS $OTFLIBDIR -lopen-trace-format $ZLIBLIBDIR $ZLIBLIB $ZOIDFSLIBDIR $ZOIDFSLIB $BMILIBDIR $BMILIB"
|
||||
AC_MSG_CHECKING([whether linking with -lopen-trace-format $ZLIBLIBDIR $ZLIBLIB $ZOIDFSLIBDIR $ZOIDFSLIB $BMILIBDIR $BMILIB works])
|
||||
AC_TRY_LINK([],[],
|
||||
[AC_MSG_RESULT([yes]); OTFLIB="-lopen-trace-format $ZLIBLIBDIR $ZLIBLIB $ZOIDFSLIBDIR $ZOIDFSLIB $BMILIBDIR $BMILIB"],[AC_MSG_RESULT([no])])
|
||||
LIBS=$sav_LIBS
|
||||
])
|
||||
|
||||
AS_IF([test x"$OTFLIB" = x -a "$otf_error" = "no"],
|
||||
[
|
||||
AC_MSG_NOTICE([error: no libopen-trace-format found; check path for OTF package first...])
|
||||
otf_error="yes"
|
||||
])
|
||||
],
|
||||
[
|
||||
otf_parent_dir=`pwd`
|
||||
otf_dir="extlib/otf"
|
||||
|
||||
AC_MSG_NOTICE([configuring in $otf_dir ($otf_parent_dir/$otf_dir)])
|
||||
|
||||
AS_IF([test "$srcdir" != "."],
|
||||
[
|
||||
test -d "$otf_dir" ||
|
||||
mkdir -p "$otf_dir" ||
|
||||
AC_MSG_ERROR([cannot create $otf_dir])
|
||||
])
|
||||
|
||||
cd $otf_dir
|
||||
|
||||
case $srcdir in
|
||||
.)
|
||||
otf_srcdir="$srcdir"
|
||||
;;
|
||||
/*)
|
||||
otf_srcdir="$srcdir/$otf_dir"
|
||||
;;
|
||||
*)
|
||||
otf_srcdir="../../$srcdir/$otf_dir"
|
||||
;;
|
||||
esac
|
||||
|
||||
otf_conf_cmd="$otf_srcdir/configure"
|
||||
otf_conf_args=
|
||||
otf_conf_arg_skip="no"
|
||||
|
||||
eval "set x $ac_configure_args"
|
||||
shift
|
||||
for otf_conf_arg
|
||||
do
|
||||
if test "$otf_conf_arg_skip" = "yes"; then
|
||||
otf_conf_arg_skip="no"
|
||||
else
|
||||
case $otf_conf_arg in
|
||||
-cache-file | --cache-file | -cache | --cache)
|
||||
otf_conf_arg_skip="yes"
|
||||
;;
|
||||
--config-cache | -C)
|
||||
;;
|
||||
-cache-file=* | --cache-file=*)
|
||||
;;
|
||||
-srcdir | --srcdir)
|
||||
otf_conf_arg_skip="yes"
|
||||
;;
|
||||
-srcdir=* | --srcdir=*)
|
||||
;;
|
||||
-with-otf-flags | --with-otf-flags | -with-otf-flags=* | --with-otf-flags=*)
|
||||
;;
|
||||
CPPFLAGS=*)
|
||||
otf_conf_args="$otf_conf_args 'CPPFLAGS=$CPPFLAGS'"
|
||||
;;
|
||||
LDFLAGS=*)
|
||||
otf_conf_args="$otf_conf_args 'LDFLAGS=$LDFLAGS'"
|
||||
;;
|
||||
*)
|
||||
case $otf_conf_arg in
|
||||
*\'*) otf_conf_arg=`echo "$otf_conf_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
||||
esac
|
||||
otf_conf_args="$otf_conf_args '$otf_conf_arg'"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
done
|
||||
|
||||
AS_IF([test x"$have_mpi" = "xyes"],
|
||||
[
|
||||
otf_conf_args="$otf_conf_args MPICC=\"$MPICC\" MPICXX=\"$MPICXX\""
|
||||
AS_IF([test x"$force_mpi" = "xyes"],
|
||||
[otf_conf_args="$otf_conf_args --with-mpi"])
|
||||
AS_IF([test x"$MPIDIR" != x],
|
||||
[otf_conf_args="$otf_conf_args --with-mpi-dir=\"$MPIDIR\""])
|
||||
dnl if configuring inside Open MPI, the paths to the MPI header files and libraries are
|
||||
dnl stored in CPPFLAGS/LDFLAGS; skip adding the --with-mpi-inc-dir/--with-mpi-lib-dir option
|
||||
AS_IF([test x"$inside_openmpi" = "xno"],
|
||||
[
|
||||
AS_IF([test x"$MPIINCDIR" != x],
|
||||
[otf_conf_args="$otf_conf_args --with-mpi-inc-dir=\"`echo $MPIINCDIR | sed s/-I//`\""])
|
||||
AS_IF([test x"$MPILIBDIR" != x],
|
||||
[otf_conf_args="$otf_conf_args --with-mpi-lib-dir=\"`echo $MPILIBDIR | sed s/-L//`\""])
|
||||
])
|
||||
AS_IF([test x"$MPILIB" != x],
|
||||
[otf_conf_args="$otf_conf_args --with-mpi-lib=\"$MPILIB\""])
|
||||
],
|
||||
[
|
||||
otf_conf_args="$otf_conf_args --without-mpi"
|
||||
])
|
||||
AS_IF([test x"$have_zlib" = "xyes"],
|
||||
[
|
||||
AS_IF([test x"$force_zlib" = "xyes"],
|
||||
[otf_conf_args="$otf_conf_args --with-zlib"])
|
||||
AS_IF([test x"$ZLIBDIR" != x],
|
||||
[otf_conf_args="$otf_conf_args --with-zlib-dir=\"$ZLIBDIR\""])
|
||||
AS_IF([test x"$ZLIBINCDIR" != x],
|
||||
[otf_conf_args="$otf_conf_args --with-zlib-inc-dir=\"`echo $ZLIBINCDIR | sed s/-I//`\""])
|
||||
AS_IF([test x"$ZLIBLIBDIR" != x],
|
||||
[otf_conf_args="$otf_conf_args --with-zlib-lib-dir=\"`echo $ZLIBLIBDIR | sed s/-L//`\""])
|
||||
AS_IF([test x"$ZLIBLIB" != x],
|
||||
[otf_conf_args="$otf_conf_args --with-zlib-lib=\"$ZLIBLIB\""])
|
||||
],
|
||||
[
|
||||
otf_conf_args="$otf_conf_args --without-zlib"
|
||||
])
|
||||
AS_IF([test x"$have_iofsl" = "xyes"],
|
||||
[
|
||||
AS_IF([test x"$force_iofsl" = "xyes"],
|
||||
[otf_conf_args="$otf_conf_args --with-zoidfs"])
|
||||
|
||||
AS_IF([test x"$ZOIDFSDIR" != x],
|
||||
[otf_conf_args="$otf_conf_args --with-zoidfs-dir=\"$ZOIDFSDIR\""])
|
||||
AS_IF([test x"$ZOIDFSINCDIR" != x],
|
||||
[otf_conf_args="$otf_conf_args --with-zoidfs-inc-dir=\"`echo $ZOIDFSINCDIR | sed s/-I//`\""])
|
||||
AS_IF([test x"$ZOIDFSLIBDIR" != x],
|
||||
[otf_conf_args="$otf_conf_args --with-zoidfs-lib-dir=\"`echo $ZOIDFSLIBDIR | sed s/-L//`\""])
|
||||
AS_IF([test x"$ZOIDFSLIB" != x],
|
||||
[otf_conf_args="$otf_conf_args --with-zoidfs-lib=\"$ZOIDFSLIB\""])
|
||||
|
||||
AS_IF([test x"$BMIDIR" != x],
|
||||
[otf_conf_args="$otf_conf_args --with-bmi-dir=\"$BMIDIR\""])
|
||||
AS_IF([test x"$BMIINCDIR" != x],
|
||||
[otf_conf_args="$otf_conf_args --with-bmi-inc-dir=\"`echo $BMIINCDIR | sed s/-I//`\""])
|
||||
AS_IF([test x"$BMILIBDIR" != x],
|
||||
[otf_conf_args="$otf_conf_args --with-bmi-lib-dir=\"`echo $BMILIBDIR | sed s/-L//`\""])
|
||||
AS_IF([test x"$BMILIB" != x],
|
||||
[otf_conf_args="$otf_conf_args --with-bmi-lib=\"$BMILIB\""])
|
||||
],
|
||||
[
|
||||
otf_conf_args="$otf_conf_args --without-zoidfs"
|
||||
])
|
||||
|
||||
otf_conf_args="$otf_conf_args --includedir=\"$includedir\" --docdir=\"$docdir/otf\" $OTFFLAGS --cache-file=\"/dev/null\" --srcdir=\"$otf_srcdir\" --disable-option-checking"
|
||||
|
||||
AC_MSG_NOTICE([running $SHELL $otf_conf_cmd $otf_conf_args])
|
||||
eval "$SHELL '$otf_conf_cmd' $otf_conf_args"
|
||||
AS_IF([test $? != "0"], [AC_MSG_ERROR([$otf_conf_cmd failed for $otf_dir])])
|
||||
|
||||
cd $otf_parent_dir
|
||||
|
||||
OTFINCDIR=
|
||||
OTFLIBDIR=
|
||||
AS_IF([test x"$OTFLIB" = x], [OTFLIB="-lopen-trace-format $ZLIBLIBDIR $ZLIBLIB $ZOIDFSLIBDIR $ZOIDFSLIB $BMILIBDIR $BMILIB"])
|
||||
])
|
||||
|
||||
AC_SUBST(OTFDIR)
|
||||
AC_SUBST(OTFINCDIR)
|
||||
AC_SUBST(OTFLIBDIR)
|
||||
AC_SUBST(OTFLIB)
|
||||
])
|
||||
|
@ -1,109 +0,0 @@
|
||||
AC_DEFUN([ACVT_PAPI],
|
||||
[
|
||||
papi_error="no"
|
||||
have_papi="no"
|
||||
|
||||
PAPIDIR=
|
||||
PAPIINCDIR=
|
||||
PAPILIBDIR=
|
||||
PAPILIB=
|
||||
|
||||
AC_ARG_WITH(papi-dir,
|
||||
AC_HELP_STRING([--with-papi-dir=PAPIDIR],
|
||||
[give the path for PAPI, default: /usr]),
|
||||
[PAPIDIR="$withval/"])
|
||||
|
||||
AC_ARG_WITH(papi-inc-dir,
|
||||
AC_HELP_STRING([--with-papi-inc-dir=PAPIINCDIR],
|
||||
[give the path for PAPI-include files, default: PAPIDIR/include]),
|
||||
[PAPIINCDIR="-I$withval"],
|
||||
[AS_IF([test x"$PAPIDIR" != x], [PAPIINCDIR="-I$PAPIDIR"include])])
|
||||
|
||||
AC_ARG_WITH(papi-lib-dir,
|
||||
AC_HELP_STRING([--with-papi-lib-dir=PAPILIBDIR],
|
||||
[give the path for PAPI-libraries, default: PAPIDIR/lib]),
|
||||
[PAPILIBDIR="-L$withval"],
|
||||
[AS_IF([test x"$PAPIDIR" != x], [PAPILIBDIR="-L$PAPIDIR"lib])])
|
||||
|
||||
AC_ARG_WITH(papi-lib,
|
||||
AC_HELP_STRING([--with-papi-lib=PAPILIB], [use given papi lib, default: -lpapi]),
|
||||
[PAPILIB="$withval"])
|
||||
|
||||
sav_CPPFLAGS=$CPPFLAGS
|
||||
CPPFLAGS="$CPPFLAGS $PAPIINCDIR"
|
||||
AC_CHECK_HEADER([papi.h], [],
|
||||
[
|
||||
AC_MSG_NOTICE([error: no papi.h found; check path for PAPI package first...])
|
||||
papi_error="yes"
|
||||
])
|
||||
CPPFLAGS=$sav_CPPFLAGS
|
||||
|
||||
AS_IF([test x"$PAPILIB" = x -a x"$papi_error" = "xno"],
|
||||
[
|
||||
sav_LIBS=$LIBS
|
||||
LIBS="$LIBS $PAPILIBDIR -lpapi"
|
||||
AC_MSG_CHECKING([whether linking with -lpapi works])
|
||||
AC_TRY_LINK([],[],
|
||||
[AC_MSG_RESULT([yes]); PAPILIB=-lpapi],[AC_MSG_RESULT([no])])
|
||||
LIBS=$sav_LIBS
|
||||
])
|
||||
|
||||
AS_IF([test x"$PAPILIB" = x -a x"$papi_error" = "xno"],
|
||||
[
|
||||
AC_MSG_NOTICE([error: no libpapi found; check path for PAPI package first...])
|
||||
papi_error="yes"
|
||||
])
|
||||
|
||||
AS_IF([test x"$papi_error" = "xno"],
|
||||
[
|
||||
AC_MSG_CHECKING([whether PAPI version >= 3])
|
||||
|
||||
sav_CPPFLAGS=$CPPFLAGS
|
||||
CPPFLAGS="$CPPFLAGS $PAPIINCDIR"
|
||||
AC_TRY_COMPILE([#include <papi.h>],
|
||||
[
|
||||
#ifndef PAPI_VERSION
|
||||
# error "PAPI_VERSION not defined; version < 3"
|
||||
#elif PAPI_VERSION_MAJOR(PAPI_VERSION) < 3
|
||||
# error "PAPI_VERSION_MAJOR < 3"
|
||||
#endif
|
||||
],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[
|
||||
AC_MSG_RESULT([no])
|
||||
AC_MSG_NOTICE([error: PAPI version could not be determined and/or is incompatible (< 3)
|
||||
See \`config.log' for more details.])
|
||||
papi_error="yes"
|
||||
])
|
||||
CPPFLAGS=$sav_CPPFLAGS
|
||||
])
|
||||
|
||||
AS_IF([test x"$papi_error" = "xno"],
|
||||
[
|
||||
sav_CPPFLAGS=$CPPFLAGS
|
||||
CPPFLAGS="$CPPFLAGS $PAPIINCDIR"
|
||||
AC_CHECK_TYPES([long_long], [], [], [#include <papi.h>])
|
||||
CPPFLAGS=$sav_CPPFLAGS
|
||||
])
|
||||
|
||||
AS_IF([test x"$PAPILIB" != x -a x"$papi_error" = "xno"],
|
||||
[
|
||||
AC_DEFINE([TIMER_PAPI_REAL_CYC], [10], [PAPI_get_real_cyc])
|
||||
AC_DEFINE([TIMER_PAPI_REAL_USEC], [11], [PAPI_get_real_usec])
|
||||
AS_IF([test x"$pform_timer" = "xTIMER_GETTIMEOFDAY"],
|
||||
[
|
||||
pform_timer=TIMER_PAPI_REAL_CYC
|
||||
AC_DEFINE_UNQUOTED([TIMER], [$pform_timer], [Use timer (see below)])
|
||||
AC_MSG_NOTICE([reselected timer: $pform_timer])
|
||||
AC_DEFINE([TIMER_IS_GLOBAL], [0],
|
||||
[Define to 1 if the selected timer is global (doesn't need synchronization)])
|
||||
AC_MSG_NOTICE([global timer: no])
|
||||
])
|
||||
have_papi="yes"
|
||||
])
|
||||
|
||||
AC_SUBST(PAPIINCDIR)
|
||||
AC_SUBST(PAPILIBDIR)
|
||||
AC_SUBST(PAPILIB)
|
||||
])
|
||||
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
x
Ссылка в новой задаче
Block a user