ompi/op: Provide a default value for type/flags
* User defined ops leave the op_type unset which can confuse logic in a collective component that is trying to convert the op to the approprate local function.
Этот коммит содержится в:
родитель
d577e12dd0
Коммит
a776d78f2d
@ -443,6 +443,10 @@ static void ompi_op_construct(ompi_op_t *new_op)
|
||||
{
|
||||
int i;
|
||||
|
||||
/* Provide a default of a high value. Useful for non-predefined ops. */
|
||||
new_op->op_type = OMPI_OP_NUM_OF_TYPES;
|
||||
new_op->o_flags = 0;
|
||||
|
||||
/* assign entry in fortran <-> c translation array */
|
||||
|
||||
new_op->o_f_to_c_index =
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user