~ubuntu-branches/ubuntu/trusty/nwchem/trusty-proposed

« back to all changes in this revision

Viewing changes to src/tools/ga-5-1/m4/ga_mpicxx_test.m4

  • Committer: Package Import Robot
  • Author(s): Michael Banck, Daniel Leidert, Andreas Tille, Michael Banck
  • Date: 2013-07-04 12:14:55 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130704121455-5tvsx2qabor3nrui
Tags: 6.3-1
* New upstream release.
* Fixes anisotropic properties (Closes: #696361).
* New features include:
  + Multi-reference coupled cluster (MRCC) approaches
  + Hybrid DFT calculations with short-range HF 
  + New density-functionals including Minnesota (M08, M11) and HSE hybrid
    functionals
  + X-ray absorption spectroscopy (XAS) with TDDFT
  + Analytical gradients for the COSMO solvation model
  + Transition densities from TDDFT 
  + DFT+U and Electron-Transfer (ET) methods for plane wave calculations
  + Exploitation of space group symmetry in plane wave geometry optimizations
  + Local density of states (LDOS) collective variable added to Metadynamics
  + Various new XC functionals added for plane wave calculations, including
    hybrid and range-corrected ones
  + Electric field gradients with relativistic corrections 
  + Nudged Elastic Band optimization method
  + Updated basis sets and ECPs 

[ Daniel Leidert ]
* debian/watch: Fixed.

[ Andreas Tille ]
* debian/upstream: References

[ Michael Banck ]
* debian/upstream (Name): New field.
* debian/patches/02_makefile_flags.patch: Refreshed.
* debian/patches/06_statfs_kfreebsd.patch: Likewise.
* debian/patches/07_ga_target_force_linux.patch: Likewise.
* debian/patches/05_avoid_inline_assembler.patch: Removed, no longer needed.
* debian/patches/09_backported_6.1.1_fixes.patch: Likewise.
* debian/control (Build-Depends): Added gfortran-4.7 and gcc-4.7.
* debian/patches/10_force_gcc-4.7.patch: New patch, explicitly sets
  gfortran-4.7 and gcc-4.7, fixes test suite hang with gcc-4.8 (Closes:
  #701328, #713262).
* debian/testsuite: Added tests for COSMO analytical gradients and MRCC.
* debian/rules (MRCC_METHODS): New variable, required to enable MRCC methods.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# GA_MPICXX_TEST
2
 
# --------------
3
 
# Attempt to compile a simple MPI program in C++.
4
 
#
5
 
AC_DEFUN([GA_MPICXX_TEST], [
6
 
AS_IF([test "x$with_mpi" != xno], [
7
 
    AC_LANG_PUSH([C++])
8
 
    AC_CACHE_CHECK([whether a simple C++ MPI program works],
9
 
        [ga_cv_cxx_mpi_test], [
10
 
        AC_LINK_IFELSE(
11
 
            [AC_LANG_PROGRAM([[#include <mpi.h>]],
12
 
[[int myargc; char **myargv; MPI_Init(&myargc, &myargv); MPI_Finalize();]])],
13
 
            [ga_cv_cxx_mpi_test=yes],
14
 
            [ga_cv_cxx_mpi_test=no])
15
 
# That didn't work, so now let's try with our GA_MP_* flags.
16
 
        AS_IF([test "x$ga_cv_cxx_mpi_test" = xno], [
17
 
        ga_save_LIBS="$LIBS";           LIBS="$LIBS $GA_MP_LIBS"
18
 
        ga_save_CPPFLAGS="$CPPFLAGS";   CPPFLAGS="$CPPFLAGS $GA_MP_CPPFLAGS"
19
 
        ga_save_LDFLAGS="$LDFLAGS";     LDFLAGS="$LDFLAGS $GA_MP_LDFLAGS"
20
 
        AC_LINK_IFELSE(
21
 
            [AC_LANG_PROGRAM([[#include <mpi.h>]],
22
 
[[int myargc; char **myargv; MPI_Init(&myargc, &myargv); MPI_Finalize();]])],
23
 
            [ga_cv_cxx_mpi_test=yes],
24
 
            [ga_cv_cxx_mpi_test=no])
25
 
        LIBS="$ga_save_LIBS"
26
 
        CPPFLAGS="$ga_save_CPPFLAGS"
27
 
        LDFLAGS="$ga_save_LDFLAGS"
28
 
        ])
29
 
# That didn't work, so now let's try with our GA_MP_* flags and various libs.
30
 
        AS_IF([test "x$ga_cv_cxx_mpi_test" = xno], [
31
 
        for lib in -lmpi -lmpich; do
32
 
        ga_save_LIBS="$LIBS";           LIBS="$LIBS $GA_MP_LIBS $lib"
33
 
        ga_save_CPPFLAGS="$CPPFLAGS";   CPPFLAGS="$CPPFLAGS $GA_MP_CPPFLAGS"
34
 
        ga_save_LDFLAGS="$LDFLAGS";     LDFLAGS="$LDFLAGS $GA_MP_LDFLAGS"
35
 
        AC_LINK_IFELSE(
36
 
            [AC_LANG_PROGRAM([[#include <mpi.h>]],
37
 
[[int myargc; char **myargv; MPI_Init(&myargc, &myargv); MPI_Finalize();]])],
38
 
            [ga_cv_cxx_mpi_test=$lib; break],
39
 
            [ga_cv_cxx_mpi_test=no])
40
 
        LIBS="$ga_save_LIBS"
41
 
        CPPFLAGS="$ga_save_CPPFLAGS"
42
 
        LDFLAGS="$ga_save_LDFLAGS"
43
 
        done
44
 
        LIBS="$ga_save_LIBS"
45
 
        CPPFLAGS="$ga_save_CPPFLAGS"
46
 
        LDFLAGS="$ga_save_LDFLAGS"
47
 
        ])
48
 
        ])
49
 
    AC_LANG_POP([C++])
50
 
    AS_CASE([$ga_cv_cxx_mpi_test],
51
 
        [yes],  [],
52
 
        [no],   [AC_MSG_FAILURE([could not link simple C++ MPI program])],
53
 
        [*],    [GA_MP_LIBS="$ga_cv_cxx_mpi_test"],
54
 
        [])
55
 
])
56
 
])dnl