Add AMD support

Re-opening accidentally closed #616 for 3.4-WIP

(fyi, you dont need open pull requests to merge in branches, just rebase or cherry-pick the commits off the pull branch and reference the pull in a commit -- i.e. `"add AMD support closes #616"` and github will handle the rest)