torch.accelerator
This package introduces support for the current accelerator in python.
Return the number of current accelerator available. |
|
Check if the current accelerator is available at runtime: it was build, all the required drivers are available and at least one device is visible. |
|
Return the device of the accelerator available at compilation time. |
|
Set the current device index to a given device. |
|
Set the current device index to a given device. |
|
Return the index of a currently selected device for the current accelerator. |
|
Return the index of a currently selected device for the current accelerator. |
|
Set the current stream to a given stream. |
|
Return the currently selected stream for a given device. |
|
Wait for all kernels in all streams on the given device to complete. |