Metal#

is_available()

Check if the Metal back-end is available.

device_info()

Get information about the GPU device and system settings.

get_active_memory()

Get the actively used memory in bytes.

get_peak_memory()

Get the peak amount of used memory in bytes.

reset_peak_memory()

Reset the peak memory to zero.

get_cache_memory()

Get the cache size in bytes.

set_memory_limit(limit, *[, relaxed])

Set the memory limit.

set_cache_limit(limit)

Set the free cache limit.

clear_cache()

Clear the memory cache.

start_capture(path)

Start a Metal capture.

stop_capture()

Stop a Metal capture.