Fix AMD test failure.

This fixes the test failure for #475.