1
1

coll/libnbc: Add assertion for NBC_A2A_DISS

Persistent operation for `NBC_A2A_DISS` is not supported currently.
Though the algorithm is not selected at all currently, I put an
assertion not to select it by mistake.

Signed-off-by: KAWASHIMA Takahiro <t-kawashima@jp.fujitsu.com>
Этот коммит содержится в:
KAWASHIMA Takahiro 2018-05-11 16:39:56 +09:00
родитель 0b8b0f8393
Коммит 5c21903477

Просмотреть файл

@ -118,7 +118,10 @@ static int nbc_ialltoall(const void* sendbuf, int sendcount, MPI_Datatype sendty
return OMPI_ERR_OUT_OF_RESOURCE;
}
} else if (alg == NBC_A2A_DISS) {
/* only A2A_DISS needs buffers */
/* persistent operation is not supported currently for this algorithm;
* we need to replace PMPI_Pack, PMPI_Unpack, and mempcy */
assert(! persistent);
if(NBC_Type_intrinsic(sendtype)) {
datasize = sndext * sendcount;
} else {