jipolanco / PencilFFTs.jl

Fast Fourier transforms of MPI-distributed Julia arrays
https://jipolanco.github.io/PencilFFTs.jl/dev/
MIT License
77 stars 7 forks source link

Error: FFTW could not create plan #9

Closed f-fathurrahman closed 4 years ago

f-fathurrahman commented 4 years ago

Dear @jipolanco , trying to run both the test and example in the README I got the errors that said FFTW could not create plan.

Here is the output when executing the runtest.jl

[ Info: Running taylor_green.jl with 8 processes...
ERROR: ERROR: ERROR: ERROR: LoadError: LoadError: LoadError: LoadError: ERROR: ERROR: ERROR: ERROR: LoadError: LoadError: LoadError: LoadError: FFTW could not create plan
Stacktrace:FFTW could not create plan
Stacktrace:FFTW could not create plan
Stacktrace:FFTW could not create plan
Stacktrace:
 [1] 
 [1] 
 [1] 
 [1] errorerrorerrorerror((((::::::::String) at ./error.jl:33
 [2] FFTW.rFFTWPlan{Float64,-1,false,3}(::Array{Float64,3}, ::FFTW.FakeArray{Complex{Float64},3}, ::Int64, ::UInt32, ::Float64) at /home/efefer/.julia/packages/FFTW/qqcBj/src/fft.jl:527
 [3] String) at ./error.jl:33
 [2] String) at ./error.jl:33
 [2] String) at ./error.jl:33
 [2] FFTW.rFFTWPlan{Float64,-1,false,3}(::Array{Float64,3}, ::FFTW.FakeArray{Complex{Float64},3}, ::Int64, ::UInt32, ::Float64) at /home/efefer/.julia/packages/FFTW/qqcBj/src/fft.jl:527
 [3] FFTW.rFFTWPlan{Float64,-1,false,3}(::Array{FFTW.rFFTWPlan{Float64,-1,false,3}(::Array{Float64Float64,,3}, ::FFTW.FakeArray{3}, ::FFTW.FakeArray{Complex{Float64},3}, Complex{Float64},3}, ::::Int64, ::UInt32Int64, ::UInt32, ::Float64), :: at /home/efefer/.julia/packages/FFTW/qqcBj/src/fft.jl:527Float64)
 [3]  at /home/efefer/.julia/packages/FFTW/qqcBj/src/fft.jl:527
 [3] plan_rfft(::Array{Float64,3}, ::Int64; flags::UInt32, timelimit::Float64) at /home/efefer/.julia/packages/FFTW/qqcBj/src/fft.jl:672
 [4] #plan#8 at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/Transforms/r2c.jl:44 [inlined]
 [5] _make_1d_fft_plan(::Val{1}, ::Pencil{3,2,Float64,Nothing}, ::Pencil{3,2,Complex{Float64},Nothing}, ::PencilFFTs.Transforms.RFFT, ::NamedTuple{plan_rfft(::Array{Float64,3}, ::Int64; plan_rfft(::Array{Float64,3}, ::Int64; plan_rfft(::Array{Float64,3}, ::Int64; flags::UInt32, timelimit::Float64) at /home/efefer/.julia/packages/FFTW/qqcBj/src/fft.jl:672
 [4] flags::UInt32, timelimit::Float64) at flags::UInt32, timelimit::Float64) at /home/efefer/.julia/packages/FFTW/qqcBj/src/fft.jl:672/home/efefer/.julia/packages/FFTW/qqcBj/src/fft.jl:672
 [4] 
 [4] #plan#8 at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/Transforms/r2c.jl:44 [inlined]
 [5] _make_1d_fft_plan(::Val{1}, ::Pencil{3,2,Float64,Nothing}, ::Pencil{3,2,Complex{Float64},Nothing}, ::PencilFFTs.Transforms.RFFT, ::NamedTuple{#plan#8 at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/Transforms/r2c.jl:44 [inlined]#plan#8 at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/Transforms/r2c.jl:44 [inlined]
 [5] 
 [5] _make_1d_fft_plan(::_make_1d_fft_plan(::Val{Val{11}, ::}, ::Pencil{3,2,Pencil{3Float64,Nothing,2,Float64}, ::Pencil{,Nothing3,2,}, ::PencilComplex{Float64},{3,2Nothing}, ::,Complex{Float64PencilFFTs.Transforms.RFFT, ::},NothingNamedTuple{}, ::PencilFFTs.Transforms.RFFT, ::NamedTuple{((((FFTW could not create plan
Stacktrace:FFTW could not create plan
Stacktrace:FFTW could not create plan
Stacktrace:FFTW could not create plan
Stacktrace:
 [1] 
 [1] 
 [1] 
 [1] errorerrorerrorerror((((:::::::::permute_dims, :ibuf, :obuf, :timer, :fftw_kw, :extra_dims),Tuple{Val{true},Array{UInt8,1},Array{UInt8,1},TimerOutputs.TimerOutput,Tuple{Pair{Symbol,UInt32},Pair{Symbol,Float64}},Tuple{}}}) at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:363
 [6] _create_plans at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:251 [inlined]
 [7] _create_plans at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:220 [inlined]
 [8] PencilFFTPlan(::Tuple{Int64,Int64,Int64}, ::Tuple{PencilFFTs.Transforms.RFFT,PencilFFTs.Transforms.FFT,PencilFFTs.Transforms.FFT}, ::Tuple{Int64,Int64}, ::MPI.Comm, ::Type{Float64}; extra_dims::Tuple{}, fftw_flags::UInt32, fftw_timelimit::Float64, permute_dims::Val{true}, transpose_method::::permute_dims, :ibuf, :obuf, :timer, :fftw_kw, :extra_dims),Tuple{Val{:permute_dims, :ibuf, :obuf, :timer, :fftw_kw, :extra_dims),Tuple{Val{PencilFFTs.PencilArrays.TransposeMethods.IsendIrecv, timer::TimerOutputs.TimerOutput, ibuf::Array{UInt8,1}, obuf::Array{UInt8,1}) at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:181
 [9] permute_dims, :ibuf, :obuf, :timer, :fftw_kw, :extra_dims),Tuple{Val{true},Array{UInt8,1},Array{UInt8,1},TimerOutputs.TimerOutput,Tuple{Pair{Symbol,UInt32},Pair{Symbol,Float64}},Tuple{}}}) at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:363
 [6] _create_plans at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:251 [inlined]
 [7] _create_plans at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:220 [inlined]
 [8] true},Array{UInt8,1},Array{UInt8,1},TimerOutputs.TimerOutput,Tuple{Pair{Symbol,UInt32},Pair{Symbol,Float64}},Tuple{}}}) at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:363
 [6] _create_plans at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:251 [inlined]
 [7] _create_plans at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:220 [inlined]
 [8] true},Array{UInt8,1},Array{UInt8,1},TimerOutputs.TimerOutput,Tuple{Pair{Symbol,UInt32},Pair{Symbol,Float64}},Tuple{}}}) at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:363
 [6] _create_plans at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:251 [inlined]
 [7] _create_plans at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:220 [inlined]
 [8] PencilFFTPlan(::Tuple{Int64,Int64,Int64}, ::Tuple{PencilFFTs.Transforms.RFFT,PencilFFTs.Transforms.FFT,PencilFFTs.Transforms.FFT}, ::Tuple{Int64,Int64}, ::MPI.Comm, ::Type{Float64}; extra_dims::Tuple{}, fftw_flags::UInt32, fftw_timelimit::Float64, permute_dims::Val{true}, transpose_method::PencilFFTPlan(::Tuple{Int64,Int64,Int64}, ::Tuple{PencilFFTs.Transforms.RFFT,PencilFFTs.Transforms.FFT,PencilFFTs.Transforms.FFT}, ::Tuple{Int64,Int64}, ::MPI.Comm, ::Type{Float64}; extra_dims::Tuple{}, fftw_flags::UInt32, fftw_timelimit::Float64, permute_dims::Val{true}, transpose_method::PencilFFTPlan(::Tuple{Int64,Int64,Int64}, ::Tuple{PencilFFTs.Transforms.RFFT,PencilFFTs.Transforms.FFT,PencilFFTs.Transforms.FFT}, ::Tuple{Int64,Int64}, ::MPI.Comm, ::Type{Float64}; extra_dims::Tuple{}, fftw_flags::UInt32, fftw_timelimit::Float64, permute_dims::Val{true}, transpose_method::PencilFFTs.PencilArrays.TransposeMethods.IsendIrecv, timer::PencilFFTs.PencilArrays.TransposeMethods.IsendIrecv, timer::TimerOutputs.TimerOutputs.TimerOutput, ibuf::ArrayTimerOutput, ibuf::Array{UInt8,1{UInt8,1}, }, obuf::Array{obuf::Array{UInt8,1}UInt8,1}) at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:181) at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:181
 [9] 
 [9] PencilFFTs.PencilArrays.TransposeMethods.IsendIrecv, timer::TimerOutputs.TimerOutput, ibuf::Array{UInt8,1}, obuf::Array{UInt8,1}) at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:181
 [9] PencilFFTPlan at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:202 [inlined]
 [10] main() at /home/efefer/WORKS/my_github_repos/ffr-julia-stuffs/MPI/PencilFFTs/test/taylor_green.jl:114
 [11] top-level scope at /home/efefer/WORKS/my_github_repos/ffr-julia-stuffs/MPI/PencilFFTs/test/taylor_green.jl:175
 [12] include(::Module, ::String) at ./Base.jl:377
 [13] exec_options(::Base.JLOptions) at ./client.jl:288
 [14] _start() at ./client.jl:484
in expression starting at /home/efefer/WORKS/my_github_repos/ffr-julia-stuffs/MPI/PencilFFTs/test/taylor_green.jl:175
String) at ./error.jl:33
 [2] FFTW.rFFTWPlan{Float64,-1,false,3}(::Array{Float64,3}, ::FFTW.FakeArray{Complex{Float64},3}, ::Int64, ::UInt32, ::Float64) at /home/efefer/.julia/packages/FFTW/qqcBj/src/fft.jl:527
 [3] String) at ./error.jl:33
 [2] PencilFFTPlan at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:202 [inlined]
 [10] main() at /home/efefer/WORKS/my_github_repos/ffr-julia-stuffs/MPI/PencilFFTs/test/taylor_green.jl:114
 [11] top-level scope at /home/efefer/WORKS/my_github_repos/ffr-julia-stuffs/MPI/PencilFFTs/test/taylor_green.jl:175
 [12] include(::Module, ::String) at ./Base.jl:377
 [13] exec_options(::Base.JLOptions) at ./client.jl:288
 [14] _start() at ./client.jl:484
in expression starting at /home/efefer/WORKS/my_github_repos/ffr-julia-stuffs/MPI/PencilFFTs/test/taylor_green.jl:175
PencilFFTPlan at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:202 [inlined]
 [10] main() at /home/efefer/WORKS/my_github_repos/ffr-julia-stuffs/MPI/PencilFFTs/test/taylor_green.jl:114
 [11] top-level scope at /home/efefer/WORKS/my_github_repos/ffr-julia-stuffs/MPI/PencilFFTs/test/taylor_green.jl:175
 [12] include(::Module, ::String) at ./Base.jl:377
 [13] exec_options(::Base.JLOptions) at ./client.jl:288
 [14] _start() at ./client.jl:484
in expression starting at /home/efefer/WORKS/my_github_repos/ffr-julia-stuffs/MPI/PencilFFTs/test/taylor_green.jl:175
PencilFFTPlan at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:202 [inlined]
 [10] main() at /home/efefer/WORKS/my_github_repos/ffr-julia-stuffs/MPI/PencilFFTs/test/taylor_green.jl:114
 [11] top-level scope at /home/efefer/WORKS/my_github_repos/ffr-julia-stuffs/MPI/PencilFFTs/test/taylor_green.jl:175
 [12] include(::Module, ::String) at ./Base.jl:377
 [13] exec_options(::Base.JLOptions) at ./client.jl:288
 [14] _start() at ./client.jl:484
in expression starting at /home/efefer/WORKS/my_github_repos/ffr-julia-stuffs/MPI/PencilFFTs/test/taylor_green.jl:175
FFTW.rFFTWPlan{Float64,-1,false,3}(::Array{Float64,3}, ::FFTW.FakeArray{Complex{Float64},3}, ::Int64, ::UInt32, ::Float64) at /home/efefer/.julia/packages/FFTW/qqcBj/src/fft.jl:527
 [3] String) at ./error.jl:33String) at 
 [2] ./error.jl:33
 [2] FFTW.rFFTWPlan{Float64,-1,false,3}(::Array{Float64,FFTW.rFFTWPlan{Float64,-1,false,3}(::Array{Float64,3}, ::FFTW.FakeArray{Complex{Float64},3}, ::Int64, ::UInt32, ::Float64) at /home/efefer/.julia/packages/FFTW/qqcBj/src/fft.jl:527
 [3] 3}, ::FFTW.FakeArray{Complex{Float64},3}, ::Int64, ::UInt32, ::Float64) at /home/efefer/.julia/packages/FFTW/qqcBj/src/fft.jl:527
 [3] plan_rfft(::Array{Float64,3}, ::Int64; plan_rfft(::Array{Float64,3}, ::Int64; plan_rfft(::Array{Float64,3}, ::Int64; plan_rfft(::flags::UInt32Array{, timelimit::Float64)Float64,3}, :: at /home/efefer/.julia/packages/FFTW/qqcBj/src/fft.jl:672Int64; 
 [4] #plan#8 at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/Transforms/r2c.jl:44 [inlined]
 [5] _make_1d_fft_plan(::Val{1}, ::Pencil{3,2,Float64,Nothing}, ::Pencil{3,2,Complex{Float64},Nothing}, ::PencilFFTs.Transforms.RFFT, ::NamedTuple{flags::UInt32, timelimit::Float64) at /home/efefer/.julia/packages/FFTW/qqcBj/src/fft.jl:672
 [4] flags::UInt32, timelimit::Float64) at /home/efefer/.julia/packages/FFTW/qqcBj/src/fft.jl:672
 [4] flags::UInt32, timelimit::Float64) at /home/efefer/.julia/packages/FFTW/qqcBj/src/fft.jl:672
 [4] #plan#8 at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/Transforms/r2c.jl:44 [inlined]
 [5] _make_1d_fft_plan(::Val{1}, ::Pencil{3,2,Float64,Nothing}, ::Pencil{3,2,Complex{Float64},Nothing}, ::PencilFFTs.Transforms.RFFT, ::NamedTuple{#plan#8 at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/Transforms/r2c.jl:44 [inlined]#plan#8
 [5]  at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/Transforms/r2c.jl:44 [inlined]_make_1d_fft_plan(::
 [5] Val{1}, ::Pencil{3,_make_1d_fft_plan(2,::Float64,Nothing}Val{1, ::}, Pencil{3::,2,PencilComplex{{3,Float64},2,Nothing}, Float64,::Nothing}, PencilFFTs.Transforms.::RFFT, ::Pencil{NamedTuple{3,2,Complex{Float64},Nothing}, ::PencilFFTs.Transforms.RFFT, ::NamedTuple{((((:permute_dims, :ibuf, :obuf, :timer, :fftw_kw, :extra_dims),Tuple{Val{::permute_dims, :ibuf, :obuf, :timer, :fftw_kw, :extra_dims),Tuple{Val{permute_dims, :ibuf, :obuf, :timer, :fftw_kw, :extra_dims),Tuple{Val{true},Array{UInt8,1},Array{UInt8,1},TimerOutputs.TimerOutput,Tuple{Pair{Symbol,UInt32},Pair{Symbol,Float64}},Tuple{}}}) at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:363
 [6] _create_plans at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:251 [inlined]
 [7] _create_plans at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:220 [inlined]
 [8] true},Array{UInt8,1},Array{UInt8,1},TimerOutputs.TimerOutput,Tuple{Pair{Symbol,UInt32},Pair{Symbol,Float64}},Tuple{}}}) at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:363
 [6] _create_plans at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:251 [inlined]
 [7] _create_plans at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:220 [inlined]
 [8] PencilFFTPlan(::true},Tuple{Int64Array{UInt8,,Int64,Int64}1},, ::Array{Tuple{UInt8,1},TimerOutputs.PencilFFTs.Transforms.TimerOutput,TupleRFFT,{PairPencilFFTs.Transforms.FFT{Symbol,PencilFFTs.Transforms,UInt32}.FFT},, ::TuplePair{Symbol{Int64,Float64},Int64}},Tuple, ::{}}MPI.Comm}), :: at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:363Type{Float64}; extra_dims::Tuple{}
 [6] , fftw_flags::_create_plans at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:251 [inlined]UInt32, fftw_timelimit::
 [7] Float64, permute_dims_create_plans at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:220::Val{ [inlined]
 [8] true}, transpose_method:::PencilFFTPlan(::Tuple{Int64,Int64,Int64}, ::Tuple{PencilFFTs.Transforms.RFFT,PencilFFTs.Transforms.FFT,PencilFFTs.Transforms.FFT}, ::Tuple{Int64,Int64}, ::MPI.Comm, ::Type{Float64}; extra_dims::Tuple{}, fftw_flags::UInt32, fftw_timelimit::Float64, permute_dims::Val{true}, transpose_method::PencilFFTPlan(::Tuple{Int64,Int64,Int64}, ::Tuple{PencilFFTs.Transforms.RFFT,PencilFFTs.Transforms.FFT,PencilFFTs.Transforms.FFT}, ::Tuple{Int64,Int64}, ::MPI.Comm, ::Type{Float64}; extra_dims::Tuple{}, fftw_flags::UInt32, fftw_timelimit::Float64, permute_dims::Val{true}, transpose_method::permute_dims, :ibuf, :obuf, :timer, :fftw_kw, :extra_dims),Tuple{Val{true},Array{UInt8,1},Array{UInt8,1},TimerOutputs.TimerOutput,Tuple{Pair{Symbol,UInt32},Pair{Symbol,Float64}},Tuple{}}}) at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:363
 [6] _create_plans at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:251 [inlined]
 [7] _create_plans at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:220 [inlined]
 [8] PencilFFTPlan(::Tuple{Int64,Int64,Int64}, ::Tuple{PencilFFTs.Transforms.RFFT,PencilFFTs.Transforms.FFT,PencilFFTs.Transforms.FFT}, ::Tuple{Int64,Int64}, ::MPI.Comm, ::Type{Float64}; extra_dims::Tuple{}, fftw_flags::UInt32, fftw_timelimit::Float64, permute_dims::Val{true}, transpose_method::PencilFFTs.PencilArrays.TransposeMethods.IsendIrecv, timer::TimerOutputs.TimerOutput, ibuf::Array{UInt8,1}, obuf::Array{UInt8,1}) at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:181
 [9] PencilFFTs.PencilArrays.TransposeMethods.IsendIrecv, timer::TimerOutputs.TimerOutput, ibuf::Array{UInt8,1}, obuf::Array{UInt8,1}) at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:181
 [9] PencilFFTs.PencilArrays.TransposeMethods.IsendIrecv, timer::TimerOutputs.TimerOutput, ibuf::Array{UInt8,1}, obuf::Array{UInt8,1}) at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:181
 [9] PencilFFTs.PencilArrays.TransposeMethods.IsendIrecv, timer::TimerOutputs.TimerOutput, ibuf::Array{UInt8,1}, obuf::Array{UInt8,1}) at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:181
 [9] PencilFFTPlan at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:202 [inlined]
 [10] main() at /home/efefer/WORKS/my_github_repos/ffr-julia-stuffs/MPI/PencilFFTs/test/taylor_green.jl:114
 [11] top-level scope at /home/efefer/WORKS/my_github_repos/ffr-julia-stuffs/MPI/PencilFFTs/test/taylor_green.jl:175
 [12] include(::Module, ::String) at ./Base.jl:377
 [13] exec_options(::Base.JLOptions) at ./client.jl:288
 [14] _start() at ./client.jl:484
in expression starting at /home/efefer/WORKS/my_github_repos/ffr-julia-stuffs/MPI/PencilFFTs/test/taylor_green.jl:175
PencilFFTPlan at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:202 [inlined]
 [10] main() at /home/efefer/WORKS/my_github_repos/ffr-julia-stuffs/MPI/PencilFFTs/test/taylor_green.jl:114
 [11] top-level scope at /home/efefer/WORKS/my_github_repos/ffr-julia-stuffs/MPI/PencilFFTs/test/taylor_green.jl:175
 [12] include(::Module, ::String) at ./Base.jl:377
 [13] exec_options(::Base.JLOptions) at ./client.jl:288
 [14] _start() at ./client.jl:484
in expression starting at /home/efefer/WORKS/my_github_repos/ffr-julia-stuffs/MPI/PencilFFTs/test/taylor_green.jl:175
PencilFFTPlan at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:202 [inlined]
 [10] main() at /home/efefer/WORKS/my_github_repos/ffr-julia-stuffs/MPI/PencilFFTs/test/taylor_green.jl:114
 [11] top-level scope at /home/efefer/WORKS/my_github_repos/ffr-julia-stuffs/MPI/PencilFFTs/test/taylor_green.jl:175
 [12] include(::Module, ::String) at ./Base.jl:377
 [13] exec_options(::Base.JLOptions) at ./client.jl:288
 [14] _start() at ./client.jl:484
in expression starting at /home/efefer/WORKS/my_github_repos/ffr-julia-stuffs/MPI/PencilFFTs/test/taylor_green.jl:175
PencilFFTPlan at /home/efefer/.julia/packages/PencilFFTs/qToRK/src/pencil_plans.jl:202 [inlined]
 [10] main() at /home/efefer/WORKS/my_github_repos/ffr-julia-stuffs/MPI/PencilFFTs/test/taylor_green.jl:114
 [11] top-level scope at /home/efefer/WORKS/my_github_repos/ffr-julia-stuffs/MPI/PencilFFTs/test/taylor_green.jl:175
 [12] include(::Module, ::String) at ./Base.jl:377
 [13] exec_options(::Base.JLOptions) at ./client.jl:288
 [14] _start() at ./client.jl:484
in expression starting at /home/efefer/WORKS/my_github_repos/ffr-julia-stuffs/MPI/PencilFFTs/test/taylor_green.jl:175
-------------------------------------------------------
Primary job  terminated normally, but 1 process returned
a non-zero exit code.. Per user-direction, the job has been aborted.
-------------------------------------------------------
--------------------------------------------------------------------------
orterun detected that one or more processes exited with non-zero status, thus causing
the job to be terminated. The first process to do so was:

  Process name: [[46191,1],4]
  Exit code:    1
--------------------------------------------------------------------------
ERROR: LoadError: failed process: Process(`/usr/bin/orterun -n 8 /home/efefer/mysoftwares/julia-1.4.0/bin/julia --compiled-modules=no --code-coverage=none taylor_green.jl`, ProcessExited(1)) [1]

Stacktrace:
 [1] pipeline_error at ./process.jl:525 [inlined]
 [2] run(::Cmd; wait::Bool) at ./process.jl:440
 [3] run at ./process.jl:438 [inlined]
 [4] main() at /home/efefer/WORKS/my_github_repos/ffr-julia-stuffs/MPI/PencilFFTs/test/runtests.jl:42
 [5] top-level scope at /home/efefer/WORKS/my_github_repos/ffr-julia-stuffs/MPI/PencilFFTs/test/runtests.jl:49
 [6] include(::Module, ::String) at ./Base.jl:377
 [7] exec_options(::Base.JLOptions) at ./client.jl:288
 [8] _start() at ./client.jl:484
in expression starting at /home/efefer/WORKS/my_github_repos/ffr-julia-stuffs/MPI/PencilFFTs/test/runtests.jl:49

I am running on a laptop with 8GB RAM with OS Ubuntu 18.04.

MPI.jl is using OpenMPI:

mpirun --version 
mpirun (Open MPI) 2.1.1

Report bugs to http://www.open-mpi.org/community/hel
jipolanco commented 4 years ago

Hi, it seems to be a problem with your FFTW installation. Are you using MKL by any chance?

Does the following work for you in Julia?

using FFTW
u = rand(16, 32, 42)
plan = plan_rfft(u, 1)
f-fathurrahman commented 4 years ago

Thank you very much for clarifying this.

I don' realize that I am using MKL. I guess that is why during some updates I notice that MKL_jll was being downloaded.

By setting up FFTW.jl to use I can finally run the example in the READM. By the way, I need to add using Random because rand! would be unaccessible otherwise.

Also, I think it is nice to add some notes about this issue in the README.

jipolanco commented 4 years ago

You're right, the example in the README is missing a using Random. I'll add this, thanks.

Well, FFTW.jl installs MKL_jll even if you're not using MKL... And if you were using MKL you would probably know, as one has to set it up explicitly. So I'm still not sure of what the problem was.