Skip to content

Conversation

@tonyyang-svail
Copy link

As part of the design #7814, this PR would allow us to create multiple device contexts on one GPU.

};

struct CUDAPlace {
enum StreamType { kCOMPUTATION, kCOMMUNICATION, kLast };
Copy link
Member

Choose a reason for hiding this comment

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

Our original idea of Place is to represent the memory location of a tensor. I am not sure it's a good idea to add cuda stream into Place.

Copy link
Author

Choose a reason for hiding this comment

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

We need one to one mapping between CUDAPlace and CUDAContext. If we have CUDAPlace mapped to multiple CUDACtx, how should the API of DeviceContextPool::Get(const platform::Place& place) look like?

@tonyyang-svail tonyyang-svail changed the title add stream type to CUDAPlace [Don't Merge]add stream type to CUDAPlace Feb 3, 2018
@tonyyang-svail
Copy link
Author

The goal of the design #7814 is done at ParallelExecutor

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

Labels

None yet

2 participants