Skip to content

Commit

Permalink
rmprint
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Jan 15, 2025
1 parent cc839da commit af9d5da
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions ext/ReactantCUDAExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -442,14 +442,12 @@ function get_field_offset(T::Type, path)
toffset = fieldoffset(current_type, field_idx)
tcurrent_type = fieldtype(current_type, field_idx)
offset += toffset
@show current_type, field_idx, toffset, offset, tcurrent_type

# Update current_type to the field's type for next iteration
current_type = tcurrent_type

end

@show T, path, offset

return offset
end
Expand Down Expand Up @@ -557,7 +555,6 @@ Reactant.@reactant_overlay @noinline function (func::LLVMFunc{F,tt})(
1,
)
push!(allocs, (alloc, argty))
@show string(alloc), string(argty), typeof(a)

sz = sizeof(a)
array_ty = MLIR.IR.Type(MLIR.API.mlirLLVMArrayTypeGet(MLIR.IR.Type(Int8), sz))
Expand Down Expand Up @@ -664,7 +661,6 @@ Reactant.@reactant_overlay @noinline function (func::LLVMFunc{F,tt})(
fn=MLIR.IR.FlatSymbolRefAttribute(sym_name),
output_operand_aliases=MLIR.IR.Attribute(output_operand_aliases),
)
# @show string(call), typeof(func.f), collect(map(typeof, args))

argidx = 1
for arg in values(seen)
Expand Down
2 changes: 0 additions & 2 deletions src/Compiler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,6 @@ end
const enzyme_pass::String = "enzyme{postpasses=\"arith-raise{stablehlo=true},canonicalize,cse,canonicalize,remove-unnecessary-enzyme-ops,enzyme-simplify-math,canonicalize,cse,canonicalize\"}"

function run_pass_pipeline!(mod, pass_pipeline; enable_verifier=true)
@show pass_pipeline
flush(stdout)
pm = MLIR.IR.PassManager()
MLIR.IR.enable_verifier!(pm, enable_verifier)
opm = MLIR.IR.OpPassManager(pm)
Expand Down

0 comments on commit af9d5da

Please sign in to comment.