Solving a Ax = b where A is pentadaigonal block matrix

I want to solve a linear system where the coefficient matrix is pentadiagonal block matrix with many blocks are zero matrices and rest are diagonals. my matrix is stored in device memory in row major format using the help of cudamallocPitch. Any help ll be appreciated.

Thank You