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