* check for 0 byte movement should happen before trying to allocate a
request, not while trying to allocate a request (duh) This commit was SVN r9239.
Этот коммит содержится в:
родитель
d18e2b46a4
Коммит
bbfd10fb39
@ -61,6 +61,11 @@ ompi_osc_pt2pt_module_accumulate(void *origin_addr, int origin_count,
|
|||||||
return MPI_ERR_UNSUPPORTED_OPERATION;
|
return MPI_ERR_UNSUPPORTED_OPERATION;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* shortcut 0 count case */
|
||||||
|
if (0 == origin_count || 0 == target_count) {
|
||||||
|
return OMPI_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
/* create sendreq */
|
/* create sendreq */
|
||||||
ret = ompi_osc_pt2pt_sendreq_alloc_init(OMPI_OSC_PT2PT_ACC,
|
ret = ompi_osc_pt2pt_sendreq_alloc_init(OMPI_OSC_PT2PT_ACC,
|
||||||
origin_addr,
|
origin_addr,
|
||||||
@ -102,6 +107,11 @@ ompi_osc_pt2pt_module_get(void *origin_addr,
|
|||||||
OMPI_WIN_EXPOSE_EPOCH);
|
OMPI_WIN_EXPOSE_EPOCH);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* shortcut 0 count case */
|
||||||
|
if (0 == origin_count || 0 == target_count) {
|
||||||
|
return OMPI_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
/* create sendreq */
|
/* create sendreq */
|
||||||
ret = ompi_osc_pt2pt_sendreq_alloc_init(OMPI_OSC_PT2PT_GET,
|
ret = ompi_osc_pt2pt_sendreq_alloc_init(OMPI_OSC_PT2PT_GET,
|
||||||
origin_addr,
|
origin_addr,
|
||||||
@ -137,6 +147,11 @@ ompi_osc_pt2pt_module_put(void *origin_addr, int origin_count,
|
|||||||
OMPI_WIN_EXPOSE_EPOCH);
|
OMPI_WIN_EXPOSE_EPOCH);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* shortcut 0 count case */
|
||||||
|
if (0 == origin_count || 0 == target_count) {
|
||||||
|
return OMPI_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
/* create sendreq */
|
/* create sendreq */
|
||||||
ret = ompi_osc_pt2pt_sendreq_alloc_init(OMPI_OSC_PT2PT_PUT,
|
ret = ompi_osc_pt2pt_sendreq_alloc_init(OMPI_OSC_PT2PT_PUT,
|
||||||
origin_addr,
|
origin_addr,
|
||||||
|
@ -33,11 +33,6 @@ ompi_osc_pt2pt_sendreq_alloc_init(ompi_osc_pt2pt_req_type_t req_type,
|
|||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
/* shortcut 0 count case */
|
|
||||||
if (0 == origin_count || 0 == target_count) {
|
|
||||||
return OMPI_SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* allocate a sendreq */
|
/* allocate a sendreq */
|
||||||
ret = ompi_osc_pt2pt_sendreq_alloc(module, target,
|
ret = ompi_osc_pt2pt_sendreq_alloc(module, target,
|
||||||
sendreq);
|
sendreq);
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user