Multithreading broadcasted array ops

What’s best practice for multithreading broadcasted array ops?
I know of various multithreaded map functions but wish for a simple macro like @threads A.+B doesn’t seem to work?
Even better why can’t compiler automatically multithread broadcasted calls if Julia is started w/ multithreads?

I like to use Tullio.jl or OhMyThreads.jl for simple multithreading tasks.

@tturbo

docs says @tturbo has yet to support broadcasting?

2 Likes