Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove debug statements #521

Merged
merged 1 commit into from
Jan 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/condense_loopset.jl
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ end
@inline check_args(::VectorizationBase.AbstractStridedPointer) = true
@inline function check_args(x)
# @info "`LoopVectorization.check_args(::$(typeof(x))) == false`, therefore compiling a probably slow `@inbounds @fastmath` fallback loop." maxlog=1
@show @__LINE__, typeof(x)
# DEBUG: @show @__LINE__, typeof(x)
false
end
@inline check_args(A, B, C::Vararg{Any,K}) where {K} =
Expand All @@ -956,15 +956,15 @@ Returns true if the element type is supported.
"""
@inline check_type(::Type{T}) where {T<:NativeTypes} = true
@inline function check_type(::Type{T}) where {T}
@show @__LINE__, T
false
# DEBUG: @show @__LINE__, T
false
end
@inline check_type(::Type{T}) where {T<:AbstractSIMD} = true
@inline check_device(::ArrayInterface.CPUPointer) = true
@inline check_device(::ArrayInterface.CPUTuple) = true
@inline function check_device(x)
@show @__LINE__, typeof(x)
false
# DEBUG: @show @__LINE__, typeof(x)
false
end

function check_args_call(ls::LoopSet)
Expand All @@ -985,7 +985,7 @@ can be used inside a `@turbo` loop.
"""
function can_turbo(f::F, ::Val{NARGS})::Bool where {F,NARGS}
promoted_op = Base.promote_op(f, ntuple(RetVec2Int(), Val(NARGS))...)
promoted_op === Union{} && @show f, NARGS
# DEBUG: promoted_op === Union{} && @show f, NARGS
return promoted_op !== Union{}
end
can_turbo(::typeof(vfmaddsub), ::Val{3}) = true
Expand Down
Loading