Skip to content

Commit

Permalink
remove asserts from precompile (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristoffer Carlsson committed Sep 13, 2021
1 parent 5839faf commit 641db27
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/precompile.jl
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
function _precompile_()
ccall(:jl_generating_output, Cint, ()) == 1 || return nothing
for n = 1:3, T in (Float32, Float64, ComplexF32, ComplexF64), D in (UnitRange{Int}, Vector{Int}, Int)
@assert precompile(Tuple{typeof(fft),Array{T,n},D})
@assert precompile(Tuple{typeof(rfft),Array{T,n},D})
@assert precompile(Tuple{typeof(ifft),Array{T,n},D})
@assert precompile(Tuple{typeof(irfft),Array{T,n},Int,D})
@assert precompile(Tuple{typeof(rfft_output_size),Tuple{Int, Int, Int},D})
@assert precompile(Tuple{typeof(rfft_output_size),Tuple{Int, Int},D})
@assert precompile(Tuple{typeof(rfft_output_size),Tuple{Int},D})
precompile(Tuple{typeof(fft),Array{T,n},D})
precompile(Tuple{typeof(rfft),Array{T,n},D})
precompile(Tuple{typeof(ifft),Array{T,n},D})
precompile(Tuple{typeof(irfft),Array{T,n},Int,D})
precompile(Tuple{typeof(rfft_output_size),Tuple{Int, Int, Int},D})
precompile(Tuple{typeof(rfft_output_size),Tuple{Int, Int},D})
precompile(Tuple{typeof(rfft_output_size),Tuple{Int},D})
end
end

0 comments on commit 641db27

Please sign in to comment.