You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I suspect the -O2 compiling option (with g++ 11.3. ) make that for (int i = 0; i < 100; ++i) { a++; } is some howreplaced with a+=100 ... Quite simple to change in Makefile. How to do it in CMakeLists.txt ?
I also needed to move up the code to 10000 tries (instead of 1000), and the main function to 1000 increments (instead of 100) before I start to see racing conditions.