pub struct KernelMetadata {
pub compile_time_ms: f64,
pub binary_size: usize,
pub registers_per_thread: Option<u32>,
pub shared_memory_usage: Option<usize>,
pub max_workgroup_size: Option<(u32, u32, u32)>,
pub compiler_version: String,
pub warnings: Vec<String>,
pub performance_hints: Vec<String>,
}Expand description
Kernel metadata and compilation information
Fields§
§compile_time_ms: f64Compilation time in milliseconds
binary_size: usizeCompiled binary size in bytes
registers_per_thread: Option<u32>Number of registers used per thread
Shared memory usage in bytes
max_workgroup_size: Option<(u32, u32, u32)>Maximum workgroup size
compiler_version: StringCompiler version
warnings: Vec<String>Compilation warnings
performance_hints: Vec<String>Performance hints from compiler
Trait Implementations§
Source§impl Clone for KernelMetadata
impl Clone for KernelMetadata
Source§fn clone(&self) -> KernelMetadata
fn clone(&self) -> KernelMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KernelMetadata
impl Debug for KernelMetadata
Auto Trait Implementations§
impl Freeze for KernelMetadata
impl RefUnwindSafe for KernelMetadata
impl Send for KernelMetadata
impl Sync for KernelMetadata
impl Unpin for KernelMetadata
impl UnsafeUnpin for KernelMetadata
impl UnwindSafe for KernelMetadata
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more