Create a thrust policy to intercept tmp buffer allocations#2806
Merged
umar456 merged 2 commits intoarrayfire:masterfrom Mar 25, 2020
Merged
Create a thrust policy to intercept tmp buffer allocations#2806umar456 merged 2 commits intoarrayfire:masterfrom
umar456 merged 2 commits intoarrayfire:masterfrom
Conversation
Thrust uses policies to perform certain operations in the backend. This commit creates an ArrayFire policy for thrust which intercepts temporary buffer allocations and frees to the memory manager. It also allows you to specify the stream of the operation so the older approach to specify the stream has been updated.
9prady9
approved these changes
Mar 24, 2020
umar456
added a commit
to umar456/arrayfire
that referenced
this pull request
Mar 26, 2020
…#2806) * Create a thrust policy to intercept tmp buffer allocations Thrust uses policies to perform certain operations in the backend. This commit creates an ArrayFire policy for thrust which intercepts temporary buffer allocations and frees to the memory manager. It also allows you to specify the stream of the operation so the older approach to specify the stream has been updated.
umar456
added a commit
that referenced
this pull request
Mar 27, 2020
* Create a thrust policy to intercept tmp buffer allocations Thrust uses policies to perform certain operations in the backend. This commit creates an ArrayFire policy for thrust which intercepts temporary buffer allocations and frees to the memory manager. It also allows you to specify the stream of the operation so the older approach to specify the stream has been updated.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thrust uses policies to perform certain operations in the backend. This
commit creates an ArrayFire policy for thrust which intercepts temporary
buffer allocations and frees to the memory manager. It also allows
you to specify the stream of the operation so the older approach to
specify the stream has been updated.
Fixes #2794