def magma_getdevice():

    dev = ctypes.c_int()
    _libmagma.magma_getdevice(ctypes.byref(dev))
    return dev.value
Get current device used by MAGMA.
dataset/ETHPy150Open lebedov/scikit-cuda/skcuda/magma.py/magma_getdevice