(dev)
return float('.'.join([str(i) for i in
                                 dev.compute_capability()]))
Get the compute capability of the specified device.

    Retrieve the compute capability of the specified CUDA device and
    return it as a floating point value.

    Parameters
    ----------
    d : pycuda.driver.Device
        Device object to examine.

    Returns
    -------
    c : float
        Compute capability.
Get the compute capability of the specified device.
Get the compute capability of the specified device .
def get_compute_capability(dev):
    """
    Get the compute capability of the specified device.

    Retrieve the compute capability of the specified CUDA device and
    return it as a floating point value.

    Parameters
    ----------
    d : pycuda.driver.Device
        Device object to examine.

    Returns
    -------
    c : float
        Compute capability.
    """

    return float('.'.join([str(i) for i in
                                 dev.compute_capability()]))
def get_compute_capability ( dev ) : return float ( '.' . join ( [ str ( i ) for i in dev . compute_capability ( ) ] ) )