GMAC: Global Memory for ACcelerators