This package is WIP and not fully tested. Use with care (
tmap! should be safe to use).
Simple patterns supporting working with threads in Julia. Functionalities:
tmapreducefunctions. They are designed for relatively expensive mapping
TRNGare for random number generators ready for threading
getrangeis a function returning a range of indices to traverse in a given thread it is designed for cases when we handcode loop inside
@threadsmacro (usually when mapping
fis cheap and e.g. can benefit from
test/summation.jlfor example usage
Comparison of performance
tmap! threading with copied random number generators and standard
Tests run on 16 core AWS c4.4xlarge instance by running src/runtests.sh.
We measure time using
tmap! has more of precompilation overhead reported.
22 days ago