pub struct BenchPlan {
pub schema: String,
pub kernel: String,
pub entry: String,
pub cc: String,
pub allow_unsafe_reason: Option<String>,
pub candidates: Vec<Candidate>,
}Fields§
§schema: String§kernel: String§entry: String§cc: String§allow_unsafe_reason: Option<String>Present iff the plan includes gate-refused candidates: the explicit, recorded reason the operator gave to –allow-unsafe (see the README). Never a default.
candidates: Vec<Candidate>Implementations§
Source§impl BenchPlan
impl BenchPlan
pub fn write(&self, path: &Path) -> Result<(), PlanError>
pub fn load(path: &Path) -> Result<Self, PlanError>
Sourcepub fn param_slots(candidate: &Candidate) -> usize
pub fn param_slots(candidate: &Candidate) -> usize
Number of .param slots this candidate’s args expand to (each
ArgSpec is exactly one slot; slices appear as explicit ptr + len_of
pairs). Used to validate against the PTX entry signature.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BenchPlan
impl<'de> Deserialize<'de> for BenchPlan
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BenchPlan
impl RefUnwindSafe for BenchPlan
impl Send for BenchPlan
impl Sync for BenchPlan
impl Unpin for BenchPlan
impl UnsafeUnpin for BenchPlan
impl UnwindSafe for BenchPlan
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