XLA
Reactant.XLA.AllocatorStats Type
AllocatorStats()
Contains the following fields:
num_allocsbytes_in_usepeak_bytes_in_uselargest_alloc_sizebytes_limitbytes_reservedpeak_bytes_reservedbytes_reservable_limitlargest_free_block_bytespool_bytespeak_pool_bytes
It should be constructed using the allocatorstats function.
Reactant.XLA.allocatorstats Function
allocatorstats([device])
Return an AllocatorStats instance with information about the device specific allocator.
Warning
This method is currently not implemented for the CPU device.
Reactant.XLA.claim_gpu_device_mapping! Method
claim_gpu_device_mapping!(owner)Reserve GPU device mapping configuration for owner. Distributed XLA and MPI/NCCL use incompatible process-to-device setup, so only one of them may configure it.
Reactant.XLA.cost_analysis Function
cost_analysis(::AbstractLoadedExecutable)
cost_analysis(::Reactant.Thunk)Returns a HloCostAnalysisProperties object with the cost analysis of the loaded executable.
sourceReactant.XLA.device_ordinal Function
device_ordinal(device::Device)Given the device, return the corresponding global device ordinal in the client.
sourceReactant.XLA.device_properties Method
device_properties(device::AbstractDevice)Get a struct containing device properties. Which exact fields are populated relies on the underlying device implementation.
sourceReactant.XLA.has_initialized_client Method
has_initialized_client(backend)Return whether a client for backend already exists without triggering lazy backend initialization.
Reactant.XLA.isequal_ignoring_metadata Method
isequal_ignoring_metadata(hsharding1::HloSharding, hsharding2::HloSharding)Same as hsharding1 == hsharding2, but only compares how the data is laid out across the devices. In particular the metadata is ignored, which XLA takes into account through the reduction op (sdy::reduction_op).