Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redefine the call of share and reclaim #41

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

jmorice91
Copy link
Contributor

No description provided.

@jmorice91 jmorice91 self-assigned this Mar 31, 2025
@jmorice91 jmorice91 linked an issue Mar 31, 2025 that may be closed by this pull request
Comment on lines +476 to +481
```C
PDI_multi_expose("finalization",
"ii", &ii, PDI_OUT,
"main_field", cur, PDI_OUT,
NULL);
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
```C
PDI_multi_expose("finalization",
"ii", &ii, PDI_OUT,
"main_field", cur, PDI_OUT,
NULL);
```
```C
PDI_multi_expose("finalization",
"ii", &ii, PDI_OUT,
"main_field", cur, PDI_OUT,
NULL);

Comment on lines +483 to +485
\attention
In a `::PDI_multi_expose` if you have a data1 that depend on the data2.
You need to pass the data2 before the data1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
\attention
In a `::PDI_multi_expose` if you have a data1 that depend on the data2.
You need to pass the data2 before the data1
\attention
In a `::PDI_multi_expose` if you have a data1 that depends on the data2.
You need to expose the data2 before the data1.

Comment on lines +488 to +493
```C
PDI_multi_expose("save_vector_V",
"size_of_vector", &N, PDI_OUT,
"vector_V", V, PDI_OUT,
NULL);
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
```C
PDI_multi_expose("save_vector_V",
"size_of_vector", &N, PDI_OUT,
"vector_V", V, PDI_OUT,
NULL);
```
```C
PDI_multi_expose("save_vector_V",
"size_of_vector", &N, PDI_OUT,
"vector_V", V, PDI_OUT,
NULL);

README.md Outdated
Comment on lines 459 to 461
In the first line, `cur` correspond to the value of `main_field` at iteration
`ii=4`. As `ii` is a metadata, the value is stored by pdi.
Hence, in this first line the value of `ii` is equal to 3.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ambiguity on index value.

Comment on lines +439 to +441
The order of share are importants when we used a metadata. We explain that
without `::PDI_multi_expose` to be more clear.
In `::PDI_share`, the event "on_data" on the shared data are performed.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The order of share are importants when we used a metadata. We explain that
without `::PDI_multi_expose` to be more clear.
In `::PDI_share`, the event "on_data" on the shared data are performed.
The order of `share` is important when using a metadata field. As seen below,
the exercise 6 decompose a `multi_expose` call to demonstrate this.
Furthermore, when using `::PDI_share`, an event "on_data"
is automatically performed.

Copy link
Member

@benoitmartin88 benoitmartin88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should run the indent tool as some files have indentation issues.

ex12.c Outdated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indent

ex11.c Outdated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indent

ex10.c Outdated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indent

jmorice91 and others added 4 commits April 3, 2025 18:01
Co-authored-by: JAuriac <[email protected]>
Co-authored-by: JAuriac <[email protected]>
Co-authored-by: JAuriac <[email protected]>
Co-authored-by: JAuriac <[email protected]>
@jmorice91 jmorice91 marked this pull request as draft April 3, 2025 16:04
Co-authored-by: JAuriac <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

redefine the call of shared/reclaim
4 participants