Code for Jacobi Method in OpenMP, MPI, and CUDA