LU Factorization for Accelerator-based Systems