MeasureTransport / MeasureTransport/MParT

Create Preliminary GPU bindings

Open
#150 5 comments 0 reactions 1 assignee View on GitHub

@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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.