pub struct TargetDirective {
pub entries: Vec<TargetString>,
pub span: Span,
}Expand description
Structured representation of the .target directive.
Syntax: .target stringlist // comma separated list of target specifiers string = { sm_120a, sm_120f, sm_120, // sm_12x target architectures sm_121a, sm_121f, sm_121, // sm_12x target architectures sm_110a, sm_110f, sm_110, // sm_11x target architectures sm_100a, sm_100f, sm_100, // sm_10x target architectures sm_101a, sm_101f, sm_101, // sm_10x target architectures sm_103a, sm_103f, sm_103 // sm_10x target architectures sm_90a, sm_90, // sm_9x target architectures sm_80, sm_86, sm_87, sm_88, sm_89, // sm_8x target architectures sm_70, sm_72, sm_75, // sm_7x target architectures sm_60, sm_61, sm_62, // sm_6x target architectures sm_50, sm_52, sm_53, // sm_5x target architectures sm_30, sm_32, sm_35, sm_37, // sm_3x target architectures sm_20, // sm_2x target architectures sm_10, sm_11, sm_12, sm_13, // sm_1x target architectures texmode_unified, texmode_independent, // texturing mode debug, // platform option map_f64_to_f32 }; // platform option
Example: .target sm_10 // baseline target architecture .target sm_13 // supports double-precision .target sm_20, texmode_independent .target sm_90 // baseline target architecture .target sm_90a // PTX using architecture-specific features .target sm_100f // PTX using family-specific features
Fields§
§entries: Vec<TargetString>§span: SpanImplementations§
Trait Implementations§
Source§impl Clone for TargetDirective
impl Clone for TargetDirective
Source§fn clone(&self) -> TargetDirective
fn clone(&self) -> TargetDirective
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TargetDirective
impl Debug for TargetDirective
Source§impl PartialEq for TargetDirective
impl PartialEq for TargetDirective
Source§fn eq(&self, other: &TargetDirective) -> bool
fn eq(&self, other: &TargetDirective) -> bool
self and other values to be equal, and is used by ==.Source§impl PtxParser for TargetDirective
impl PtxParser for TargetDirective
Source§fn parse() -> impl Fn(&mut PtxTokenStream<'_>) -> Result<(Self, Span), PtxParseError>
fn parse() -> impl Fn(&mut PtxTokenStream<'_>) -> Result<(Self, Span), PtxParseError>
Self.Source§impl PtxUnparser for TargetDirective
impl PtxUnparser for TargetDirective
Source§fn unparse_tokens(&self, tokens: &mut Vec<PtxToken>)
fn unparse_tokens(&self, tokens: &mut Vec<PtxToken>)
self to tokens.