Fast parallel solver for constrained mesh optimization using OpenMP and CUDA