gpu-alloc icon indicating copy to clipboard operation
gpu-alloc copied to clipboard

Align mask?

Open kvark opened this issue 4 years ago • 1 comments

From the implementation perspective, I can see how align mask would be more convenient. But from the API perspective in the Request, it's not very nice. For one, it's not clear if the mask is just supposed to be alignment - 1 or the !(alignment - 1) from the documentation. Would it be simpler to just receive the alignment and document that it has to be a power of 2?

kvark avatar Nov 04 '20 14:11 kvark

I guess you're right that receiving alignment value would make API more intuitive.

zakarumych avatar Nov 04 '20 15:11 zakarumych