MeasureTransport / MeasureTransport/MParT
Create Preliminary GPU bindings
@dannys4 is already working on this.
Since Aug 5, 2022.
- Dominant language
- C++
- Stars
- 18
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
As discussed in #149, we need to add bindings such that we can do GPU-powered maps in the bound languages. I'm thinking the way we do this is to make a function like Wrap<MemorySpace>(arr) or something, for each of the bindings, that takes in an host-language array (e.g. numpy, matlab, julia array) and spits out a wrapped Kokkos::View. Then, we can throw that into whatever functions we want (e.g. ConditionalMapBase, etc) without needing to change the base library. Then, we could template the binding functions (e.g. ConditionalMapBaseWrapper() for python) based on memory space, so we only have to write one set of bindings (hopefully!) for both memory spaces.
If someone puts in a raw host-language array, then I suppose we just assume that they mean to use Kokkos::HostSpace.
- Matlab
- Python
- Julia
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.