1
1

Technically speaking, we're creating a QP with 1 send WQE and 1

receive WQE, so it's good form to have a CQ with 2 entries, not 1.

This commit was SVN r28256.
Этот коммит содержится в:
Jeff Squyres 2013-03-28 13:11:31 +00:00
родитель 9c6374b515
Коммит 64d39a4e97

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

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2012 Cisco Systems, Inc. All rights reserved. * Copyright (c) 2012-2013 Cisco Systems, Inc. All rights reserved.
* *
* $COPYRIGHT$ * $COPYRIGHT$
* *
@ -71,7 +71,7 @@ int ompi_common_verbs_qp_test(struct ibv_context *device_context, int flags)
return OMPI_ERR_OUT_OF_RESOURCE; return OMPI_ERR_OUT_OF_RESOURCE;
} }
cq = ibv_create_cq(device_context, 1, NULL, NULL, 0); cq = ibv_create_cq(device_context, 2, NULL, NULL, 0);
if (NULL == cq) { if (NULL == cq) {
rc = OMPI_ERR_OUT_OF_RESOURCE; rc = OMPI_ERR_OUT_OF_RESOURCE;
goto out; goto out;