Expand description
Runtime-API queries: pointer attributes, device properties, kernel
attributes. Typed wrappers around the cuda*GetAttributes /
cudaGetDeviceProperties family.
Structs§
- Device
Properties - Subset of
cudaDevicePropfields most users care about. The full C struct is ~1 KB with fields that are rarely accessed — we surface the hot-path ones and keep a reserved_rawslot for the whole buffer so advanced users can cast through. - Pointer
Attributes - Typed view over
cudaPointerAttributes.
Enums§
- Memory
Type - Memory kind reported by
pointer_attributes.
Functions§
- device_
properties - Fetch a typed subset of
cudaDevicePropfordevice. - func_
attributes ⚠ - Query a kernel’s register / shared-memory / PTX-version metadata.
func_symbolis aconst void*— the address of the kernel symbol as used bycudaLaunchKernel(orcrate::Kernel::as_launch_ptr). - pointer_
attributes - Query what CUDA knows about
ptr. On pointers CUDA has never seen (plain hostmalloc, returned from C libraries) this returnsMemoryType::Unregistered.