-
Notifications
You must be signed in to change notification settings - Fork 197
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
[REVIEW] Develop new mdspan-ified multi_variable_gaussian interface #845
[REVIEW] Develop new mdspan-ified multi_variable_gaussian interface #845
Conversation
If you have time to support it, adding an optional |
@cjnolet wrote:
I'll be happy to add an optional device_memory_resource get_default_memory_resource(const handle_t&); The const reference is necessary because of all the interfaces that take |
3a74368
to
8711316
Compare
I think that could work. To make this compatible w/ some of the ideas we've been tossing around for the more library agnostic raft handle, what do you think about sticking this in a file called The basic idea here would be that if no primitives are invoked that need cublas, there's no reason for the user to ever have to interact with it, and thus no reason to even bother creating a cublas handle at all. |
fb949f9
to
206f889
Compare
206f889
to
d866f64
Compare
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.
Thanks for these wrappers, Mark! This looks great overall. Just minor things and I think it's ready to go.
It's not ready for public consumption yet, as it still lives in the detail namespace. However, it builds and passes tests.
New mdspan-based compute_multi_variable_gaussian interface is a one-pass interface. It uses device_memory_manager so that the user no longer needs to allocate workspace by hand.
Move multi_variable_gaussian_decomposition_method to a new random_types.hpp header file.
d866f64
to
b28b93a
Compare
* Rename setup_multi_variable_gaussian to build_multi_variable_gaussian_token * Finish documentation of the supported methods that compute_multi_variable_gaussian can use. * Remove the separate setup phase from the public multivariable gaussian interface. (Taking a memory resource for the workspace makes separating setup from computation no longer needed.)
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.
LGTM. Thanks mark! The new API looks really clean.
@gpucibot merge |
1 similar comment
@gpucibot merge |
Develop a new
multi_variable_gaussian
interface that usesmdspan
. The new interface uses free functions, rather than a class.TODO:
raft::stats
API with mdspan #802 (comment)); use RMM instead.detail
namespace, and test it.