Accéder au contenu.
Menu Sympa

starpu-devel - Re: [Starpu-devel] StarPU feature suggestion on a collective MPI operation

Objet : Developers list for StarPU

Archives de la liste

Re: [Starpu-devel] StarPU feature suggestion on a collective MPI operation


Chronologique Discussions 
  • From: Henrik Henriksson <henhe459@student.liu.se>
  • To: Samuel Thibault <samuel.thibault@inria.fr>, "starpu-devel@lists.gforge.inria.fr" <starpu-devel@lists.gforge.inria.fr>
  • Subject: Re: [Starpu-devel] StarPU feature suggestion on a collective MPI operation
  • Date: Mon, 8 Apr 2019 08:12:01 +0000
  • Accept-language: en-US, sv-SE
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=henhe459@student.liu.se; spf=Pass smtp.mailfrom=henhe459@student.liu.se; spf=None smtp.helo=postmaster@carinthia.it.liu.se
  • Dkim-filter: OpenDKIM Filter v2.11.0 carinthia.it.liu.se 87249805B0
  • Ironport-phdr: 9a23:/2KICRSXOwQ17/5X/OOSZroUytpsv+yvbD5Q0YIujvd0So/mwa67ZBGFt8tkgFKBZ4jH8fUM07OQ7/m5HzVaqs/b7zhCKMUKC0Zdz51O3kQJO42sMQXDNvnkbig3ToxpdWRO2DWFC3VTA9v0fFbIo3e/vnY4ExT7MhdpdKyuQtaBx8u42Pqv9JLNfg5GmCSyYa9oLBWxsA7dqtQajZFtJ6os1xfFuGZEd/pZyW91O16enQv36sOs8JJ+6ShdtO8t+9JaXanmY6g0SKFTASg7PWwy+MDlrwTIQxGV5nsbXGUWkx5IDBbA4RrnQJr/sTb0u/Rk1iWCMsL4Ub47WTK576d2UxDokzsINyQ48G7MlMN9ir9QrQ+7qBx+x47UZ5yVNOZ7c6jAc94WWXZNU8BMXCFaHIiyc5UAAPYAPeZAronyuV0OrQelBQKxAO/j0yJEimPq0aE/1ekqDAPI0xE6H98WsHrassj7NLscX+62wqnHzzTDYO9Z1zjy84XIbgsurOuQUb5sbcbcy08iHB7FgFWKrozlOiuY2OYTvGid9epgVOGvgHMlpQ5vpDiv3MYsiorShoIOzVDE8zhyzYE1JdKmTk57YcCrHZRQuiyeLIZ2Wd8iQ3x1tykkzL0GpYS3fCwLyJQ63RLfcOKIfpGO7xn+V+iROS91iG9rdb6jnRq+70atx+zmWsS6ylpHqi5InsHSunwRyxDf982KR/pm8Uu93DuDygLe5+RKIU8oiabWL5sszqMqmZcTr0vOGyH2mEv4jKKTeEUr5PWk5/jib7n4qJ+QKpJ4hhnwMqswmcGzHeE1Pw0TU2WU9+mx1rju8E7nT7pRkvE7l6bUv4zUKMgGo6O0DAxY34Yt6xu5Ejyoys4XnWMdI1JAYB+Hj5bmO1XJIP3gEfiwmU6skDZtx/DaPr3hA4/CImLCkLf9Z7p9709cyBcpwdBE+Z1YErABIPTtVU/trNHUExE0PxCuz+r5Bthw15kSVGyVDqKdNK7eqVqI6fguI+mIao8VojH9K/096v7uk3A5n18dcrem0JYXbH21Be9mI1mEYXXxnNgBF3sKshA6TOzrlV2OSyVTaGiqU6Im+j47EJ6mDZvERo21m7yBwD20HodOZmBbE1yDDGnnd5uaVPcIcy+SJs5hkicYVbi6UYMh2h+utAjgy7poMOXY4CwYtZT51Nh0/eLfjx8y9SYnR/iahlqESnx5mis0Rz481b17vQQp0V6GzKV8xeBYFNZa+vdVegY8L5/VieJgXZS6EBndd82RVROqT8urBRk1T8kt2JkBbUFnFNjkjxbZ3iPsDaVf3+iQGJUu6r+Z03XvKsJVz3fdyLJngFchWMRCc2ygnK92sQbJUd3niUKcwoanc74d32bt+WGZzGmVp0ZeGFpwXKPFUCxCN2PNscn160XeCbuvFPI8P10Smoa5NqJWZ4ix3h19T/D5NYGbOjrpwjbiNVOz3rqJKbHSVSAY1STZBlIDlllNr22aKAQzADvnp2PDSidjRwu2PxHctNJmoXb+dXcaihmQZhQ/haGp5xIYg+DaT/IOmKkJ6n949mdEWW2l1teTMOKu4gpseKIGOIE26U1G037ZtgU7P4DmK6F/wEUTIVx6
  • List-archive: <http://lists.gforge.inria.fr/pipermail/starpu-devel/>
  • List-id: "Developers list. For discussion of new features, code changes, etc." <starpu-devel.lists.gforge.inria.fr>

I'll try to implement your suggestion to use starpu_mpi_recv_submit
along with the partitioning, that should work out rather well in my use
case. I missed that idea when looking through the API. Having a helper
function would be nice though.


Thanks for your help and sorry for the late reply!

// Henrik Henriksson

On 4/2/19 4:17 PM, Samuel Thibault wrote:
> Samuel Thibault, le mar. 02 avril 2019 15:25:27 +0200, a ecrit:
>>> void starpu_mpi_allgather_copy(starpu_data_handle_t *source_data_handles,
>>> int handle_count, starpu_data_handle_t destination_handle, MPI_Comm comm);
>>> void starpu_mpi_gather_copy(starpu_data_handle_t *source_data_handles,
>>> int handle_count, starpu_data_handle_t destination_handle, int root,
>>> MPI_Comm comm);
>> But then the question is how the data should be combined, which is
>> exactly what data partitioning is about :)
>>
>> What you can do is on the receiving node to register the big vector,
>> partition it into pieces, run starpu_mpi_recv_submit() for each
>> piece (and the send on the sending nodes), and unpartition the big
>> vector. Then you have your whole vector. This can even be done
>> completely asynchronously with the partitioning planning.
>>
>> Probably it'd be useful if you could contribute an example that we would
>> include in StarPU :)
> Thinking a bit more about it, it could make sense to have some
> starpu_mpi helper which would do all of this for you. Additionally
> to what you have written, you'd have to provide the struct
> starpu_data_filter for the partitioning details.
>
> Samuel



Archives gérées par MHonArc 2.6.19+.

Haut de le page