~ubuntu-branches/ubuntu/hardy/openmpi/hardy-updates

« back to all changes in this revision

Viewing changes to opal/mca/maffinity/libnuma/maffinity_libnuma_component.c

  • Committer: Bazaar Package Importer
  • Author(s): Mark Hymers
  • Date: 2006-10-15 00:46:11 UTC
  • Revision ID: james.westby@ubuntu.com-20061015004611-uuhxnaxyjmuxfd5h
Tags: upstream-1.1
ImportĀ upstreamĀ versionĀ 1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
 
3
 *                         University Research and Technology
 
4
 *                         Corporation.  All rights reserved.
 
5
 * Copyright (c) 2004-2005 The University of Tennessee and The University
 
6
 *                         of Tennessee Research Foundation.  All rights
 
7
 *                         reserved.
 
8
 * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, 
 
9
 *                         University of Stuttgart.  All rights reserved.
 
10
 * Copyright (c) 2004-2005 The Regents of the University of California.
 
11
 *                         All rights reserved.
 
12
 * $COPYRIGHT$
 
13
 * 
 
14
 * Additional copyrights may follow
 
15
 * 
 
16
 * $HEADER$
 
17
 */
 
18
 
 
19
#include "opal_config.h"
 
20
 
 
21
#include "opal/constants.h"
 
22
#include "opal/mca/maffinity/maffinity.h"
 
23
#include "maffinity_libnuma.h"
 
24
 
 
25
/*
 
26
 * Public string showing the maffinity ompi_libnuma component version number
 
27
 */
 
28
const char *opal_maffinity_libnuma_component_version_string =
 
29
    "OPAL libnuma maffinity MCA component version " OMPI_VERSION;
 
30
 
 
31
/*
 
32
 * Local function
 
33
 */
 
34
static int libnuma_open(void);
 
35
 
 
36
/*
 
37
 * Instantiate the public struct with all of our public information
 
38
 * and pointers to our public functions in it
 
39
 */
 
40
 
 
41
const opal_maffinity_base_component_1_0_0_t mca_maffinity_libnuma_component = {
 
42
 
 
43
    /* First, the mca_component_t struct containing meta information
 
44
       about the component itself */
 
45
 
 
46
    {
 
47
        /* Indicate that we are a maffinity v1.0.0 component (which also
 
48
           implies a specific MCA version) */
 
49
        
 
50
        OPAL_MAFFINITY_BASE_VERSION_1_0_0,
 
51
 
 
52
        /* Component name and version */
 
53
 
 
54
        "libnuma",
 
55
        OMPI_MAJOR_VERSION,
 
56
        OMPI_MINOR_VERSION,
 
57
        OMPI_RELEASE_VERSION,
 
58
 
 
59
        /* Component open and close functions */
 
60
 
 
61
        libnuma_open,
 
62
        NULL
 
63
    },
 
64
 
 
65
    /* Next the MCA v1.0.0 component meta data */
 
66
 
 
67
    {
 
68
        /* Whether the component is checkpointable or not */
 
69
        
 
70
        true
 
71
    },
 
72
 
 
73
    /* Query function */
 
74
 
 
75
    opal_maffinity_libnuma_component_query
 
76
};
 
77
 
 
78
 
 
79
static int libnuma_open(void)
 
80
{
 
81
    mca_base_param_reg_int(&mca_maffinity_libnuma_component.maffinityc_version,
 
82
                           "priority",
 
83
                           "Priority of the libnuma maffinity component",
 
84
                           false, false, 25, NULL);
 
85
 
 
86
    return OPAL_SUCCESS;
 
87
}