Skip to content

Create a thrust policy to intercept tmp buffer allocations #2806

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

Merged
merged 2 commits into from
Mar 25, 2020

Conversation

umar456
Copy link
Member

@umar456 umar456 commented Mar 24, 2020

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

@umar456 umar456 requested a review from 9prady9 March 24, 2020 02:46
@umar456 umar456 added this to the v3.7.1 milestone Mar 24, 2020
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 umar456 merged commit 1196646 into arrayfire:master Mar 25, 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No attempt at garbage collection when memory allocation fails in thrust/cublas/...
2 participants