Mojo struct
DeviceFunction
struct DeviceFunction[func_type: AnyTrivialRegType, //, func: func_type, *, target: target = _get_gpu_target[::StringLiteral](), _ptxas_info_verbose: Bool = False]
Implemented traits
AnyType
,
UnknownDestructibility
Methods
__init__
__init__(out self, ctx: DeviceContext, *, func_attribute: OptionalReg[FuncAttribute] = OptionalReg(None))
__copyinit__
__copyinit__(out self, existing: Self)
__moveinit__
__moveinit__(out self, owned existing: Self)
__del__
__del__(owned self)
dump_rep
dump_rep[dump_asm: Variant[Bool, Path, fn() capturing -> Path] = __init__[::CollectionElement](False), dump_llvm: Variant[Bool, Path, fn() capturing -> Path] = __init__[::CollectionElement](False), _dump_sass: Variant[Bool, Path, fn() capturing -> Path] = __init__[::CollectionElement](False)](self)
get_attribute
get_attribute(self, attr: Attribute) -> Int
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!