+
Skip to content

Questions about CudaSlice::transmute #427

Open
@kckeiks

Description

@kckeiks

Hi,

I’m building a slab‑allocator‑style helper that pre‑allocates one big CudaSlice<u8> and hands out sub‑slices which I immediately CudaSlice::transmute() into typed CudaView<T> objects (f32, f64, etc.). I have a few concerns:

  • What alignment requirements should I follow?
  • In terms of coalescing / transaction size, should I add any padding?
  • Are there architecture‑specific mis‑alignment or transaction‑width issues I should be aware of?

Thanks for your time !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载