Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does my AMD CPU have trouble compiling applications?

Up to September last year, I had been using my Intel i7-based laptop to create and compile my programs, but unfortunately the graphics card broke and so I built a budget computer based around the AMD 4100 FX processor.

Ever since I have started to use the desktop for compiling, I've had all sorts of issues, the main issue being that my applications were really unstable on Intel platforms.

The latest in this spree of issues is that a certain function in my C++ code was being corrupted, seemingly caused by compiling on an AMD CPU. To test this, I quickly got hold of an AWS (Amazon Web Services) EC2 micro.t2 server, installed Visual Studio 2008 from Dreamspark, downloaded the source-code and compiled it. Sure enough, there was no corruption of the function and the DLL produced by the source-code ran perfectly.

I'm using Visual Studio 2008, with the stock compiler, and run Windows 8.1 (AWS EC2 server runs Windows Server 2008 R2). An example of the code that I am trying to compile is the Crysis Wars SDK, and bear in mind that this code always compiled fine on my Intel i7 CPU.

Why does my AMD CPU have so much trouble compiling my C++ applications? Is there anything that I can do about this, other than continue compiling my applications on an AWS EC2 server, or spending cash on a new Intel-based PC build?

like image 273
AStopher Avatar asked Jul 19 '14 19:07

AStopher


People also ask

How do you check if AMD processor is working properly?

Plug your computer into an electrical outlet and turn it on. Look for the BIOS manufacturer name—such as Award, AMI or Phoenix—on your monitor as the computer starts up and then listen for and record the number and sequence of beeps that occur as your computer goes through a power-on self test, also called a POST test.

Do Intel compilers work on AMD?

Yes, absolutely. Just avoid the /Qx option (other than /QxHost, which would be a good choice for processor selection.) In general, Intel Fortran is better than other Fortran compilers for AMD processors.

Is Windows 11 AMD problem fixed?

Near launch, AMD warned that Windows 11 could slow gaming performance by up to 15%, for instance. Thankfully this issue, among others, has been fixed since launch.

Did Microsoft Fix AMD issue?

Microsoft has started rolling out fixes for issues that caused Windows 11-powered PCs with compatible AMD processors to run slow. Earlier this month, AMD noted that users could face errors with some games while using Windows 11 OS.


1 Answers

Your processor or memory may be overheating or deficient. Modern compilers are sophisticated beasts, and if you run one at all, it may be the most complex of all the programs you run on your computer. For this reason the compiler may be the only program that reveals hardware issues.

There is an entry in the GCC FAQ to the effect that if the compiler segfaults, it may be your memory that has your problem, and not a bug in GCC. I have been affected by this when I over-clocked a Pentium (it was the 90s) and even memtest didn't diagnose anything wrong (but GCC did). Generating wrong code seems like another possible consequence of bad hardware.

What should you do? Check that you didn't leave a sticker between component and radiator, swap memory sticks out to confirm or rule out that they relate to the problem, get the warranty applied if you can confirm an issue. Good luck.

like image 198
Pascal Cuoq Avatar answered Nov 15 '22 18:11

Pascal Cuoq