pub struct GpuRegressionSuite { /* private fields */ }Expand description
GPU kernel regression test suite
Implementations§
Source§impl GpuRegressionSuite
impl GpuRegressionSuite
Sourcepub fn new(config: RegressionConfig) -> Self
pub fn new(config: RegressionConfig) -> Self
Create new regression suite
Sourcepub fn add_baseline(&mut self, kernel_name: &str, ptx: &str)
pub fn add_baseline(&mut self, kernel_name: &str, ptx: &str)
Add baseline PTX for a kernel
Sourcepub fn test_kernel(&mut self, kernel_name: &str, ptx: &str) -> &RegressionResult
pub fn test_kernel(&mut self, kernel_name: &str, ptx: &str) -> &RegressionResult
Test kernel against baseline
Sourcepub fn results(&self) -> &[RegressionResult]
pub fn results(&self) -> &[RegressionResult]
Get all results
Sourcepub fn all_passed(&self) -> bool
pub fn all_passed(&self) -> bool
Check if all tests passed
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GpuRegressionSuite
impl RefUnwindSafe for GpuRegressionSuite
impl Send for GpuRegressionSuite
impl Sync for GpuRegressionSuite
impl Unpin for GpuRegressionSuite
impl UnsafeUnpin for GpuRegressionSuite
impl UnwindSafe for GpuRegressionSuite
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> 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