Per the details and schedule outlined in the attached RFC, Mellanox Technologies would like to CMR the new 'coll/hcoll' component. This component enables Mellanox Technologies' latest HPC middleware offering - 'Hcoll'. 'Hcoll' is a high-performance, standalone collectives library with support for truly asynchronous, non-blocking, hierarchical collectives via hardware offload on supporting Mellanox HCAs (ConnectX-3 and above.) To build the component, libhcoll must first be installed on your system, then you must configure OMPI with the configure flag: '--with-hcoll=/path/to/libhcoll'. Subsequent to installing, you may select the 'coll/hcoll' component at runtime as you would any other coll component, e.g. '-mca coll hcoll,tuned,libnbc'. This has been reviewed by Josh Ladd and should be added to cmr:v1.7:reviewer=jladd
This commit was SVN r28694.
2013-07-02 02:39:43 +04:00
|
|
|
/**
|
|
|
|
Copyright (c) 2011 Mellanox Technologies. All rights reserved.
|
|
|
|
$COPYRIGHT$
|
|
|
|
|
|
|
|
Additional copyrights may follow
|
|
|
|
|
|
|
|
$HEADER$
|
|
|
|
*/
|
|
|
|
#include "ompi_config.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#include <dlfcn.h>
|
|
|
|
#include <libgen.h>
|
|
|
|
|
|
|
|
#include "coll_hcoll.h"
|
|
|
|
#include "opal/mca/installdirs/installdirs.h"
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Public string showing the coll ompi_hcol component version number
|
|
|
|
*/
|
|
|
|
const char *mca_coll_hcoll_component_version_string =
|
|
|
|
"Open MPI HCOL collective MCA component version " OMPI_VERSION;
|
|
|
|
|
|
|
|
|
|
|
|
static int hcoll_open(void);
|
|
|
|
static int hcoll_close(void);
|
|
|
|
static int hcoll_register(void);
|
|
|
|
int mca_coll_hcoll_output = -1;
|
|
|
|
mca_coll_hcoll_component_t mca_coll_hcoll_component = {
|
|
|
|
|
|
|
|
/* First, the mca_component_t struct containing meta information
|
|
|
|
about the component itfca */
|
|
|
|
{
|
|
|
|
{
|
|
|
|
MCA_COLL_BASE_VERSION_2_0_0,
|
|
|
|
|
|
|
|
/* Component name and version */
|
|
|
|
"hcoll",
|
|
|
|
OMPI_MAJOR_VERSION,
|
|
|
|
OMPI_MINOR_VERSION,
|
|
|
|
OMPI_RELEASE_VERSION,
|
|
|
|
|
|
|
|
/* Component open and close functions */
|
|
|
|
hcoll_open,
|
|
|
|
hcoll_close,
|
|
|
|
NULL,
|
|
|
|
hcoll_register
|
|
|
|
},
|
|
|
|
{
|
|
|
|
/* The component is not checkpoint ready */
|
|
|
|
MCA_BASE_METADATA_PARAM_NONE
|
|
|
|
},
|
|
|
|
|
|
|
|
/* Initialization / querying functions */
|
|
|
|
|
|
|
|
mca_coll_hcoll_init_query,
|
|
|
|
mca_coll_hcoll_comm_query,
|
|
|
|
},
|
2014-01-21 16:19:47 +04:00
|
|
|
90, /* priority */
|
|
|
|
0, /* verbose level */
|
2014-10-13 21:16:07 +04:00
|
|
|
0, /* hcoll_enable */
|
2014-04-22 22:02:26 +04:00
|
|
|
NULL /*hcoll version */
|
Per the details and schedule outlined in the attached RFC, Mellanox Technologies would like to CMR the new 'coll/hcoll' component. This component enables Mellanox Technologies' latest HPC middleware offering - 'Hcoll'. 'Hcoll' is a high-performance, standalone collectives library with support for truly asynchronous, non-blocking, hierarchical collectives via hardware offload on supporting Mellanox HCAs (ConnectX-3 and above.) To build the component, libhcoll must first be installed on your system, then you must configure OMPI with the configure flag: '--with-hcoll=/path/to/libhcoll'. Subsequent to installing, you may select the 'coll/hcoll' component at runtime as you would any other coll component, e.g. '-mca coll hcoll,tuned,libnbc'. This has been reviewed by Josh Ladd and should be added to cmr:v1.7:reviewer=jladd
This commit was SVN r28694.
2013-07-02 02:39:43 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int mca_coll_hcoll_get_lib(void)
|
|
|
|
{
|
|
|
|
|
2013-09-18 16:22:02 +04:00
|
|
|
memset(&mca_coll_hcoll_component.hcoll_ops,
|
Per the details and schedule outlined in the attached RFC, Mellanox Technologies would like to CMR the new 'coll/hcoll' component. This component enables Mellanox Technologies' latest HPC middleware offering - 'Hcoll'. 'Hcoll' is a high-performance, standalone collectives library with support for truly asynchronous, non-blocking, hierarchical collectives via hardware offload on supporting Mellanox HCAs (ConnectX-3 and above.) To build the component, libhcoll must first be installed on your system, then you must configure OMPI with the configure flag: '--with-hcoll=/path/to/libhcoll'. Subsequent to installing, you may select the 'coll/hcoll' component at runtime as you would any other coll component, e.g. '-mca coll hcoll,tuned,libnbc'. This has been reviewed by Josh Ladd and should be added to cmr:v1.7:reviewer=jladd
This commit was SVN r28694.
2013-07-02 02:39:43 +04:00
|
|
|
0, sizeof(mca_coll_hcoll_component.hcoll_ops));
|
|
|
|
|
|
|
|
return OMPI_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* * Local flags
|
|
|
|
* */
|
|
|
|
enum {
|
|
|
|
REGINT_NEG_ONE_OK = 0x01,
|
|
|
|
REGINT_GE_ZERO = 0x02,
|
|
|
|
REGINT_GE_ONE = 0x04,
|
|
|
|
REGINT_NONZERO = 0x08,
|
|
|
|
REGINT_MAX = 0x88
|
|
|
|
};
|
|
|
|
|
|
|
|
enum {
|
|
|
|
REGSTR_EMPTY_OK = 0x01,
|
|
|
|
REGSTR_MAX = 0x88
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* utility routine for string parameter registration
|
|
|
|
*/
|
|
|
|
static int reg_string(const char* param_name,
|
|
|
|
const char* deprecated_param_name,
|
|
|
|
const char* param_desc,
|
|
|
|
const char* default_value, char **storage,
|
|
|
|
int flags)
|
|
|
|
{
|
|
|
|
int index;
|
|
|
|
|
|
|
|
*storage = (char *) default_value;
|
|
|
|
index = mca_base_component_var_register(
|
|
|
|
&mca_coll_hcoll_component.super.collm_version,
|
|
|
|
param_name, param_desc, MCA_BASE_VAR_TYPE_STRING,
|
|
|
|
NULL, 0, 0, OPAL_INFO_LVL_9,
|
|
|
|
MCA_BASE_VAR_SCOPE_READONLY, storage);
|
|
|
|
if (NULL != deprecated_param_name) {
|
2013-09-18 16:22:02 +04:00
|
|
|
(void) mca_base_var_register_synonym(index,
|
Per the details and schedule outlined in the attached RFC, Mellanox Technologies would like to CMR the new 'coll/hcoll' component. This component enables Mellanox Technologies' latest HPC middleware offering - 'Hcoll'. 'Hcoll' is a high-performance, standalone collectives library with support for truly asynchronous, non-blocking, hierarchical collectives via hardware offload on supporting Mellanox HCAs (ConnectX-3 and above.) To build the component, libhcoll must first be installed on your system, then you must configure OMPI with the configure flag: '--with-hcoll=/path/to/libhcoll'. Subsequent to installing, you may select the 'coll/hcoll' component at runtime as you would any other coll component, e.g. '-mca coll hcoll,tuned,libnbc'. This has been reviewed by Josh Ladd and should be added to cmr:v1.7:reviewer=jladd
This commit was SVN r28694.
2013-07-02 02:39:43 +04:00
|
|
|
"ompi", "coll", "hcoll", deprecated_param_name,
|
|
|
|
MCA_BASE_VAR_SYN_FLAG_DEPRECATED);
|
|
|
|
}
|
|
|
|
|
2013-09-18 16:22:02 +04:00
|
|
|
if (0 != (flags & REGSTR_EMPTY_OK) &&
|
Per the details and schedule outlined in the attached RFC, Mellanox Technologies would like to CMR the new 'coll/hcoll' component. This component enables Mellanox Technologies' latest HPC middleware offering - 'Hcoll'. 'Hcoll' is a high-performance, standalone collectives library with support for truly asynchronous, non-blocking, hierarchical collectives via hardware offload on supporting Mellanox HCAs (ConnectX-3 and above.) To build the component, libhcoll must first be installed on your system, then you must configure OMPI with the configure flag: '--with-hcoll=/path/to/libhcoll'. Subsequent to installing, you may select the 'coll/hcoll' component at runtime as you would any other coll component, e.g. '-mca coll hcoll,tuned,libnbc'. This has been reviewed by Josh Ladd and should be added to cmr:v1.7:reviewer=jladd
This commit was SVN r28694.
2013-07-02 02:39:43 +04:00
|
|
|
(NULL == *storage || 0 == strlen(*storage))) {
|
|
|
|
opal_output(0, "Bad parameter value for parameter \"%s\"",
|
|
|
|
param_name);
|
|
|
|
return OMPI_ERR_BAD_PARAM;
|
|
|
|
}
|
|
|
|
|
|
|
|
return OMPI_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-09-18 16:22:02 +04:00
|
|
|
/*
|
|
|
|
* Utility routine for integer parameter registration
|
Per the details and schedule outlined in the attached RFC, Mellanox Technologies would like to CMR the new 'coll/hcoll' component. This component enables Mellanox Technologies' latest HPC middleware offering - 'Hcoll'. 'Hcoll' is a high-performance, standalone collectives library with support for truly asynchronous, non-blocking, hierarchical collectives via hardware offload on supporting Mellanox HCAs (ConnectX-3 and above.) To build the component, libhcoll must first be installed on your system, then you must configure OMPI with the configure flag: '--with-hcoll=/path/to/libhcoll'. Subsequent to installing, you may select the 'coll/hcoll' component at runtime as you would any other coll component, e.g. '-mca coll hcoll,tuned,libnbc'. This has been reviewed by Josh Ladd and should be added to cmr:v1.7:reviewer=jladd
This commit was SVN r28694.
2013-07-02 02:39:43 +04:00
|
|
|
*/
|
|
|
|
static int reg_int(const char* param_name,
|
|
|
|
const char* deprecated_param_name,
|
|
|
|
const char* param_desc,
|
|
|
|
int default_value, int *storage, int flags)
|
|
|
|
{
|
|
|
|
int index;
|
|
|
|
|
|
|
|
*storage = default_value;
|
|
|
|
index = mca_base_component_var_register(
|
|
|
|
&mca_coll_hcoll_component.super.collm_version,
|
|
|
|
param_name, param_desc, MCA_BASE_VAR_TYPE_INT,
|
|
|
|
NULL, 0, 0,OPAL_INFO_LVL_9,
|
|
|
|
MCA_BASE_VAR_SCOPE_READONLY, storage);
|
|
|
|
if (NULL != deprecated_param_name) {
|
2013-09-18 16:22:02 +04:00
|
|
|
(void) mca_base_var_register_synonym(index,
|
Per the details and schedule outlined in the attached RFC, Mellanox Technologies would like to CMR the new 'coll/hcoll' component. This component enables Mellanox Technologies' latest HPC middleware offering - 'Hcoll'. 'Hcoll' is a high-performance, standalone collectives library with support for truly asynchronous, non-blocking, hierarchical collectives via hardware offload on supporting Mellanox HCAs (ConnectX-3 and above.) To build the component, libhcoll must first be installed on your system, then you must configure OMPI with the configure flag: '--with-hcoll=/path/to/libhcoll'. Subsequent to installing, you may select the 'coll/hcoll' component at runtime as you would any other coll component, e.g. '-mca coll hcoll,tuned,libnbc'. This has been reviewed by Josh Ladd and should be added to cmr:v1.7:reviewer=jladd
This commit was SVN r28694.
2013-07-02 02:39:43 +04:00
|
|
|
"ompi", "coll", "hcoll", deprecated_param_name,
|
|
|
|
MCA_BASE_VAR_SYN_FLAG_DEPRECATED);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (0 != (flags & REGINT_NEG_ONE_OK) && -1 == *storage) {
|
|
|
|
return OMPI_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
if ((0 != (flags & REGINT_GE_ZERO) && *storage < 0) ||
|
|
|
|
(0 != (flags & REGINT_GE_ONE) && *storage < 1) ||
|
|
|
|
(0 != (flags & REGINT_NONZERO) && 0 == *storage)) {
|
|
|
|
opal_output(0, "Bad parameter value for parameter \"%s\"",
|
|
|
|
param_name);
|
|
|
|
return OMPI_ERR_BAD_PARAM;
|
|
|
|
}
|
|
|
|
|
|
|
|
return OMPI_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static int hcoll_register(void)
|
|
|
|
{
|
|
|
|
|
|
|
|
int ret, tmp;
|
2013-09-18 16:22:02 +04:00
|
|
|
|
Per the details and schedule outlined in the attached RFC, Mellanox Technologies would like to CMR the new 'coll/hcoll' component. This component enables Mellanox Technologies' latest HPC middleware offering - 'Hcoll'. 'Hcoll' is a high-performance, standalone collectives library with support for truly asynchronous, non-blocking, hierarchical collectives via hardware offload on supporting Mellanox HCAs (ConnectX-3 and above.) To build the component, libhcoll must first be installed on your system, then you must configure OMPI with the configure flag: '--with-hcoll=/path/to/libhcoll'. Subsequent to installing, you may select the 'coll/hcoll' component at runtime as you would any other coll component, e.g. '-mca coll hcoll,tuned,libnbc'. This has been reviewed by Josh Ladd and should be added to cmr:v1.7:reviewer=jladd
This commit was SVN r28694.
2013-07-02 02:39:43 +04:00
|
|
|
ret = OMPI_SUCCESS;
|
2013-09-18 16:22:02 +04:00
|
|
|
|
2014-01-21 16:19:47 +04:00
|
|
|
#define CHECK(expr) do { \
|
|
|
|
tmp = (expr); \
|
|
|
|
if (OMPI_SUCCESS != tmp) ret = tmp; \
|
|
|
|
} while (0)
|
Per the details and schedule outlined in the attached RFC, Mellanox Technologies would like to CMR the new 'coll/hcoll' component. This component enables Mellanox Technologies' latest HPC middleware offering - 'Hcoll'. 'Hcoll' is a high-performance, standalone collectives library with support for truly asynchronous, non-blocking, hierarchical collectives via hardware offload on supporting Mellanox HCAs (ConnectX-3 and above.) To build the component, libhcoll must first be installed on your system, then you must configure OMPI with the configure flag: '--with-hcoll=/path/to/libhcoll'. Subsequent to installing, you may select the 'coll/hcoll' component at runtime as you would any other coll component, e.g. '-mca coll hcoll,tuned,libnbc'. This has been reviewed by Josh Ladd and should be added to cmr:v1.7:reviewer=jladd
This commit was SVN r28694.
2013-07-02 02:39:43 +04:00
|
|
|
|
|
|
|
|
|
|
|
CHECK(reg_int("priority",NULL,
|
2014-01-21 16:19:47 +04:00
|
|
|
"Priority of the hcol coll component",
|
|
|
|
90,
|
|
|
|
&mca_coll_hcoll_component.hcoll_priority,
|
|
|
|
0));
|
Per the details and schedule outlined in the attached RFC, Mellanox Technologies would like to CMR the new 'coll/hcoll' component. This component enables Mellanox Technologies' latest HPC middleware offering - 'Hcoll'. 'Hcoll' is a high-performance, standalone collectives library with support for truly asynchronous, non-blocking, hierarchical collectives via hardware offload on supporting Mellanox HCAs (ConnectX-3 and above.) To build the component, libhcoll must first be installed on your system, then you must configure OMPI with the configure flag: '--with-hcoll=/path/to/libhcoll'. Subsequent to installing, you may select the 'coll/hcoll' component at runtime as you would any other coll component, e.g. '-mca coll hcoll,tuned,libnbc'. This has been reviewed by Josh Ladd and should be added to cmr:v1.7:reviewer=jladd
This commit was SVN r28694.
2013-07-02 02:39:43 +04:00
|
|
|
|
|
|
|
CHECK(reg_int("verbose", NULL,
|
2014-01-21 16:19:47 +04:00
|
|
|
"Verbose level of the hcol coll component",
|
|
|
|
0,
|
|
|
|
&mca_coll_hcoll_component.hcoll_verbose,
|
|
|
|
0));
|
Per the details and schedule outlined in the attached RFC, Mellanox Technologies would like to CMR the new 'coll/hcoll' component. This component enables Mellanox Technologies' latest HPC middleware offering - 'Hcoll'. 'Hcoll' is a high-performance, standalone collectives library with support for truly asynchronous, non-blocking, hierarchical collectives via hardware offload on supporting Mellanox HCAs (ConnectX-3 and above.) To build the component, libhcoll must first be installed on your system, then you must configure OMPI with the configure flag: '--with-hcoll=/path/to/libhcoll'. Subsequent to installing, you may select the 'coll/hcoll' component at runtime as you would any other coll component, e.g. '-mca coll hcoll,tuned,libnbc'. This has been reviewed by Josh Ladd and should be added to cmr:v1.7:reviewer=jladd
This commit was SVN r28694.
2013-07-02 02:39:43 +04:00
|
|
|
|
|
|
|
CHECK(reg_int("enable",NULL,
|
2014-01-21 16:19:47 +04:00
|
|
|
"[1|0|] Enable/Disable HCOL",
|
2014-06-28 22:45:03 +04:00
|
|
|
0 /*disable by default*/,
|
2014-01-21 16:19:47 +04:00
|
|
|
&mca_coll_hcoll_component.hcoll_enable,
|
|
|
|
0));
|
|
|
|
|
|
|
|
CHECK(reg_int("np",NULL,
|
|
|
|
"Minimal number of processes in the communicator"
|
|
|
|
" for the corresponding hcoll context to be created (default: 32)",
|
2014-06-28 22:45:03 +04:00
|
|
|
2,
|
2014-01-21 16:19:47 +04:00
|
|
|
&mca_coll_hcoll_component.hcoll_np,
|
|
|
|
0));
|
Per the details and schedule outlined in the attached RFC, Mellanox Technologies would like to CMR the new 'coll/hcoll' component. This component enables Mellanox Technologies' latest HPC middleware offering - 'Hcoll'. 'Hcoll' is a high-performance, standalone collectives library with support for truly asynchronous, non-blocking, hierarchical collectives via hardware offload on supporting Mellanox HCAs (ConnectX-3 and above.) To build the component, libhcoll must first be installed on your system, then you must configure OMPI with the configure flag: '--with-hcoll=/path/to/libhcoll'. Subsequent to installing, you may select the 'coll/hcoll' component at runtime as you would any other coll component, e.g. '-mca coll hcoll,tuned,libnbc'. This has been reviewed by Josh Ladd and should be added to cmr:v1.7:reviewer=jladd
This commit was SVN r28694.
2013-07-02 02:39:43 +04:00
|
|
|
|
2013-12-04 00:21:40 +04:00
|
|
|
CHECK(reg_int("datatype_fallback",NULL,
|
2014-01-21 16:19:47 +04:00
|
|
|
"[1|0|] Enable/Disable user defined dattypes fallback",
|
2014-06-28 22:45:03 +04:00
|
|
|
1,
|
2014-01-21 16:19:47 +04:00
|
|
|
&mca_coll_hcoll_component.hcoll_datatype_fallback,
|
|
|
|
0));
|
Per the details and schedule outlined in the attached RFC, Mellanox Technologies would like to CMR the new 'coll/hcoll' component. This component enables Mellanox Technologies' latest HPC middleware offering - 'Hcoll'. 'Hcoll' is a high-performance, standalone collectives library with support for truly asynchronous, non-blocking, hierarchical collectives via hardware offload on supporting Mellanox HCAs (ConnectX-3 and above.) To build the component, libhcoll must first be installed on your system, then you must configure OMPI with the configure flag: '--with-hcoll=/path/to/libhcoll'. Subsequent to installing, you may select the 'coll/hcoll' component at runtime as you would any other coll component, e.g. '-mca coll hcoll,tuned,libnbc'. This has been reviewed by Josh Ladd and should be added to cmr:v1.7:reviewer=jladd
This commit was SVN r28694.
2013-07-02 02:39:43 +04:00
|
|
|
|
2014-04-22 22:02:26 +04:00
|
|
|
mca_coll_hcoll_component.compiletime_version = HCOLL_VERNO_STRING;
|
|
|
|
mca_base_component_var_register(&mca_coll_hcoll_component.super.collm_version,
|
|
|
|
MCA_COMPILETIME_VER,
|
2014-07-11 11:23:20 +04:00
|
|
|
"Version of the libhcoll library with which Open MPI was compiled",
|
2014-07-09 05:37:23 +04:00
|
|
|
MCA_BASE_VAR_TYPE_VERSION_STRING,
|
2014-04-22 22:02:26 +04:00
|
|
|
NULL, 0, 0,
|
|
|
|
OPAL_INFO_LVL_3,
|
|
|
|
MCA_BASE_VAR_SCOPE_READONLY,
|
|
|
|
&mca_coll_hcoll_component.compiletime_version);
|
|
|
|
mca_coll_hcoll_component.runtime_version = hcoll_get_version();
|
|
|
|
mca_base_component_var_register(&mca_coll_hcoll_component.super.collm_version,
|
|
|
|
MCA_RUNTIME_VER,
|
2014-07-11 11:23:20 +04:00
|
|
|
"Version of the libhcoll library with which Open MPI is running",
|
2014-07-09 05:37:23 +04:00
|
|
|
MCA_BASE_VAR_TYPE_VERSION_STRING,
|
2014-04-22 22:02:26 +04:00
|
|
|
NULL, 0, 0,
|
|
|
|
OPAL_INFO_LVL_3,
|
|
|
|
MCA_BASE_VAR_SCOPE_READONLY,
|
|
|
|
&mca_coll_hcoll_component.runtime_version);
|
Per the details and schedule outlined in the attached RFC, Mellanox Technologies would like to CMR the new 'coll/hcoll' component. This component enables Mellanox Technologies' latest HPC middleware offering - 'Hcoll'. 'Hcoll' is a high-performance, standalone collectives library with support for truly asynchronous, non-blocking, hierarchical collectives via hardware offload on supporting Mellanox HCAs (ConnectX-3 and above.) To build the component, libhcoll must first be installed on your system, then you must configure OMPI with the configure flag: '--with-hcoll=/path/to/libhcoll'. Subsequent to installing, you may select the 'coll/hcoll' component at runtime as you would any other coll component, e.g. '-mca coll hcoll,tuned,libnbc'. This has been reviewed by Josh Ladd and should be added to cmr:v1.7:reviewer=jladd
This commit was SVN r28694.
2013-07-02 02:39:43 +04:00
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int hcoll_open(void)
|
|
|
|
{
|
|
|
|
int rc;
|
2014-01-21 16:19:47 +04:00
|
|
|
mca_coll_hcoll_component_t *cm;
|
|
|
|
cm = &mca_coll_hcoll_component;
|
Per the details and schedule outlined in the attached RFC, Mellanox Technologies would like to CMR the new 'coll/hcoll' component. This component enables Mellanox Technologies' latest HPC middleware offering - 'Hcoll'. 'Hcoll' is a high-performance, standalone collectives library with support for truly asynchronous, non-blocking, hierarchical collectives via hardware offload on supporting Mellanox HCAs (ConnectX-3 and above.) To build the component, libhcoll must first be installed on your system, then you must configure OMPI with the configure flag: '--with-hcoll=/path/to/libhcoll'. Subsequent to installing, you may select the 'coll/hcoll' component at runtime as you would any other coll component, e.g. '-mca coll hcoll,tuned,libnbc'. This has been reviewed by Josh Ladd and should be added to cmr:v1.7:reviewer=jladd
This commit was SVN r28694.
2013-07-02 02:39:43 +04:00
|
|
|
|
|
|
|
mca_coll_hcoll_output = opal_output_open(NULL);
|
2014-01-21 16:19:47 +04:00
|
|
|
opal_output_set_verbosity(mca_coll_hcoll_output, cm->hcoll_verbose);
|
Per the details and schedule outlined in the attached RFC, Mellanox Technologies would like to CMR the new 'coll/hcoll' component. This component enables Mellanox Technologies' latest HPC middleware offering - 'Hcoll'. 'Hcoll' is a high-performance, standalone collectives library with support for truly asynchronous, non-blocking, hierarchical collectives via hardware offload on supporting Mellanox HCAs (ConnectX-3 and above.) To build the component, libhcoll must first be installed on your system, then you must configure OMPI with the configure flag: '--with-hcoll=/path/to/libhcoll'. Subsequent to installing, you may select the 'coll/hcoll' component at runtime as you would any other coll component, e.g. '-mca coll hcoll,tuned,libnbc'. This has been reviewed by Josh Ladd and should be added to cmr:v1.7:reviewer=jladd
This commit was SVN r28694.
2013-07-02 02:39:43 +04:00
|
|
|
|
|
|
|
hcoll_rte_fns_setup();
|
|
|
|
|
2014-01-21 16:19:47 +04:00
|
|
|
cm->libhcoll_initialized = false;
|
2014-05-17 23:49:43 +04:00
|
|
|
|
|
|
|
/* Register memory hooks */
|
|
|
|
if ((OPAL_MEMORY_FREE_SUPPORT | OPAL_MEMORY_MUNMAP_SUPPORT) ==
|
|
|
|
((OPAL_MEMORY_FREE_SUPPORT | OPAL_MEMORY_MUNMAP_SUPPORT) &
|
|
|
|
opal_mem_hooks_support_level()))
|
|
|
|
{
|
|
|
|
setenv("MXM_HCOLL_MEM_ON_DEMAND_MAP", "y", 0);
|
|
|
|
HCOL_VERBOSE(1, "Enabling on-demand memory mapping");
|
|
|
|
cm->using_mem_hooks = 1;
|
|
|
|
} else {
|
|
|
|
HCOL_VERBOSE(1, "Disabling on-demand memory mapping");
|
|
|
|
cm->using_mem_hooks = 0;
|
|
|
|
}
|
|
|
|
|
Per the details and schedule outlined in the attached RFC, Mellanox Technologies would like to CMR the new 'coll/hcoll' component. This component enables Mellanox Technologies' latest HPC middleware offering - 'Hcoll'. 'Hcoll' is a high-performance, standalone collectives library with support for truly asynchronous, non-blocking, hierarchical collectives via hardware offload on supporting Mellanox HCAs (ConnectX-3 and above.) To build the component, libhcoll must first be installed on your system, then you must configure OMPI with the configure flag: '--with-hcoll=/path/to/libhcoll'. Subsequent to installing, you may select the 'coll/hcoll' component at runtime as you would any other coll component, e.g. '-mca coll hcoll,tuned,libnbc'. This has been reviewed by Josh Ladd and should be added to cmr:v1.7:reviewer=jladd
This commit was SVN r28694.
2013-07-02 02:39:43 +04:00
|
|
|
return OMPI_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int hcoll_close(void)
|
|
|
|
{
|
|
|
|
int rc;
|
2014-01-21 16:19:47 +04:00
|
|
|
mca_coll_hcoll_component_t *cm;
|
|
|
|
cm = &mca_coll_hcoll_component;
|
2014-01-08 14:55:25 +04:00
|
|
|
|
2014-01-21 16:19:47 +04:00
|
|
|
if (false == cm->libhcoll_initialized) {
|
2014-01-08 14:55:25 +04:00
|
|
|
return OMPI_SUCCESS;
|
|
|
|
}
|
|
|
|
|
2014-05-17 23:49:43 +04:00
|
|
|
if (cm->using_mem_hooks) {
|
|
|
|
opal_mem_hooks_unregister_release(mca_coll_hcoll_mem_release_cb);
|
|
|
|
}
|
|
|
|
|
2013-09-18 16:22:02 +04:00
|
|
|
HCOL_VERBOSE(5,"HCOLL FINALIZE");
|
Per the details and schedule outlined in the attached RFC, Mellanox Technologies would like to CMR the new 'coll/hcoll' component. This component enables Mellanox Technologies' latest HPC middleware offering - 'Hcoll'. 'Hcoll' is a high-performance, standalone collectives library with support for truly asynchronous, non-blocking, hierarchical collectives via hardware offload on supporting Mellanox HCAs (ConnectX-3 and above.) To build the component, libhcoll must first be installed on your system, then you must configure OMPI with the configure flag: '--with-hcoll=/path/to/libhcoll'. Subsequent to installing, you may select the 'coll/hcoll' component at runtime as you would any other coll component, e.g. '-mca coll hcoll,tuned,libnbc'. This has been reviewed by Josh Ladd and should be added to cmr:v1.7:reviewer=jladd
This commit was SVN r28694.
2013-07-02 02:39:43 +04:00
|
|
|
rc = hcoll_finalize();
|
2014-01-08 14:55:25 +04:00
|
|
|
|
2013-12-04 00:21:40 +04:00
|
|
|
opal_progress_unregister(mca_coll_hcoll_progress);
|
Per the details and schedule outlined in the attached RFC, Mellanox Technologies would like to CMR the new 'coll/hcoll' component. This component enables Mellanox Technologies' latest HPC middleware offering - 'Hcoll'. 'Hcoll' is a high-performance, standalone collectives library with support for truly asynchronous, non-blocking, hierarchical collectives via hardware offload on supporting Mellanox HCAs (ConnectX-3 and above.) To build the component, libhcoll must first be installed on your system, then you must configure OMPI with the configure flag: '--with-hcoll=/path/to/libhcoll'. Subsequent to installing, you may select the 'coll/hcoll' component at runtime as you would any other coll component, e.g. '-mca coll hcoll,tuned,libnbc'. This has been reviewed by Josh Ladd and should be added to cmr:v1.7:reviewer=jladd
This commit was SVN r28694.
2013-07-02 02:39:43 +04:00
|
|
|
if (HCOLL_SUCCESS != rc){
|
|
|
|
HCOL_VERBOSE(1,"Hcol library finalize failed");
|
|
|
|
return OMPI_ERROR;
|
|
|
|
}
|
|
|
|
return OMPI_SUCCESS;
|
|
|
|
}
|