Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Thrust lacks generic malloc/free #1

Closed
jaredhoberock opened this issue Mar 12, 2012 · 1 comment
Closed

Thrust lacks generic malloc/free #1

jaredhoberock opened this issue Mar 12, 2012 · 1 comment
Labels
type: enhancement New feature or request.

Comments

@jaredhoberock
Copy link
Contributor

There is no thrust::malloc or thrust::free.

This makes it difficult to allocate (deallocate) tagged memory generically.

WARing this omission forces the user to dip into the private generic namespace and dispatch through ADL.

Consider adding these and exposing them in thrust/memory.h

reported by Bryan Catanzaro

@jaredhoberock
Copy link
Contributor Author

If these are added, then detail::malloc_allocator should use them instead of the ad hoc dispatching it does.

jaredhoberock pushed a commit that referenced this issue Nov 18, 2015
kshitij12345 pushed a commit to kshitij12345/thrust that referenced this issue Mar 24, 2022
Thrust integration

Former-commit-id: f353ba31bdf537c32c3833c598b729f9741d654a
kshitij12345 pushed a commit to kshitij12345/thrust that referenced this issue Mar 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: enhancement New feature or request.
Projects
None yet
Development

No branches or pull requests

1 participant