Skip to content

Commit 91094d8

Browse files
author
William Moses
committed
push
1 parent d149c85 commit 91094d8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ext/ReactantCUDAExt.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ function (func::LLVMFunc{F,tt})(args...; convert=Val(false), blocks::CuDim=1, th
410410
arg = transpose_val(arg)
411411
@show arg
412412
push!(restys, MLIR.IR.type(arg))
413+
push!(mlir_args, arg)
413414
push!(aliases,
414415
MLIR.IR.Attribute(MLIR.API.stablehloOutputOperandAliasGet(
415416
MLIR.IR.context(),

test/cuda.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ end
1818
@testset "Square Kernel" begin
1919
oA = collect(1:1:64)
2020
A = Reactant.to_rarray(oA)
21+
@show @code_hlo optimize=false square!(A)
2122
@show @code_hlo square!(A)
2223
func = @compile square!(A)
2324
@test all(Array(A) .≈ (oA .* oA))

0 commit comments

Comments
 (0)