Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asm test suite failures - atomic_cmpset #478

Closed
opoplawski opened this issue Mar 16, 2015 · 12 comments
Closed

asm test suite failures - atomic_cmpset #478

opoplawski opened this issue Mar 16, 2015 · 12 comments

Comments

@opoplawski
Copy link
Contributor

Building openmpi dev-1330-g7640507 on Fedora Rawhide i686 I get:

FAIL: atomic_cmpset
===================

atomic_cmpset: atomic_cmpset.c:224: main: Assertion `opal_atomic_add_32(&val32, 5) == (42 + 5)' failed.

FAIL: atomic_cmpset_noinline
============================

atomic_cmpset_noinline: atomic_cmpset_noinline.c:224: main: Assertion `opal_atomic_add_32(&val32, 5) == (42 + 5)' failed.

Also seeing (may not be related):

make[4]: Entering directory '/builddir/build/BUILD/openmpi-dev-1330-g7640507/test/asm'
basename: extra operand '--test-name'
Try 'basename --help' for more information.
@hjelmn
Copy link
Member

hjelmn commented Mar 16, 2015

Weird. Is this also with gcc 5?

@opoplawski
Copy link
Contributor Author

yes

@hjelmn
Copy link
Member

hjelmn commented Mar 17, 2015

Can't reproduce on OSX with GCC 5 20150315 on x86_64. Will try on Ubuntu Linux 14.04.2.

@hppritcha
Copy link
Member

where are we on this issue?

@jsquyres
Copy link
Member

The failure of atomics in this bug is likely related to/causing the vader failure in #473.

@hjelmn
Copy link
Member

hjelmn commented Mar 24, 2015

@opoplawski Which gcc snapshot produced this failure? I can't reproduce with the latest.

@opoplawski
Copy link
Contributor Author

Just fired off another test build: http://koji.fedoraproject.org/koji/taskinfo?taskID=9315351 And the i386 tests are still failing, see https://kojipkgs.fedoraproject.org//work/tasks/5354/9315354/build.log. x86_64 is fine.

This is with openmpi-dev-1364-gf588ad7 and gcc 5.0.0-0.21.fc23. Hard to tell what's in the Fedora gcc build, as they pull in some extra stuff -but looks like mostly svnrev 221517 date 20150319

@hjelmn
Copy link
Member

hjelmn commented Mar 24, 2015

Thanks. I have only tested x86_64. I will give i386 a try tonight and see if I can reproduce the failure.

Were the vader failures with i386 as well?

@opoplawski
Copy link
Contributor Author

Yes, the vader issues are only see on i386 as well

@hjelmn
Copy link
Member

hjelmn commented Mar 25, 2015

I was able to reproduce the bug with gcc 5 with the -m32 option. Looking at the disassembled binary this is clearly a gcc bug. I will provide more details tomorrow.

@hjelmn
Copy link
Member

hjelmn commented Mar 25, 2015

Actually, this is an Open MPI bug. We are using the = constraint modifier for a read/write operand. This combined with aggressive optimization is what is causing the problem.

Fixing now.

@opoplawski
Copy link
Contributor Author

I can confirm that the commit appears to fix the atomic tests on i386 for me.

jsquyres pushed a commit to jsquyres/ompi that referenced this issue Nov 10, 2015
…able

Add explicit implementation of Cloneable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants