pub struct RooflineModel {
pub peak_memory_bandwidth_gbps: f32,
pub peak_compute_gflops: f32,
}
Expand description
Roofline model for performance analysis
Fields§
§peak_memory_bandwidth_gbps: f32
§peak_compute_gflops: f32
Implementations§
Source§impl RooflineModel
impl RooflineModel
pub fn new(peak_memory_bandwidth_gbps: f32, peak_compute_gflops: f32) -> Self
pub fn analyze_kernel( &self, stats: &KernelStats, arithmetic_intensity: f32, ) -> RooflineAnalysis
Auto Trait Implementations§
impl Freeze for RooflineModel
impl RefUnwindSafe for RooflineModel
impl Send for RooflineModel
impl Sync for RooflineModel
impl Unpin for RooflineModel
impl UnwindSafe for RooflineModel
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