~james-page/ubuntu/precise/openmpi1.5/new

« back to all changes in this revision

Viewing changes to ompi/win/win.c

  • Committer: Bazaar Package Importer
  • Author(s): Manuel Prinz
  • Date: 2009-04-23 14:01:21 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090423140121-vsi3pqa6g30j4qiy
Tags: 1.3.2-1
* New upstream release. (Closes: #520597, #515116)
  - Manpage and VampirTrace patches removed, included upstream.
* Fixed build issues on Alpha. Huge thanks to Arthur Loiret for providing
  access to his machines for testing! (Closes: #510845, #517543)
* Fixed build issues on Sparc. (Closes: #519725)
* Fixed manpage-has-errors-from-man lintian warnings.
* Faked SONAME change by renaming library package. (Closes: #512616)
* Made libopenmpi-dev depend on libibverbs-dev. (Closes: #522153)
* Support for "nocheck" build option in debian/rules.
* Updated Standards-Version in debian/control.
* Changed section of libopenmpi-dbg to "debug".
* Updated debian/copyright.

* Dirk Eddelbuettel removed himself from Uploaders. The team thanks Dirk
  for his long-term contribution and effort to get Open MPI back to life.
  I personally thank Dirk for encouraging me to become a Debian Developer
  and his support and mentoring on that way and beyond.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 *                         University of Stuttgart.  All rights reserved.
11
11
 * Copyright (c) 2004-2005 The Regents of the University of California.
12
12
 *                         All rights reserved.
 
13
 * Copyright (c) 2009      Sun Microsystems, Inc. All rights reserved.
13
14
 * $COPYRIGHT$
14
15
 * 
15
16
 * Additional copyrights may follow
36
37
 */
37
38
opal_pointer_array_t ompi_mpi_windows; 
38
39
 
39
 
ompi_win_t ompi_mpi_win_null;
 
40
ompi_predefined_win_t ompi_mpi_win_null;
40
41
 
41
42
static void ompi_win_construct(ompi_win_t *win);
42
43
static void ompi_win_destruct(ompi_win_t *win);
55
56
    }
56
57
 
57
58
    /* Setup MPI_WIN_NULL */
58
 
    OBJ_CONSTRUCT(&ompi_mpi_win_null, ompi_win_t);
59
 
    ompi_mpi_win_null.w_flags = OMPI_WIN_INVALID;
60
 
    ompi_mpi_win_null.w_group = &ompi_mpi_group_null;
 
59
    OBJ_CONSTRUCT(&ompi_mpi_win_null.win, ompi_win_t);
 
60
    ompi_mpi_win_null.win.w_flags = OMPI_WIN_INVALID;
 
61
    ompi_mpi_win_null.win.w_group = &ompi_mpi_group_null.group;
61
62
    OBJ_RETAIN(&ompi_mpi_group_null);
62
 
    ompi_win_set_name(&ompi_mpi_win_null, "MPI_WIN_NULL");
63
 
    opal_pointer_array_set_item(&ompi_mpi_windows, 0, &ompi_mpi_win_null);
 
63
    ompi_win_set_name(&ompi_mpi_win_null.win, "MPI_WIN_NULL");
 
64
    opal_pointer_array_set_item(&ompi_mpi_windows, 0, &ompi_mpi_win_null.win);
64
65
 
65
66
    return OMPI_SUCCESS;
66
67
}
69
70
int
70
71
ompi_win_finalize(void)
71
72
{
72
 
    OBJ_DESTRUCT(&ompi_mpi_win_null);
 
73
    OBJ_DESTRUCT(&ompi_mpi_win_null.win);
73
74
    OBJ_DESTRUCT(&ompi_mpi_windows);
74
75
 
75
76
    return OMPI_SUCCESS;
208
209
 
209
210
    /* every new window defaults to MPI_ERRORS_ARE_FATAL (MPI-2 6.6.1,
210
211
       pg. 137) */
211
 
    OBJ_RETAIN(&ompi_mpi_errors_are_fatal);
212
 
    win->error_handler = &ompi_mpi_errors_are_fatal;
 
212
    OBJ_RETAIN(&ompi_mpi_errors_are_fatal.eh);
 
213
    win->error_handler = &ompi_mpi_errors_are_fatal.eh;
213
214
    win->errhandler_type = OMPI_ERRHANDLER_TYPE_WIN;
214
215
 
215
216
    win->w_disp_unit = 0;