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

Make memory allocated by hipHostMalloc coarse-grained #5152

Merged
merged 3 commits into from
Jul 14, 2022

Conversation

JBludau
Copy link
Contributor

@JBludau JBludau commented Jun 27, 2022

hipHostMalloc allocates fine grained memory per default. According to the documentation of AMD there is no way of calling MemAdvise on it to make it coarse-grained (Nevertheless, the memAdvise works on some combinations of driver and hardware).
To get coarse-grained memory on all AMD GPUs we can allocate with the MemAttachGlobal flag (I will ask someone at AMD just to make sure).

The tests that verify if we get the memory grained-ness we want in the Kokkos::Views is part of the already merged PR 5112 as it was important for the HIPManagedSpace.

@crtrott
Copy link
Member

crtrott commented Jun 27, 2022

Wrong target branch.

@JBludau JBludau closed this Jun 27, 2022
@JBludau JBludau reopened this Jun 27, 2022
@JBludau JBludau changed the base branch from master to develop June 27, 2022 21:08
@JBludau JBludau changed the title Make memory allocated by hipHostMalloc fine grained Make memory allocated by hipHostMalloc coarse-grained Jun 28, 2022
@JBludau JBludau marked this pull request as ready for review July 1, 2022 23:08
@dalg24
Copy link
Member

dalg24 commented Jul 1, 2022

cc @arghdos

@JBludau
Copy link
Contributor Author

JBludau commented Jul 2, 2022

Retest this please.

@dalg24
Copy link
Member

dalg24 commented Jul 2, 2022

Failures (couple CUDA builds on machine that ran out of disk space) are unrelated and safe to ignore

Co-authored-by: Nick Curtis arghdos
@JBludau JBludau requested a review from Rombur July 11, 2022 15:50
@JBludau
Copy link
Contributor Author

JBludau commented Jul 13, 2022

Retest this please

@JBludau
Copy link
Contributor Author

JBludau commented Jul 14, 2022

CI failure is unrelated (sycl time-out)

@crtrott crtrott merged commit 2fc01df into kokkos:develop Jul 14, 2022
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.

None yet

5 participants