-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove asserts from precompile (#214)
- Loading branch information
Kristoffer Carlsson
authored
Sep 13, 2021
1 parent
5839faf
commit 641db27
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |