Skip to content

Don't use internal APIs for GPU memory allocation #10

@manopapad

Description

@manopapad

Lux is currently using Realm::get_runtime() and Realm::RuntimeImpl::get_memory_impl from realm/runtime_impl.h, and Realm::Cuda::GPUFBMemory::alloc_bytes and Realm::Cuda::GPUFBMemory::get_direct_ptr from realm/cuda/cuda_module.h to allocate GPU memory that needs to persist past the lifetime of the allocating task (e.g. see https://github.com/LuxGraph/Lux/blob/master/pagerank/pagerank_gpu.cu#L269-L277). These are apparently Realm-internal interfaces, and instead the API in realm/instance.h, or possibly the new Legion variable-size allocation API should be preferred.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions