def maybe_green(app, callable, *args, **kwargs):
    pool = app.green_pool
    if pool:
        return pool.submit(callable, *args, **kwargs)
    else:
        return callable(*args, **kwargs)
Returns extended information code for the last CULA error.
dataset/ETHPy150Open quantmind/lux/lux/utils/async.py/maybe_green--crossover with--dataset/ETHPy150Open lebedov/scikit-cuda/skcuda/cula.py/culaGetErrorInfo