MegaMandel works on both GPU and CPU