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

Offer a builder for CUDA arrays and/or array descriptors #611

Open
eyalroz opened this issue Mar 16, 2024 · 0 comments
Open

Offer a builder for CUDA arrays and/or array descriptors #611

eyalroz opened this issue Mar 16, 2024 · 0 comments

Comments

@eyalroz
Copy link
Owner

eyalroz commented Mar 16, 2024

It would be nicer to let our users build arrays not just with descriptors they provide, but in a proper builder pattern.

Now, we would want a builder to also be usable for building just a descriptor for later use, and so we'll need to choose between a few options:

  1. Builder for descriptors, no builder for arrays - you still only construct them using a descriptor.
  2. Builder for descriptors, different builder for arrays (so that you don't have to know about descriptors); may share some code under the hood or even have the latter hold the former.
  3. Builder for arrays, no builder for descriptors - encouraging users against using descriptors themselves (they can copy the builder around)
  4. The descriptor wrapper class will itself be a descriptor for arrays.

I'm tending towards option 4, but not certain yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant