3 ms·
You don't need await for data (CPU) parallelism. You'd typically use something like https://github.com/rayon-rs/rayon https://github.com/rayon-rs/rayon or OpenM
by floatboth 7y ago
You don't need await for data (CPU) parallelism. You'd typically use something like https://github.com/rayon-rs/rayon https://github.com/rayon-rs/rayon or OpenMP instead.
- mratsim 7y agoOpenMP does not handle nested parallelism. Compute-bound parallelism is not always data parallelism, for example a tree search algorithm would need to spawn/async on each tree nodes.