382
382
@inline check_args (A:: BitArray ) = iszero (size (A,1 ) & 7 )
383
383
@inline check_args (:: VectorizationBase.AbstractStridedPointer ) = true
384
384
@inline function check_args (x)
385
- @info " `LoopVectorization.check_args(::$(typeof (x)) ) == false`, therefore compiling a probably slow `@inbounds @fastmath` fallback loop." maxlog= 1
385
+ # @info "`LoopVectorization.check_args(::$(typeof(x))) == false`, therefore compiling a probably slow `@inbounds @fastmath` fallback loop." maxlog=1
386
386
false
387
387
end
388
388
@inline check_args (A, B, C:: Vararg{Any,K} ) where {K} = check_args (A) && check_args (B, C... )
@@ -394,18 +394,18 @@ end
394
394
Returns true if the element type is supported.
395
395
"""
396
396
@inline check_type (:: Type{T} ) where {T <: NativeTypes } = true
397
- function check_type (:: Type{T} ) where {T}
398
- @info """ `LoopVectorization.check_type` returned `false`, because `LoopVectorization.check_type(::$(T) ) == false`.
399
- `LoopVectorization` currently only supports `T <: $(NativeTypes) `.
400
- Therefore compiling a probably slow `@inbounds @fastmath` fallback loop.""" maxlog= 1
397
+ @inline function check_type (:: Type{T} ) where {T}
398
+ # @info """`LoopVectorization.check_type` returned `false`, because `LoopVectorization.check_type(::$(T)) == false`.
399
+ # `LoopVectorization` currently only supports `T <: $(NativeTypes)`.
400
+ # Therefore compiling a probably slow `@inbounds @fastmath` fallback loop.""" maxlog=1
401
401
false
402
402
end
403
403
@inline check_device (:: ArrayInterface.CPUPointer ) = true
404
404
@inline check_device (:: ArrayInterface.CPUTuple ) = true
405
- function check_device (x)
406
- @info """ `LoopVectorization.check_args` returned `false`, because `ArrayInterface.device(::$(typeof (x)) ) == $x `
407
- `LoopVectorization` normally requires `ArrayInterface.CPUPointer` (exceptions include ranges, `BitVector`s, and
408
- `BitArray`s whose number of rows is a multiple of 8). Therefore compiling a probably slow `@inbounds @fastmath` fallback loop.""" maxlog= 1
405
+ @inline function check_device (x)
406
+ # @info """`LoopVectorization.check_args` returned `false`, because `ArrayInterface.device(::$(typeof(x))) == $x`
407
+ # `LoopVectorization` normally requires `ArrayInterface.CPUPointer` (exceptions include ranges, `BitVector`s, and
408
+ # `BitArray`s whose number of rows is a multiple of 8). Therefore compiling a probably slow `@inbounds @fastmath` fallback loop.""" maxlog=1
409
409
false
410
410
end
411
411
0 commit comments