Hello, I have started to play around with Argobots, and I have a first (of many) questions: what is the "rank" of an execution stream (i.e. the value set by ABT_xstream_get_rank)? I also found a small bug in the error handling code, which I made a PR for on the GitHub site: https://github.com/pmodels/argobots/pull/50 Cheers, Ben.
Hello, Is this list being used, or is there some other channel that I should use to communicate with the Argobots developers? Cheers, Ben. ________________________________________ From: Cumming Benjamin [[email protected]] Sent: Saturday, March 31, 2018 9:51 PM To: [email protected] Subject: [argobots-discuss] (no subject) Hello, I have started to play around with Argobots, and I have a first (of many) questions: what is the "rank" of an execution stream (i.e. the value set by ABT_xstream_get_rank)? I also found a small bug in the error handling code, which I made a PR for on the GitHub site: https://github.com/pmodels/argobots/pull/50 Cheers, Ben. _______________________________________________ discuss mailing list [email protected] https://lists.argobots.org/mailman/listinfo/discuss
Hi Benjamin, The rank is just an ID allocated to each XStream that can be retrieved via ABT_xstream_get_rank() or ABT_xstream_self_rank(). By default, it is unique among all the running XStreams. The ABT user can also decide to manage the ID itself through ABT_xstream_create_with_rank() or ABT_xstream_set_rank(). HTH Cheers, Johann From: Cumming Benjamin <[email protected]> Reply-To: "[email protected]" <[email protected]> Date: Friday, 6 April 2018 at 09:04 To: "[email protected]" <[email protected]> Subject: Re: [argobots-discuss] (no subject) Hello, Is this list being used, or is there some other channel that I should use to communicate with the Argobots developers? Cheers, Ben. ________________________________________ From: Cumming Benjamin [[email protected]<mailto:[email protected]>] Sent: Saturday, March 31, 2018 9:51 PM To: [email protected]<mailto:[email protected]> Subject: [argobots-discuss] (no subject) Hello, I have started to play around with Argobots, and I have a first (of many) questions: what is the "rank" of an execution stream (i.e. the value set by ABT_xstream_get_rank)? I also found a small bug in the error handling code, which I made a PR for on the GitHub site: https://github.com/pmodels/argobots/pull/50 Cheers, Ben. _______________________________________________ discuss mailing list [email protected]<mailto:[email protected]> https://lists.argobots.org/mailman/listinfo/discuss _______________________________________________ discuss mailing list [email protected]<mailto:[email protected]> https://lists.argobots.org/mailman/listinfo/discuss --------------------------------------------------------------------- Intel Corporation SAS (French simplified joint stock company) Registered headquarters: "Les Montalets"- 2, rue de Paris, 92196 Meudon Cedex, France Registration Number: 302 456 199 R.C.S. NANTERRE Capital: 4,572,000 Euros This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
Thanks for the reply Johann! So, it can be treated as meta data that the "user" can attach and read, that isn't used anywhere in the low-level argobots implementation? Cheers, Ben. ________________________________ From: Lombardi, Johann [[email protected]] Sent: Friday, April 06, 2018 9:36 AM To: [email protected] Subject: Re: [argobots-discuss] (no subject) Hi Benjamin, The rank is just an ID allocated to each XStream that can be retrieved via ABT_xstream_get_rank() or ABT_xstream_self_rank(). By default, it is unique among all the running XStreams. The ABT user can also decide to manage the ID itself through ABT_xstream_create_with_rank() or ABT_xstream_set_rank(). HTH Cheers, Johann From: Cumming Benjamin <[email protected]> Reply-To: "[email protected]" <[email protected]> Date: Friday, 6 April 2018 at 09:04 To: "[email protected]" <[email protected]> Subject: Re: [argobots-discuss] (no subject) Hello, Is this list being used, or is there some other channel that I should use to communicate with the Argobots developers? Cheers, Ben. ________________________________________ From: Cumming Benjamin [[email protected]<mailto:[email protected]>] Sent: Saturday, March 31, 2018 9:51 PM To: [email protected]<mailto:[email protected]> Subject: [argobots-discuss] (no subject) Hello, I have started to play around with Argobots, and I have a first (of many) questions: what is the "rank" of an execution stream (i.e. the value set by ABT_xstream_get_rank)? I also found a small bug in the error handling code, which I made a PR for on the GitHub site: https://github.com/pmodels/argobots/pull/50 Cheers, Ben. _______________________________________________ discuss mailing list [email protected]<mailto:[email protected]> https://lists.argobots.org/mailman/listinfo/discuss _______________________________________________ discuss mailing list [email protected]<mailto:[email protected]> https://lists.argobots.org/mailman/listinfo/discuss --------------------------------------------------------------------- Intel Corporation SAS (French simplified joint stock company) Registered headquarters: "Les Montalets"- 2, rue de Paris, 92196 Meudon Cedex, France Registration Number: 302 456 199 R.C.S. NANTERRE Capital: 4,572,000 Euros This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
I am afraid that the rank is used internally as an index in an array. As a consequence, it is still expected to be fairly “dense” and unique across all the XStreams, even when managed by the user. ABT_key_create/set/get/free allow you to allocate private storage for each ULT/tasklet. In our project, we use pthread_key_create/delete to manage per-XStream local storage. Cheers, Johann From: Cumming Benjamin <[email protected]> Reply-To: "[email protected]" <[email protected]> Date: Friday, 6 April 2018 at 11:33 To: "[email protected]" <[email protected]> Subject: Re: [argobots-discuss] (no subject) Thanks for the reply Johann! So, it can be treated as meta data that the "user" can attach and read, that isn't used anywhere in the low-level argobots implementation? Cheers, Ben. --------------------------------------------------------------------- Intel Corporation SAS (French simplified joint stock company) Registered headquarters: "Les Montalets"- 2, rue de Paris, 92196 Meudon Cedex, France Registration Number: 302 456 199 R.C.S. NANTERRE Capital: 4,572,000 Euros This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
Hi Ben, I think Johann did a great job at replying to your questions (thank you, Johann). His replies were accurate. As of your bug fix, I've reviewed and merged it. Thank you for the contribution. For future questions or bug reports, you can either use this mailing list or submit a github issue. Halim www.mcs.anl.gov/~aamer On 4/6/18 8:14 AM, Lombardi, Johann wrote:
I am afraid that the rank is used internally as an index in an array. As a consequence, it is still expected to be fairly “dense” and unique across all the XStreams, even when managed by the user. ABT_key_create/set/get/free allow you to allocate private storage for each ULT/tasklet. In our project, we use pthread_key_create/delete to manage per-XStream local storage.
Cheers,
Johann
*From: *Cumming Benjamin <[email protected]> *Reply-To: *"[email protected]" <[email protected]> *Date: *Friday, 6 April 2018 at 11:33 *To: *"[email protected]" <[email protected]> *Subject: *Re: [argobots-discuss] (no subject)
Thanks for the reply Johann!
So, it can be treated as meta data that the "user" can attach and read, that isn't used anywhere in the low-level argobots implementation?
Cheers,
Ben.
--------------------------------------------------------------------- Intel Corporation SAS (French simplified joint stock company) Registered headquarters: "Les Montalets"- 2, rue de Paris, 92196 Meudon Cedex, France Registration Number: 302 456 199 R.C.S. NANTERRE Capital: 4,572,000 Euros
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
_______________________________________________ discuss mailing list [email protected] https://lists.argobots.org/mailman/listinfo/discuss
participants (3)
-
Cumming Benjamin -
Halim Amer -
Lombardi, Johann