def magmaCheckStatus(status):

    if status != 0:
        raise MagmaError(status)

# Utility functions:
Raise an exception corresponding to the specified MAGMA status code.
dataset/ETHPy150Open lebedov/scikit-cuda/skcuda/magma.py/magmaCheckStatus