Skip to content

Commit 83df2d6

Browse files
committed
Address PR comments
1 parent 83e38d8 commit 83df2d6

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/CUDAKernels/src/CUDAKernels.jl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -282,12 +282,6 @@ KernelAbstractions.generate_overdubs(@__MODULE__, CUDACtx)
282282
# CUDA specific method rewrites
283283
###
284284

285-
@inline Cassette.overdub(::CUDACtx, ::typeof(^), x::Float64, y::Float64) = CUDA.pow(x, y)
286-
@inline Cassette.overdub(::CUDACtx, ::typeof(^), x::Float32, y::Float32) = CUDA.pow(x, y)
287-
@inline Cassette.overdub(::CUDACtx, ::typeof(^), x::Float64, y::Int32) = CUDA.pow(x, y)
288-
@inline Cassette.overdub(::CUDACtx, ::typeof(^), x::Float32, y::Int32) = CUDA.pow(x, y)
289-
@inline Cassette.overdub(::CUDACtx, ::typeof(^), x::Union{Float32, Float64}, y::Int64) = CUDA.pow(x, y)
290-
291285
# libdevice.jl
292286
const cudafuns = (:cos, :cospi, :sin, :sinpi, :tan,
293287
:acos, :asin, :atan,
@@ -302,7 +296,7 @@ const cudafuns = (:cos, :cospi, :sin, :sinpi, :tan,
302296
for f in cudafuns
303297
@eval function Cassette.overdub(ctx::CUDACtx, ::typeof(Base.$f), x::Union{Float32, Float64})
304298
@Base._inline_meta
305-
return CUDA.$f(x)
299+
return Base.$f(x)
306300
end
307301
end
308302

0 commit comments

Comments
 (0)