Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a unit test to demonstrate host model nested parallel dispatches #69

Closed
jeff-cohere opened this issue Feb 4, 2021 · 1 comment

Comments

@jeff-cohere
Copy link
Collaborator

As a first step to prove to ourselves that our single-column library approach can work on the machines we're targeting, it would be nice to demonstrate a nested parallel dispatch for a GPU build. Specifically:

  • The outer loop dispatches a parallel for loop that calls a virtual function on some polymorphic object with a specific "column index"
  • The virtual function performs a parallel for loop, using the column index to do something

We believe that the outer loop here executes on the host (CPU) and not, say, on the device (GPU). If this is true, we don't need to worry about instantiating aerosol process objects on GPUs--they can live on the CPU, and their run/update methods will perform work on a GPU, as long as the views they manipulate are stored there.

This task requires that we can configure Haero to build on GPU-equipped systems properly.

@jeff-cohere
Copy link
Collaborator Author

This was closed by #83

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants