You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@floop for _λ in Iterators.product(1:5,1:5,1:5)
let λ = [ 1, _λ... ] # TODO it would be nice if we could have one per thread
λ .= λ ./ sqrt( norm(λ) )
m = f(λ)
@reduce() do (_min = Inf; m), (λmin = zeros(4); λ)
if gm < _min
_min = gm
λmin .= λ
end
end
end
end
where instead of the let λ I have one λ per thread to minimize garbage collection when the product-space size gets really large.
Is this possible with the implementation of the multithreading?
The text was updated successfully, but these errors were encountered:
benneti
changed the title
thread local variable
thread local variable / storage
May 13, 2022
Hi,
I'd like to implement something like
where instead of the
let λ
I have one λ per thread to minimize garbage collection when the product-space size gets really large.Is this possible with the implementation of the multithreading?
The text was updated successfully, but these errors were encountered: