Mojo function
load
load[type: DType, //, width: Int = 1, *, read_only: Bool = False, prefetch_size: OptionalReg[Int] = OptionalReg(None), cache_policy: CacheOperation = 0, eviction_policy: CacheEviction = 0, alignment: Int = Int(alignof[::AnyType,__mlir_type.!kgen.target]() if is_nvidia_gpu() else 1)](ptr: UnsafePointer[SIMD[type, 1]]) -> SIMD[type, width]
load[OffsetType: Indexer, type: DType, //, width: Int = 1, *, read_only: Bool = False, prefetch_size: OptionalReg[Int] = OptionalReg(None), cache_policy: CacheOperation = 0, eviction_policy: CacheEviction = 0, alignment: Int = Int(alignof[::AnyType,__mlir_type.!kgen.target]() if is_nvidia_gpu() else 1)](ptr: UnsafePointer[SIMD[type, 1]], offset: OffsetType) -> SIMD[type, width]
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!