Skip to content

Provide a nice wrapper over DeviceMemoryResource and _SynchronousMemoryResource #726

Open

Description

@leofang

Need to check against Device().properties.memory_pools_supported to decide if we use DeviceMemoryResource or _SynchronousMemoryResource

Any chance we can turn this into a wrapper function, or just have DeviceMemoryResource() return the appropriate type when constructed?

Originally posted by @shwina in #717 (comment)

We could consider adding a helper function under the cuda.core.experimental.utils module. Later we might reimplement DeviceMemoryResource using cudax::device_memory_resource or cuda::device_memory_pool, so if we make DeviceMemoryResource to wrap both cudaMallocFromPoolAsync and cudaMalloc now, the re-implementation would become harder later.

Activity

  1. added
    triage
    on Jun 25, 2025
  2. added this to the cuda.core parking lot milestone on Jun 25, 2025
  3. added
    enhancement
    P1
    cuda.core
    and removed
    triage
    on Jun 25, 2025
  4. added
    cuda.core
    and removed
    cuda.core
    on Apr 2, 2026
  5. removed this from the cuda.core backlog milestone on Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1cuda.coreenhancement

Type

No type

Projects

  • Status
    Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions