~ubuntu-branches/ubuntu/oneiric/mpqc/oneiric

« back to all changes in this revision

Viewing changes to src/lib/util/group/messmpi.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck
  • Date: 2005-11-27 11:41:49 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051127114149-zgz9r3gk50w8ww2q
Tags: 2.3.0-1
* New upstream release.
* debian/rules (SONAME): Activate awk snippet for automatic so-name
  detection again, resulting in a bump to `7' and making a `c2a' for
  the C++ allocator change unnecessary; closes: #339232.
* debian/patches/00list (08_gcc-4.0_fixes): Removed, no longer needed.
* debian/rules (test): Remove workarounds, do not abort build if tests
  fail.
* debian/ref: Removed.
* debian/control.in (libsc): Added Conflict against libsc6c2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
#include <util/group/message.h>
32
32
#include <util/group/thread.h>
33
33
 
 
34
#define MPICH_SKIP_MPICXX
34
35
#include <mpi.h>
35
36
 
36
37
namespace sc {
46
47
    int rtag;
47
48
    int rlen;
48
49
 
 
50
    /// If true use the generic collective routines in the base class
 
51
    bool use_messagegrp_collectives_;
 
52
 
49
53
    /// Number of MPIMessageGrp's currently in use.
50
54
    static int nmpi_grps;
51
55
    /// lock to access nmpi_grps variable
73
77
    /// Clones (dups) an MPIMessageGrp from MPI_COMM_WORLD 
74
78
    Ref<MessageGrp> clone(void);
75
79
    
76
 
    void raw_send(int target, void* data, int nbyte);
 
80
    void raw_send(int target, const void* data, int nbyte);
77
81
    void raw_recv(int sender, void* data, int nbyte);
78
 
    void raw_sendt(int target, int type, void* data, int nbyte);
 
82
    void raw_sendt(int target, int type, const void* data, int nbyte);
79
83
    void raw_recvt(int type, void* data, int nbyte);
80
84
 
81
85
    int probet(int type);
82
86
 
83
87
    void sync();
84
88
 
 
89
    void sum(double*, int n, double*scratch = 0, int target = -1);
 
90
    void sum(int*, int n, int*scratch = 0, int target = -1);
 
91
 
85
92
    void reduce(double*, int n, GrpReduce<double>&,
86
93
                double*scratch = 0, int target = -1);
87
94
    void reduce(unsigned int*, int n, GrpReduce<unsigned int>&,