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