Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Rob Latham
MPICH-BlueGene
Commits
a07efda5
Commit
a07efda5
authored
Nov 13, 2014
by
Devendar Bureddy
Committed by
Pavan Balaji
Nov 13, 2014
Browse files
Fix hcoll setup issues
parent
198d2917
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/mpid/common/hcoll/hcoll_dtypes.h
View file @
a07efda5
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
static
dte_data_representation_t
mpi_dtype_2_dte_dtype
(
MPI_Datatype
datatype
)
static
dte_data_representation_t
mpi_dtype_2_dte_dtype
(
MPI_Datatype
datatype
)
{
{
switch
(
datatype
)
{
switch
(
datatype
)
{
case
MPI_CHAR
:
case
MPI_SIGNED_CHAR
:
case
MPI_SIGNED_CHAR
:
return
DTE_BYTE
;
return
DTE_BYTE
;
case
MPI_SHORT
:
case
MPI_SHORT
:
...
...
src/mpid/common/hcoll/hcoll_init.c
View file @
a07efda5
#include "hcoll.h"
#include "hcoll.h"
static
int
hcoll_initialized
=
0
;
static
int
hcoll_initialized
=
0
;
static
int
hcoll_comm_world_initialized
=
0
;
int
hcoll_enable
=
1
;
int
hcoll_enable
=
1
;
int
hcoll_enable_barrier
=
1
;
int
hcoll_enable_barrier
=
1
;
int
hcoll_enable_bcast
=
1
;
int
hcoll_enable_bcast
=
1
;
...
@@ -22,10 +23,6 @@ int hcoll_destroy(void *param ATTRIBUTE((unused)))
...
@@ -22,10 +23,6 @@ int hcoll_destroy(void *param ATTRIBUTE((unused)))
{
{
if
(
1
==
hcoll_initialized
)
{
if
(
1
==
hcoll_initialized
)
{
hcoll_finalize
();
hcoll_finalize
();
if
(
MPI_KEYVAL_INVALID
!=
hcoll_comm_attr_keyval
)
{
MPIR_Comm_free_keyval_impl
(
hcoll_comm_attr_keyval
);
hcoll_comm_attr_keyval
=
MPI_KEYVAL_INVALID
;
}
}
}
hcoll_initialized
=
0
;
hcoll_initialized
=
0
;
return
0
;
return
0
;
...
@@ -130,6 +127,13 @@ int hcoll_comm_create(MPID_Comm * comm_ptr, void *param)
...
@@ -130,6 +127,13 @@ int hcoll_comm_create(MPID_Comm * comm_ptr, void *param)
if
(
0
==
hcoll_enable
)
{
if
(
0
==
hcoll_enable
)
{
goto
fn_exit
;
goto
fn_exit
;
}
}
if
(
MPIR_Process
.
comm_world
==
comm_ptr
)
{
hcoll_comm_world_initialized
=
1
;
}
if
(
!
hcoll_comm_world_initialized
)
{
comm_ptr
->
hcoll_priv
.
is_hcoll_init
=
0
;
goto
fn_exit
;
}
num_ranks
=
comm_ptr
->
local_size
;
num_ranks
=
comm_ptr
->
local_size
;
if
((
MPID_INTRACOMM
!=
comm_ptr
->
comm_kind
)
||
(
2
>
num_ranks
))
{
if
((
MPID_INTRACOMM
!=
comm_ptr
->
comm_kind
)
||
(
2
>
num_ranks
))
{
comm_ptr
->
hcoll_priv
.
is_hcoll_init
=
0
;
comm_ptr
->
hcoll_priv
.
is_hcoll_init
=
0
;
...
@@ -185,6 +189,14 @@ int hcoll_comm_destroy(MPID_Comm * comm_ptr, void *param)
...
@@ -185,6 +189,14 @@ int hcoll_comm_destroy(MPID_Comm * comm_ptr, void *param)
goto
fn_exit
;
goto
fn_exit
;
}
}
mpi_errno
=
MPI_SUCCESS
;
mpi_errno
=
MPI_SUCCESS
;
if
(
comm_ptr
==
MPIR_Process
.
comm_world
)
{
if
(
MPI_KEYVAL_INVALID
!=
hcoll_comm_attr_keyval
)
{
MPIR_Comm_free_keyval_impl
(
hcoll_comm_attr_keyval
);
hcoll_comm_attr_keyval
=
MPI_KEYVAL_INVALID
;
}
}
context_destroyed
=
0
;
context_destroyed
=
0
;
if
((
NULL
!=
comm_ptr
)
&&
(
0
!=
comm_ptr
->
hcoll_priv
.
is_hcoll_init
))
{
if
((
NULL
!=
comm_ptr
)
&&
(
0
!=
comm_ptr
->
hcoll_priv
.
is_hcoll_init
))
{
if
(
NULL
!=
comm_ptr
->
coll_fns
)
{
if
(
NULL
!=
comm_ptr
->
coll_fns
)
{
...
@@ -193,7 +205,6 @@ int hcoll_comm_destroy(MPID_Comm * comm_ptr, void *param)
...
@@ -193,7 +205,6 @@ int hcoll_comm_destroy(MPID_Comm * comm_ptr, void *param)
comm_ptr
->
coll_fns
=
comm_ptr
->
hcoll_priv
.
hcoll_origin_coll_fns
;
comm_ptr
->
coll_fns
=
comm_ptr
->
hcoll_priv
.
hcoll_origin_coll_fns
;
hcoll_destroy_context
(
comm_ptr
->
hcoll_priv
.
hcoll_context
,
hcoll_destroy_context
(
comm_ptr
->
hcoll_priv
.
hcoll_context
,
(
rte_grp_handle_t
)
comm_ptr
,
&
context_destroyed
);
(
rte_grp_handle_t
)
comm_ptr
,
&
context_destroyed
);
MPIU_Assert
(
context_destroyed
);
comm_ptr
->
hcoll_priv
.
is_hcoll_init
=
0
;
comm_ptr
->
hcoll_priv
.
is_hcoll_init
=
0
;
}
}
fn_exit:
fn_exit:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment