(dev)
Set current CUDA device.

    Select a device to use for subsequent CUDA operations.

    Parameters
    ----------
    dev : int
        Device number.
Set current CUDA device.
Set current CUDA device .
def cudaSetDevice(dev):
    """
    Set current CUDA device.

    Select a device to use for subsequent CUDA operations.

    Parameters
    ----------
    dev : int
        Device number.

    """

    status = _libcudart.cudaSetDevice(dev)
    cudaCheckStatus(status)
def cudaSetDevice ( dev ) : status = _libcudart . cudaSetDevice ( dev ) cudaCheckStatus ( status )