Skip to content

Commit

Permalink
Update cuda.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses authored Jan 8, 2025
1 parent cf5fd60 commit 95570f5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/integration/cuda.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@static if !Sys.isapple()

using Reactant
using Test
Expand All @@ -17,6 +16,7 @@ function square!(x, y)
return nothing
end

@static if !Sys.isapple()
@testset "Square Kernel" begin
oA = collect(1:1:64)
A = Reactant.to_rarray(oA)
Expand All @@ -29,6 +29,7 @@ end
@code_hlo optimize = :before_kernel square!(A, B)
end
end
end

function sin_kernel!(x, y)
i = threadIdx().x
Expand All @@ -42,6 +43,7 @@ function sin!(x, y)
return nothing
end

@static if !Sys.isapple()
@testset "Sin Kernel" begin
oA = collect(Float64, 1:1:64)
A = Reactant.to_rarray(oA)
Expand All @@ -54,6 +56,7 @@ end
@code_hlo optimize = :before_kernel sin!(A, B)
end
end
end

function smul_kernel!(x, y)
i = threadIdx().x
Expand All @@ -68,6 +71,8 @@ function smul!(x)
return nothing
end

@static if !Sys.isapple()

# Broken pending jll update
@static if false
@testset "Constant Op Kernel" begin
Expand Down

0 comments on commit 95570f5

Please sign in to comment.