hal.executable public @run_forward$async_dispatch_36 { hal.executable.variant public @rocm_hsaco_fb target(<"rocm", "rocm-hsaco-fb", {iree.gpu.target = #iree_gpu.target, , , ], subgroup_size_choices = [64], max_workgroup_sizes = [1024, 1024, 1024], max_thread_count_per_workgroup = 1024, max_workgroup_memory_bytes = 65536>>, ukernels = "none"}>) { hal.executable.export public @run_forward$async_dispatch_36_elementwise_broadcast_24x4608x64x2_f32xf32xf32xf32xbf16 ordinal(0) layout(#hal.pipeline.layout, <1, storage_buffer>]>]>) attributes {hal.interface.bindings = [#hal.interface.binding<0, 0>, #hal.interface.binding<0, 1>]} { ^bb0(%arg0: !hal.device loc("flux_dev_bs1_256_1024x1024_fp16_sampler.mlir":1656:12)): %x, %y, %z = flow.dispatch.workgroup_count_from_slice loc("./flux_sampler_dps/compiled_flux_sampler_run_forward$async_dispatch_36.mlir":5:6) hal.return %x, %y, %z : index, index, index loc("./flux_sampler_dps/compiled_flux_sampler_run_forward$async_dispatch_36.mlir":6:6) } loc("./flux_sampler_dps/compiled_flux_sampler_run_forward$async_dispatch_36.mlir":3:4) builtin.module { func.func @run_forward$async_dispatch_36_elementwise_broadcast_24x4608x64x2_f32xf32xf32xf32xbf16() attributes {translation_info = #iree_codegen.translation_info} { %c28391424 = arith.constant 28391424 : index loc("./flux_sampler_dps/compiled_flux_sampler_run_forward$async_dispatch_36.mlir":10:8) %0 = hal.interface.constant.load[0] : i32 loc("./flux_sampler_dps/compiled_flux_sampler_run_forward$async_dispatch_36.mlir":11:8) %1 = hal.interface.constant.load[1] : i32 loc("./flux_sampler_dps/compiled_flux_sampler_run_forward$async_dispatch_36.mlir":12:8) %2 = arith.index_castui %0 : i32 to index loc("./flux_sampler_dps/compiled_flux_sampler_run_forward$async_dispatch_36.mlir":13:8) %3 = arith.index_castui %1 : i32 to index loc("./flux_sampler_dps/compiled_flux_sampler_run_forward$async_dispatch_36.mlir":14:8) %4 = hal.interface.binding.subspan set(0) binding(0) type(storage_buffer) alignment(64) offset(%c28391424) flags(ReadOnly) : !flow.dispatch.tensor> loc("./flux_sampler_dps/compiled_flux_sampler_run_forward$async_dispatch_36.mlir":15:8) %5 = hal.interface.binding.subspan set(0) binding(0) type(storage_buffer) alignment(64) offset(%2) flags(ReadOnly) : !flow.dispatch.tensor> loc("./flux_sampler_dps/compiled_flux_sampler_run_forward$async_dispatch_36.mlir":16:8) %6 = hal.interface.binding.subspan set(0) binding(1) type(storage_buffer) alignment(64) offset(%3) : !flow.dispatch.tensor> loc("./flux_sampler_dps/compiled_flux_sampler_run_forward$async_dispatch_36.mlir":17:8) %7 = flow.dispatch.tensor.load %5, offsets = [0, 0, 0, 0, 0, 0], sizes = [4608, 1, 24, 64, 1, 2], strides = [1, 1, 1, 1, 1, 1] : !flow.dispatch.tensor> -> tensor<4608x1x24x64x1x2xbf16> loc("./flux_sampler_dps/compiled_flux_sampler_run_forward$async_dispatch_36.mlir":18:8) %8 = tensor.empty() : tensor<24x4608x64x2xbf16> loc("./flux_sampler_dps/compiled_flux_sampler_run_forward$async_dispatch_36.mlir":19:8) %9 = tensor.empty() : tensor<1x24x4608x64x1x2xf32> loc("./flux_sampler_dps/compiled_flux_sampler_run_forward$async_dispatch_36.mlir":20:8) %10 = flow.dispatch.tensor.load %4, offsets = [0, 0, 0, 0, 0, 1], sizes = [1, 1, 4608, 64, 2, 1], strides = [1, 1, 1, 1, 1, 1] : !flow.dispatch.tensor> -> tensor<4608x64x2xf32> loc("./flux_sampler_dps/compiled_flux_sampler_run_forward$async_dispatch_36.mlir":21:8) %11 = flow.dispatch.tensor.load %4, offsets = [0, 0, 0, 0, 0, 0], sizes = [1, 1, 4608, 64, 2, 1], strides = [1, 1, 1, 1, 1, 1] : !flow.dispatch.tensor> -> tensor<4608x64x2xf32> loc("./flux_sampler_dps/compiled_flux_sampler_run_forward$async_dispatch_36.mlir":22:8) %12 = linalg.generic {indexing_maps = [affine_map<(d0, d1, d2, d3, d4, d5) -> (d2, d0, d1, d3, d4, d5)>, affine_map<(d0, d1, d2, d3, d4, d5) -> (d0, d1, d2, d3, d4, d5)>], iterator_types = ["parallel", "parallel", "parallel", "parallel", "parallel", "parallel"]} ins(%7 : tensor<4608x1x24x64x1x2xbf16>) outs(%9 : tensor<1x24x4608x64x1x2xf32>) attrs = {lowering_config = #iree_codegen.lowering_config} { ^bb0(%in: bf16 loc("flux_dev_bs1_256_1024x1024_fp16_sampler.mlir":1590:12), %out: f32 loc("flux_dev_bs1_256_1024x1024_fp16_sampler.mlir":1598:12)): %14 = arith.extf %in : bf16 to f32 loc("./flux_sampler_dps/compiled_flux_sampler_run_forward$async_dispatch_36.mlir":25:10) linalg.yield %14 : f32 loc("./flux_sampler_dps/compiled_flux_sampler_run_forward$async_dispatch_36.mlir":26:10) } -> tensor<1x24x4608x64x1x2xf32> loc("./flux_sampler_dps/compiled_flux_sampler_run_forward$async_dispatch_36.mlir":23:8) %extracted_slice = tensor.extract_slice %12[0, 0, 0, 0, 0, 0] [1, 24, 4608, 64, 1, 1] [1, 1, 1, 1, 1, 1] : tensor<1x24x4608x64x1x2xf32> to tensor<24x4608x64xf32> loc("./flux_sampler_dps/compiled_flux_sampler_run_forward$async_dispatch_36.mlir":28:8) %extracted_slice_0 = tensor.extract_slice %12[0, 0, 0, 0, 0, 1] [1, 24, 4608, 64, 1, 1] [1, 1, 1, 1, 1, 1] : tensor<1x24x4608x64x1x2xf32> to tensor<24x4608x64xf32> loc("./flux_sampler_dps/compiled_flux_sampler_run_forward$async_dispatch_36.mlir":29:8) %13 = linalg.generic {indexing_maps = [affine_map<(d0, d1, d2, d3) -> (d1, d2, d3)>, affine_map<(d0, d1, d2, d3) -> (d0, d1, d2)>, affine_map<(d0, d1, d2, d3) -> (d1, d2, d3)>, affine_map<(d0, d1, d2, d3) -> (d0, d1, d2)>, affine_map<(d0, d1, d2, d3) -> (d0, d1, d2, d3)>], iterator_types = ["parallel", "parallel", "parallel", "parallel"]} ins(%11, %extracted_slice, %10, %extracted_slice_0 : tensor<4608x64x2xf32>, tensor<24x4608x64xf32>, tensor<4608x64x2xf32>, tensor<24x4608x64xf32>) outs(%8 : tensor<24x4608x64x2xbf16>) attrs = {lowering_config = #iree_codegen.lowering_config} { ^bb0(%in: f32 loc("flux_dev_bs1_256_1024x1024_fp16_sampler.mlir":1619:12), %in_1: f32 loc("flux_dev_bs1_256_1024x1024_fp16_sampler.mlir":1622:12), %in_2: f32 loc("flux_dev_bs1_256_1024x1024_fp16_sampler.mlir":1626:12), %in_3: f32 loc("flux_dev_bs1_256_1024x1024_fp16_sampler.mlir":1629:12), %out: bf16 loc("flux_dev_bs1_256_1024x1024_fp16_sampler.mlir":1656:12)): %14 = arith.mulf %in_2, %in_3 : f32 loc("./flux_sampler_dps/compiled_flux_sampler_run_forward$async_dispatch_36.mlir":32:10) %15 = arith.mulf %in, %in_1 : f32 loc("./flux_sampler_dps/compiled_flux_sampler_run_forward$async_dispatch_36.mlir":33:10) %16 = arith.addf %15, %14 : f32 loc("./flux_sampler_dps/compiled_flux_sampler_run_forward$async_dispatch_36.mlir":34:10) %17 = arith.truncf %16 : f32 to bf16 loc("./flux_sampler_dps/compiled_flux_sampler_run_forward$async_dispatch_36.mlir":35:10) linalg.yield %17 : bf16 loc("./flux_sampler_dps/compiled_flux_sampler_run_forward$async_dispatch_36.mlir":36:10) } -> tensor<24x4608x64x2xbf16> loc("./flux_sampler_dps/compiled_flux_sampler_run_forward$async_dispatch_36.mlir":30:8) flow.dispatch.tensor.store %13, %6, offsets = [0, 0, 0, 0], sizes = [24, 4608, 64, 2], strides = [1, 1, 1, 1] : tensor<24x4608x64x2xbf16> -> !flow.dispatch.tensor> loc("./flux_sampler_dps/compiled_flux_sampler_run_forward$async_dispatch_36.mlir":38:8) return loc("./flux_sampler_dps/compiled_flux_sampler_run_forward$async_dispatch_36.mlir":39:8) } loc("./flux_sampler_dps/compiled_flux_sampler_run_forward$async_dispatch_36.mlir":9:6) } loc("./flux_sampler_dps/compiled_flux_sampler_run_forward$async_dispatch_36.mlir":8:4) } loc("./flux_sampler_dps/compiled_flux_sampler_run_forward$async_dispatch_36.mlir":2:2) } loc("./flux_sampler_dps/compiled_flux_sampler_run_forward$async_dispatch_36.mlir":1:0)