Skip to content

Commit 3d0902d

Browse files
authored
Fix method overwritten error for Scratchpad and SharedMemory (#300)
1 parent 0b49db5 commit 3d0902d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/KernelAbstractions.jl

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -457,13 +457,8 @@ include("macros.jl")
457457
# Backends/Interface
458458
###
459459

460-
function Scratchpad(ctx, ::Type{T}, ::Val{Dims}) where {T, Dims}
461-
throw(MethodError(Scratchpad, (T, Val(Dims))))
462-
end
463-
464-
function SharedMemory(::Type{T}, ::Val{Dims}, ::Val{Id}) where {T, Dims, Id}
465-
throw(MethodError(SharedMemory, (T, Val(Dims), Val(Id))))
466-
end
460+
function Scratchpad end
461+
function SharedMemory end
467462

468463
function __synchronize()
469464
error("@synchronize used outside kernel or not captured")

0 commit comments

Comments
 (0)