@@ -3,9 +3,6 @@ using LinearAlgebra
33import Libdl
44const depsfile = joinpath (@__DIR__ , " deps.jl" )
55
6- # If BLAS was compiled with MKL and the user wants MKL-based FFTs, we'll oblige.
7- # In that case, we have to do this little dance to get around having to use BinDeps
8- # for a library that's already linked to Julia.
96settings = joinpath (first (DEPOT_PATH ), " prefs" , " FFTW" )
107mkpath (dirname (settings))
118if haskey (ENV , " JULIA_FFTW_PROVIDER" )
1714 provider = " FFTW"
1815 open (f -> println (f, provider), settings, " w" )
1916end
17+
2018if provider == " MKL"
19+ # If BLAS was compiled with MKL and the user wants MKL-based FFTs, we'll oblige.
2120 if BLAS. vendor () === :mkl
2221 mklpath = Libdl. dlpath (" libmkl_rt" )
2322 else
@@ -41,10 +40,15 @@ if provider == "MKL"
4140 end
4241 """ )
4342 end
44- elseif provider != " FFTW"
43+ elseif provider == " FFTW"
44+ open (depsfile, " w" ) do io
45+ println (io, """
46+ using FFTW_jll
47+ check_deps() = nothing
48+ """ )
49+ end
50+ else
4551 error (" Unrecognized JULIA_FFTW_PROVIDER \" $provider \" .\n " ,
4652 " To fix this, set ENV[\" JULIA_FFTW_PROVIDER\" ] to \" FFTW\" or \" MKL\"\n " ,
4753 " and rerun Pkg.build(\" FFTW\" )." )
48- else
49- include (" build_fftw.jl" )
5054end
0 commit comments