Skip to content

Commit

Permalink
CompatHelper: bump compat for GPUCompiler to 0.25
Browse files Browse the repository at this point in the history
  • Loading branch information
CompatHelper Julia authored and giordano committed Apr 5, 2024
1 parent be37417 commit 146bbeb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ libcxxwrap_julia_jll = "3eaa8342-bff7-56a5-9981-c04077f7cee7"
[compat]
Clang = "0.14, 0.17.4"
CxxWrap = "0.14"
GPUCompiler = "0.21.4"
GPUCompiler = "0.25"
JSON = "0.21.4"
LLVM = "6"
LinearAlgebra = "1"
Expand Down
10 changes: 1 addition & 9 deletions src/compiler/compiler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,7 @@ macro device_override(ex)
ex = eval(ex)
error()
end
code = quote
$GPUCompiler.@override($method_table, $ex)
end
if isdefined(Base.Experimental, Symbol("@overlay"))
return esc(code)
else
push!(overrides, code)
return
end
return esc(:( Base.Experimental.@overlay($method_table, $ex) ))
end

macro device_function(ex)
Expand Down
4 changes: 2 additions & 2 deletions test/compiler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ function test_compiler_program(device)
end

# Test some invalid kernels
@test_throws KernelError @codelet graph f_access_out_scalar(x::VertexScalar{Float32, Out}) = @ipushow x[]
@test_throws KernelError @codelet graph f_set_in_scalar(x::VertexScalar{Float32, In}) = x[] = 3.14f0
@test_throws InvalidIRError @codelet graph f_access_out_scalar(x::VertexScalar{Float32, Out}) = @ipushow x[]
@test_throws InvalidIRError @codelet graph f_set_in_scalar(x::VertexScalar{Float32, In}) = x[] = 3.14f0

# This function would contain a reference to a literal pointer, likely an
# invalid memory address on the IPU.
Expand Down

0 comments on commit 146bbeb

Please sign in to comment.