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

« back to all changes in this revision

Viewing changes to src/tools/ga-5-1/armci/src-gemini/tas-alpha.h

  • 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
 
/* Machine-dependent pthreads configuration and inline functions.
2
 
   Alpha version.
3
 
Copyright (C) 1996 Free Software Foundation, Inc.
4
 
This file is part of the GNU C Library.
5
 
Contributed by Richard Henderson <rth@tamu.edu>.
6
 
 
7
 
The GNU C Library is free software; you can redistribute it and/or
8
 
modify it under the terms of the GNU Library General Public License as
9
 
published by the Free Software Foundation; either version 2 of the
10
 
License, or (at your option) any later version.
11
 
 
12
 
The GNU C Library is distributed in the hope that it will be useful,
13
 
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
 
Library General Public License for more details.
16
 
 
17
 
You should have received a copy of the GNU Library General Public
18
 
License along with the GNU C Library; see the file COPYING.LIB.  If
19
 
not, write to the Free Software Foundation, Inc., 675 Mass Ave,
20
 
Cambridge, MA 02139, USA.  */
21
 
 
22
 
 
23
 
#ifdef __GNUC__
24
 
 
25
 
/************* gcc ******************/
26
 
 
27
 
/* Spinlock implementation; required.  */
28
 
static inline long testandset(int *spinlock)
29
 
{
30
 
  long ret, temp;
31
 
 
32
 
  asm volatile(
33
 
        "1:\t"
34
 
        "ldl_l %0,%3\n\t"
35
 
        "bne %0,2f\n\t"
36
 
        "or $31,1,%1\n\t"
37
 
        "stl_c %1,%2\n\t"
38
 
        "beq %1,1b\n"
39
 
        "2:\tmb\n"
40
 
        : "=&r"(ret), "=&r"(temp), "=m"(*spinlock)
41
 
        : "m"(*spinlock)
42
 
        : "memory");
43
 
 
44
 
  return ret;
45
 
}
46
 
 
47
 
/* Spinlock release; default is just set to zero.  */
48
 
#define RELEASE_SPINLOCK(spinlock) \
49
 
  asm volatile("mb" : : : "memory"); \
50
 
  *spinlock = 0
51
 
 
52
 
#else
53
 
 
54
 
/************* Compaq compiler ******************/
55
 
 
56
 
#include <c_asm.h>
57
 
 
58
 
/* Spinlock implementation; required.  */
59
 
static long testandset(int *spinlock)
60
 
{
61
 
  long ret, temp = 0;
62
 
 
63
 
  ret = asm ("1:\
64
 
                 ldl_l %v0,(%a1);\
65
 
                 bne %v0 ,2f;\
66
 
                 or $31,1,%a0;\
67
 
                 stl_c %a0,(%a1);\
68
 
                 beq %a0,1b;\
69
 
              2:\
70
 
                 mb;"
71
 
            ,temp, spinlock );
72
 
 
73
 
  return ret;
74
 
}
75
 
 
76
 
/* Spinlock release; default is just set to zero.  */
77
 
#define RELEASE_SPINLOCK(spinlock) \
78
 
  asm ("mb"); \
79
 
  *spinlock = 0
80
 
 
81
 
#endif