BliContractor.jl icon indicating copy to clipboard operation
BliContractor.jl copied to clipboard

Number of threads

Open gustavojra opened this issue 3 years ago • 1 comments

Is there a way to control the number of threads?

If not, could we add something like

function set_num_threads(n)
           tblis_set_num_threads = dlsym(BliContractor.dll_obj, :tblis_set_num_threads)
           ccall(tblis_set_num_threads, Cvoid, (Cuint,), n)
end

gustavojra avatar Sep 28 '21 22:09 gustavojra

Hi! Thanks for the issue.

I've added a wrapper routine for this. Would you mind trying directly from GitHub? ] add https://github.com/xrq-phys/BliContractor.jl

I'll try also allowing setting degree of parallelism on each loop level (IC/JC/JR). Sorry forgot to reply after that commit 3 days ago 😄

xrq-phys avatar Oct 02 '21 14:10 xrq-phys