-
Notifications
You must be signed in to change notification settings - Fork 12
Improvement of delayed allocation mechanism #105
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
Open
dareg
wants to merge
50
commits into
ecmwf-ifs:main
Choose a base branch
from
dareg:new_delayed_prepare_pr
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
ed7f067
Add lbounds and ubounds to wrapper
dareg e2bd04b
Always use dim to allocate on device
dareg 62b43a3
Don't create host data when calling get_device_data
dareg 50564d1
set status correctly
dareg 9cf8191
update get_host for when the host ptr was not allocated but the gpu o…
dareg df7a8f5
force delayed allocation for owner
dareg 5968c54
Rework the status system to let the host and dev ptr be allocated ind…
dareg 3b2116b
Fix broken status modification
dareg 82cdb3f
Fix broken get_view
dareg 9c374a3
Fix transfer CPU<->GPU conditions
dareg bda3c26
Fix get_view* test-cases
dareg e3dc484
make sure data are allocated on cpu for get_view
dareg 7c7ebfb
delayed default value can now be controlled through a global
dareg 184b500
cleaning
dareg 5f33c3b
cleaning
dareg 216601f
cleaning
dareg bbc07a2
cleaning
dareg 7301193
Add missing add_status and remove_status to field gang objects
dareg 09753cf
Fix test-cases
dareg c352310
Add more tests
dareg 4ec4760
Correct initialization when init_value is set
dareg 5dcd5b5
cleaning
dareg 28e69a9
Use correct negation function
dareg 8d8f013
Use correct argument name
dareg 2155321
There must be no return statement in main
dareg 40b82f8
cleaning
dareg 03a0246
Use delayed by default
dareg 3e757b0
Let the default value of delayed be user-configurable
dareg 5633c1d
Fix test-case
dareg 0e6b0c8
Alloc in get view when necessary
dareg e44f732
Reset GPU context
dareg 250beb2
Cleaning
dareg a4aa7c6
Test get view when not using GPU number 0
dareg 73b7cc6
Recreate context for the current GPU, not necessary the 0th one
dareg 64131a6
Fix test-case when not using openacc
dareg afb0b9f
Don't use delayed by default
dareg 4224cfa
Update doc
dareg 613e211
Merge branch 'new_delayed' into new_delayed_prepare_pr
dareg 5df1113
Remove now useless part of test-case
dareg b85d5bc
Cleaning
dareg 74d5b3e
Merge branch 'new_delayed' into new_delayed_prepare_pr
dareg 2d99770
Make it work with OpenMP GPU offloading
dareg 195b7f2
Update NVHPC compiler version used in CI
dareg feb48a8
Update doc
dareg 648e7bf
Minor doc fix
dareg 1fb9d2b
Merge branch 'main' into new_delayed_prepare_pr
awnawab 1b0209a
Remove now useless UNALLOCATED constant
dareg d1e2922
Remove now unused DEV_ALLOCATE_HST subroutine
dareg b5a14ab
Add an option to change get_view behaviour
dareg d0f9d01
Add a compile option to switch behaviour of get_view
dareg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Really appreciate the detailed documentation 🙏