Skip to content

Commit

Permalink
don't set nthreads > 1 by default (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed May 25, 2020
1 parent ffb0873 commit 1be547b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/FFTW.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ function __init__()
cspawnloop = @cfunction(spawnloop, Cvoid, (Ptr{Cvoid}, Ptr{Cvoid}, Csize_t, Cint, Ptr{Cvoid}))
ccall((:fftw_threads_set_callback, libfftw3), Cvoid, (Ptr{Cvoid}, Ptr{Cvoid}), cspawnloop, C_NULL)
ccall((:fftwf_threads_set_callback, libfftw3f), Cvoid, (Ptr{Cvoid}, Ptr{Cvoid}), cspawnloop, C_NULL)
set_num_threads(nthreads() * 4) # spawn more tasks than threads to help load-balancing
end
end
end
Expand Down

0 comments on commit 1be547b

Please sign in to comment.