Fix AMD test fails for Underscore builds. [ci skip]