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

No data movement to GPU when data from desc with type keyword #643

Open
QingleiCao opened this issue Mar 8, 2024 · 7 comments
Open

No data movement to GPU when data from desc with type keyword #643

QingleiCao opened this issue Mar 8, 2024 · 7 comments
Labels
bug Something isn't working
Milestone

Comments

@QingleiCao
Copy link
Contributor

QingleiCao commented Mar 8, 2024

Describe the bug

In PTG, when data is from memory and a type keyword is provided, there will be no data movement to GPU, e.g.,

READ A <- descA(m, n) [ type = FULL ]

The reason is the data movement to GPU will be skipped here: https://github.com/ICLDisco/parsec/blob/4f76b6d2fa622b5e7ba96cd09a3333415acba220/parsec/mca/device/device_gpu.c#L1323C1-L1336C69.

@QingleiCao QingleiCao added the bug Something isn't working label Mar 8, 2024
@bosilca
Copy link
Contributor

bosilca commented Mar 8, 2024

I don't understand why we skipped version 0 data transfer. Does it work if you remove that line ?

@QingleiCao
Copy link
Contributor Author

QingleiCao commented Mar 9, 2024

I don't understand why we skipped version 0 data transfer. Does it work if you remove that line ?

I'm not sure the reason; maybe reshape of desc sets it to the same properties of NEW?

Yeah, it works if removing that line.

@abouteiller
Copy link
Contributor

The test is for a pure NEW data, which is not the case here. So the question is why the data-in is NULL for a read from a collection?

@bosilca
Copy link
Contributor

bosilca commented Mar 13, 2024

That's what the comment states, not what the check does. In the case @QingleiCao describes there is no predecessor, so source_repo_entry is indeed NULL, so the case is similar to NEW. What I don't understand is why the dc of the data_in is NULL if the read is from a valid collection ?

@QingleiCao
Copy link
Contributor Author

This desc will be reshaped to arena_ADT. Is it related to here?

@bosilca
Copy link
Contributor

bosilca commented Mar 13, 2024

yes, that now makes sense. If the original data is reshaped, then the reshaed data does not belong to a DC, so it iwll take the same path as the NEW data. Moveover, as the version is 0 (because it is the first of such type), it will completely fit the check.

We need to figure out a different way to check for the NEW data, one that does not rely on empirical checks but on stricter rules.

@abouteiller abouteiller added this to the v4.1 milestone Apr 24, 2024
@abouteiller
Copy link
Contributor

Related to #564

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants