Fix for AMD when using concatenated file; fixes #13812