forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Split CUDAScopedContext to *Acquire and *Produce The motivation is that acquire() and produce() need a different functionality, and are constructed differently (e.g. acquire version always needs the edm::WaitingTaskWithArenaHolder). This split should make it more difficult to make mistakes. It should also make future evolution, e.g. towards chains of TBB tasks alternating in CPU and GPU work, easier. * Rename CUDAContextToken to CUDAContextState, and change semantics Now CUDAScopedContextAcquire takes it as a parameter to constructor, and stores the state in its destructor (yielding RAII semantics). * Document the constructors.
- Loading branch information
Showing
4 changed files
with
6 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters