Re: [PATCH 1/2] rust: sizes: add u64 variants of SZ_* constants
From: Danilo Krummrich
Date: Tue Mar 10 2026 - 16:48:09 EST
On Tue Mar 10, 2026 at 9:20 PM CET, Miguel Ojeda wrote:
> Whether we go for `u64::` or not
The more I think about it, the more I tend towards not going for u64::, at least
not directly.
The point really is that we differentiate between GPU (or more generally device)
address space size and CPU address space size.
So, I think what we really want is an abstraction of a usize type for GPUs (or
devices in general).
A corresponding implementation of SZ_* would just follow those.
In any case, I think we should implement those with a macro.