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.
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
Use
cuda::mr::memory_resource
instead of rawdevice_memory_resource
#1095Use
cuda::mr::memory_resource
instead of rawdevice_memory_resource
#1095Changes from 19 commits
90adef2
a49fe9c
0e78d9e
4d25841
de71dcc
13a990f
9ceab83
c0df290
8b1bc04
bccabd1
5b27e10
194da78
6e610a3
edb8f78
4ea703e
e9a5ace
df9c6e9
8e7c91b
849c880
2cf03a7
76d55fa
3390fb8
c0c8504
559a674
c1f36d8
1d422b5
17021f1
e867442
73efc2e
c298fbc
41c1bea
80201bd
5937e3e
baf99f3
af12733
37c1e3f
67d1bdc
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
question (non-blocking): We haven't really talked about adding properties to containers yet. Is this something we feel ready to do? I don't think it will be strictly necessary for this PR.
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.
@miscco can you comment? Since this is a pure addition and not a breaking change, the risk is low. However, if we decide to change this in the future perhaps it could be baggage that we wish we hadn't added so early?
I would like to understand the motivation for this as well, @miscco .
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.
In my mind, giving proper guarantees for the memory allocator is not enough if you drop them on the floor once you allocated.
So for me it does make sense that the feature that actually uses the memory allocated by the resource ref is also declaring what properties it inherited from the allocator. I am happy to pull it out though
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.
I dropped them for now, we can come up with a comprehensive decision 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.
Sorry, what do you mean by "drop them on the floor"? I wasn't saying you should remove this. Just trying to understand how it is used.
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.
My point is that currently the properties are solely used on the allocator. Once you have allocated something we do not propagate the properties anymore, but that might actually be the relevant part.
Often someone will pass around a
device_buffer
and it would be awesome to know whether it contains pinned memory without going through the memory resourceThere 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.
Yes I agree that would be useful. But this property is hard coded. How would dynamic properties like the example you give work.