Completing AMD support. Fixes #98. Fixes #99. Closes #101. Closes #111.