Skip to content

Commit

Permalink
ParallelFor with BoxND (#4052)
Browse files Browse the repository at this point in the history
## Summary

This PR adds the ability to use ParallelFor(RNG) and Loop(OnCpu)
variants with BoxND.

## Additional background

The functions supplied to ParallelFor etc. can have one of the following
input parameter combinations when used with `BoxND<dim>`:
``` C++
(int, int, ...) // dim times
(IntVectND<dim>)
(int, int, int) // if dim is 1 or 2, for backwards compatability
```
After that come additional parameters such as `int n`, `Gpu::KernelInfo`
or `RandomEngine`.

I had to mark the constructor of GPU Handler as explicit to avoid
ambiguity between (i, j, 0) and (i, j, Gpu::Handler).
  • Loading branch information
AlexanderSinn authored Aug 10, 2024
1 parent b6ed523 commit e792933
Show file tree
Hide file tree
Showing 5 changed files with 1,432 additions and 851 deletions.
Loading

0 comments on commit e792933

Please sign in to comment.