mindspore.runtime.set_device_limit
- mindspore.runtime.set_device_limit(device, cube_num=- 1, vector_num=- 1)[source]
Sets selected device limit.
Note
This interface will synchronize the operator issuance, which may affect performance.
Only support PyNative mode, Graph mode is not currently supported.
- Parameters
- Supported Platforms:
Ascend
Examples
>>> import mindspore as ms >>> ms.runtime.set_device_limit(0, 8, 8)