pub struct PtxModule {
pub version: (u8, u8),
pub target: SmTarget,
pub address_size: u8,
pub globals: Vec<GlobalDecl>,
pub kernels: Vec<KernelDef>,
pub functions: Vec<FunctionDef>,
}Expand description
PTX Module - top-level AST node
Fields§
§version: (u8, u8)PTX version (major, minor)
target: SmTargetTarget SM architecture
address_size: u8Address size (32 or 64)
globals: Vec<GlobalDecl>Global declarations
kernels: Vec<KernelDef>Kernel definitions
functions: Vec<FunctionDef>Function definitions
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PtxModule
impl RefUnwindSafe for PtxModule
impl Send for PtxModule
impl Sync for PtxModule
impl Unpin for PtxModule
impl UnsafeUnpin for PtxModule
impl UnwindSafe for PtxModule
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