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

Resource Integration #89

Open
wants to merge 136 commits into
base: develop
Choose a base branch
from
Open

Conversation

mdavis36
Copy link

Adding support for streaming context resources to work with Chai/Umpire/Camp. Current support added for host devices, cuda devices and asynchronous data migration from GPU to Host.

This new feature is demonstrated in new examples using Chai forall utility.

mdavis36 and others added 30 commits September 25, 2019 11:30
Conflicts:
	src/tpl/umpire
	tests/unit/CMakeLists.txt
…CHAI into feature/device-context-integration

Conflicts:
	examples/context.cpp
…CHAI into feature/device-context-integration
src/chai/ArrayManager.hpp Outdated Show resolved Hide resolved

camp::resources::Resource* res;
if (space == chai::CPU){
res = record->m_last_resource;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems weird that we might ignore the resource passed in.

@@ -830,7 +830,9 @@ GPU_TEST(ManagedArray, PodTestGPU)

TEST(ManagedArray, ExternalConstructorUnowned)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@davidbeckingsale, @mdavis36, I can't get this test to pass.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It also seems that using pinned memory for the CPU space conflicts with the ability to construct using a simple malloc'ed pointer (say from a 3rd party library).

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

Successfully merging this pull request may close these issues.

5 participants