compile amd versions of templates