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.