ThreadMPI.cmake TestAtomic.c check is not reliable
TestAtomic.c doesn't call any of the atomics. Thus the atomics are only syntax checked. Any compiler error which only occurs when macros are evaluated or compiler errors in later optimization/linker stages can't get noticed. An example is that the usage of sfence on MIC doesn't make the test fail. See https://gerrit.gromacs.org/2690
#2 Updated by Mark Abraham about 6 years ago
- Status changed from New to In Progress
- Assignee set to Mark Abraham
Suggested fix in https://gerrit.gromacs.org/#q,Ie1d6f14565700b98988cadc17cb7ac2b78d76ce3,n,z. Please try it out on MIC - I can't.