mindspore.hal
Hal encapsulates interfaces for device, stream, event, and memory. MindSpore abstracts the corresponding modules from different backends, allowing users to schedule hardware resources at the Python layer.
Device
Return device count of specified device, this api will be deprecated and removed in future versions, please use the api |
|
Get the architecture list this MindSpore was compiled for, this api will be deprecated and removed in future versions. |
|
Get specified device's capability, this api will be deprecated and removed in future versions. |
|
Get specified device's name, this api will be deprecated and removed in future versions. |
|
Get specified device's properties, this api will be deprecated and removed in future versions. |
|
Return whether specified device is available, this api will be deprecated and removed in future versions, please use the api |
|
Return whether specified device is initialized, this api will be deprecated and removed in future versions. |
Stream
Return communication stream on this device, this api will be deprecated and removed in future versions, please use the api |
|
Return current stream used on this device, this api will be deprecated and removed in future versions, please use the api |
|
Return default stream on this device, this api will be deprecated and removed in future versions, please use the api |
|
Set the current stream, this api will be deprecated and removed in future versions, please use the api |
|
Synchronize all streams on current device, this api will be deprecated and removed in future versions, please use the api |
|
Wrapper around a device stream, this api will be deprecated and removed in future versions, please use the api |
|
Context-manager that selects a given stream, this api will be deprecated and removed in future versions, please use the api |
Event
Wrapper around a device event, this api will be deprecated and removed in future versions, please use the api |
Memory
|
Return a contiguous memory handle where contiguous memory has been requested and slicing functionality is provided. |
|
ContiguousTensorsHandle is a handle manage continuous memory. |
Return the peak memory size of the memory pool actually occupied by Tensor since the process was started. |
|
Returns the peak value of the total memory managed by the memory pool since the process was started. |
|
Returns the actual memory size currently occupied by Tensor, this api will be deprecated and removed in future versions, please use the api |
|
Returns the total amount of memory currently managed by the memory pool, this api will be deprecated and removed in future versions, please use the api |
|
Returns status information queried from the memory pool, this api will be deprecated and removed in future versions, please use the api |
|
Returns readable memory pool status information, this api will be deprecated and removed in future versions. |
|
Reset the peak memory size managed by the memory pool, this api will be deprecated and removed in future versions. |
|
Reset the peak memory size of the memory pool actually occupied by Tensor, this api will be deprecated and removed in future versions, please use the api |
|
Reset the "peak" stats tracked by memory manager, this api will be deprecated and removed in future versions. |
|
Release all memory fragments in the memory pool, so that memory arrangement will be optimized, this api will be deprecated and removed in future versions, please use the api |