From dalcinl@XXXXXXXXX Thu Nov 29 08:13:43 2007 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=TMeuOp3TLguStkDGBS0jlS5K7+uu9zDQ8uveVPWCVz0=; b=GhuhRUHGpjNDhkf9VzhXVdNE1s2Mi+HDjgWCWv/VeUozomsaeSSKTnrEbMB+IT26n+FfQ1YxmCU/42oivQI3H8R4ZSzcmeLuyROtOio7dElhLVf026xfiaAuA2E/RVN6jkdM8QRk8H2QJpebk2ih7zxYvCXj/uLqY+G65JEkmg0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=adzJz3Dsr++A+KamrD9lrDU+7D9r/6n5/RGfS+Ttua7888n00XnEc3v5gnausD1CyptA/UgmyZMPCciTrvTUIIrOeXKm8hswTCbXzlhlWyZZ6YatP2WfrWcsTapNJ/Xb/kxN9Sp10jaL1J7XCKhR70xnRcDQfBfYoqArH728aqk= Date: Thu, 29 Nov 2007 11:13:39 -0300 From: "Lisandro Dalcin" To: "William Gropp" Subject: mpi-2 clarifications MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at mailgw.mcs.anl.gov Bill, here goes an issue I faced in developing mpi4py. Group operations are supposed to return new groups, so the used has to free the result. Additionally, the standard say that those operations may return the empty group. Then the issue: if the empty group is returned, the user should or should not call MPI_Group_free()??. I could not find any part of the standard about freeing MPI_GROUP_EMPTY. This issue is very similar to the one in MPI-1 related to error handlers. I believe the standard should be a bit stricter here, but many possibilities are: * MPI_GROUP_EMPTY must be freed it it is the result of a group operation. This way similar to the management of predefined error handlers. * MPI_GROUP_EMPTY cannot be freed, as it is a predefined handle. Users have to always check if the result of a group operation is MPI_GROUP_EMPTY to know if they can or cannot free them. This way is similar to the current management of predefined datatypes. --=20 Lisandro Dalc=EDn --------------- Centro Internacional de M=E9todos Computacionales en Ingenier=EDa (CIMEC) Instituto de Desarrollo Tecnol=F3gico para la Industria Qu=EDmica (INTEC) Consejo Nacional de Investigaciones Cient=EDficas y T=E9cnicas (CONICET) PTLC - G=FCemes 3450, (3000) Santa Fe, Argentina Tel/Fax: +54-(0)342-451.1594