pub struct AotArgs {
pub device: String,
pub options: Option<String>,
pub cache_dir: Option<PathBuf>,
pub force: bool,
}Expand description
Shared AOT-compile CLI arguments. Flatten this into your own clap
struct: #[command(flatten)] aot: teeny_cli::AotArgs.
Fields§
§device: StringTarget backend to compile for (e.g. cuda).
options: Option<String>Backend-specific compiler options as comma-separated key=value
pairs (e.g. "capability=sm_90,maxnreg=16"). Parsed by whichever
backend --device selects.
cache_dir: Option<PathBuf>Directory to write/read compiled kernels. Falls back to
$TEENYC_CACHE_DIR, then /tmp/teenyc_cache if neither is set.
force: boolRecompile even if a cached artifact already exists.
Implementations§
Trait Implementations§
Source§impl Args for AotArgs
impl Args for AotArgs
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id][crate::ArgGroup::id] for this set of argumentsSource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to [
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§impl FromArgMatches for AotArgs
impl FromArgMatches for AotArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for AotArgs
impl RefUnwindSafe for AotArgs
impl Send for AotArgs
impl Sync for AotArgs
impl Unpin for AotArgs
impl UnsafeUnpin for AotArgs
impl UnwindSafe for AotArgs
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