legate.core.LogicalArray.get_physical_array#

LogicalArray.get_physical_array(
self,
target: object = None,
) PhysicalArray#

Get a PhysicalArray of the data for this array.

This call blocks the client’s control flow and fetches the data for the whole array to the current node

When the target is StoreTarget.FBMEM, the data will be consolidated in the framebuffer of the first GPU available in the scope.

If no target is given, the runtime uses StoreTarget.SOCKETMEM if it exists and StoreTarget.SYSMEM otherwise.

If there already exists a physical array for a different memory target, that physical array will be unmapped from memory and become invalid to access.

Parameters:

target (StoreTarget, optional) – The type of memory in which the physical store would be created.

Returns:

The physical array.

Return type:

PhysicalArray

Raises:

ValueError – If no memory of the chosen type is available