0-hero's picture
Add files using upload-large-folder tool
c1384fc verified
raw
history blame
897 Bytes
module {
tt.func public @triton__0d1de(%arg0: !tt.ptr<i64, 1> {tt.divisibility = 16 : i32}, %arg1: i32 {tt.divisibility = 16 : i32, tt.max_divisibility = 16 : i32}) attributes {noinline = false} {
%cst = arith.constant dense<512> : tensor<256xi32>
%c256_i32 = arith.constant 256 : i32
%0 = tt.get_program_id x : i32
%1 = arith.muli %0, %c256_i32 : i32
%2 = tt.make_range {end = 256 : i32, start = 0 : i32} : tensor<256xi32>
%3 = tt.splat %1 : (i32) -> tensor<256xi32>
%4 = arith.addi %3, %2 : tensor<256xi32>
%5 = arith.cmpi slt, %4, %cst : tensor<256xi32>
%6 = tt.splat %arg0 : (!tt.ptr<i64, 1>) -> tensor<256x!tt.ptr<i64, 1>>
%7 = tt.addptr %6, %4 : tensor<256x!tt.ptr<i64, 1>>, tensor<256xi32>
%8 = arith.extsi %4 : tensor<256xi32> to tensor<256xi64>
tt.store %7, %8, %5 {cache = 1 : i32, evict = 1 : i32} : tensor<256xi64>
tt.return
}
}