Analysis of communication and computation overlap in accelerated programs