-
Notifications
You must be signed in to change notification settings - Fork 2
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
base: main
Are you sure you want to change the base?
Conversation
```C | ||
PDI_multi_expose("finalization", | ||
"ii", &ii, PDI_OUT, | ||
"main_field", cur, PDI_OUT, | ||
NULL); | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
```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); |
\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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\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. |
```C | ||
PDI_multi_expose("save_vector_V", | ||
"size_of_vector", &N, PDI_OUT, | ||
"vector_V", V, PDI_OUT, | ||
NULL); | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
```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
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ambiguity on index value.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this 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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indent
ex11.c
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indent
ex10.c
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indent
Co-authored-by: JAuriac <[email protected]>
Co-authored-by: JAuriac <[email protected]>
Co-authored-by: JAuriac <[email protected]>
Co-authored-by: JAuriac <[email protected]>
Co-authored-by: JAuriac <[email protected]>
No description provided.