Skip to content

[WIP] Add ica(min,max)/isa(min,max) workaround for a bug in gcc 4.x/5.x - #2260

Closed
martin-frbg wants to merge 18 commits into
OpenMathLib:developfrom
martin-frbg:ppc-ggc4
Closed

martin-frbg wants to merge 18 commits into
OpenMathLib:developfrom
martin-frbg:ppc-ggc4

Conversation

@martin-frbg

Copy link
Copy Markdown
Collaborator

fixes #2254

@martin-frbg

Copy link
Copy Markdown
Collaborator Author

This was tested on various ppc hosts in the unicamp.br minicloud, so not sure what is (still) up with travis. Will resubmit a clean PR that will leave the ppc CI job in the naughty corner for now.

@isuruf

isuruf commented Sep 16, 2019

Copy link
Copy Markdown
Contributor

@jayfurmanek, have you run into this before?

@martin-frbg

martin-frbg commented Sep 16, 2019 •

Copy link
Copy Markdown
Collaborator Author

Hmm. Maybe I was too quick. gcc8.3 on power8 (ubuntu 19.04) is showing a number of lapack-test
failures for single-precision complex. Checking to see if -O0 for icamin/icamax is necessary and sufficient to fix this as well.
Update: yes fixed. so problem apparently still there with 8.3, just shifted from ICE to wrong-code.

@jayfurmanek

Copy link
Copy Markdown

Can't say that I have. It's hard to tell what Travis is doing. Is it just hanging?

@isuruf

isuruf commented Sep 16, 2019

Copy link
Copy Markdown
Contributor

Yes, it's just hanging. I started a new build in my fork and it's going back and forth between queued and booting phases for a while now. https://travis-ci.org/isuruf/OpenBLAS/jobs/585778972

@martin-frbg

Copy link
Copy Markdown
Collaborator Author

Seems so. We normally use QUIET_MAKE to avoid aborts due to too much output, I removed that here to see where it was failing, but this time something appears to be fundamentally broken in the travis cloud. Note this was working fine until a few weeks ago.

@jayfurmanek

Copy link
Copy Markdown

I have actually seen that recently: Travis bounce between queue and boot phases on various repos. Eventually it seems to right itself, though.
Current status says "partially degraded" but it doesn't look related. is there a way to open a service request?

@isuruf

isuruf commented Sep 16, 2019

Copy link
Copy Markdown
Contributor

@martin-frbg, removing travis_wait fixed the ppc64le issue.

@isuruf

isuruf commented Sep 16, 2019

Copy link
Copy Markdown
Contributor

It didn't fix the issue. It shows the error which is an ICE.

../kernel/power/caxpy.c:61:33: internal compiler error: in rs6000_emit_le_vsx_move, at config/rs6000/rs6000.c:9157

https://travis-ci.org/isuruf/OpenBLAS/jobs/585796701#L4616-L4625

@jayfurmanek

jayfurmanek commented Sep 16, 2019 •

Copy link
Copy Markdown

That's still showing -Ofast though. I thought it should it be -O0 with this workaround.

@isuruf

isuruf commented Sep 16, 2019 •

Copy link
Copy Markdown
Contributor

The failing C files are different. Looks like this workaround is needed for caxpy.c and cdot.c as well.

@martin-frbg

martin-frbg commented Sep 17, 2019 •

Copy link
Copy Markdown
Collaborator Author

Strange. The gcc 5.4 build (Ubuntu 16) passed in the unicamp.br minicloud.
But I see now that it is the DYNAMIC_ARCH portion building for POWER9 that is encountering ICEs in cdot and caxpy, my 5.4 test build was power8 only until now. (And the ICE does not occur with 8.3.0)

@edelsohn

edelsohn commented Sep 19, 2019 •

Copy link
Copy Markdown

This is a compiled bug and should be opened as an issue in GCC Bugzilla with a self-contained test case. GCC never should ICE.

This should not be worked around with lower optimization level. That is appalling.

@martin-frbg

martin-frbg commented Sep 19, 2019 •

Copy link
Copy Markdown
Collaborator Author

This is a compiled bug and should be opened as an issue in GCC Bugzilla with a self-contained test case. GCC never should ICE.
This should not be worked around with lower optimization level. That is appalling.

Filing an issue in the GCC Bugzilla is not going to help people who are stuck with outdated versions of the compiler (RHEL seems to be worst in this regard but I guess that is IBM's own backyard now). And there is still some doubt if the gcc optimizer could be tripping over an actual coding error.

@jayfurmanek

Copy link
Copy Markdown

RH backports fixes, and yeah, they can't do that if they don't know about it.

@martin-frbg martin-frbg changed the title Add ica(min,max)/isa(min,max) workaround for a bug in gcc 4.x/5.x WIP Add ica(min,max)/isa(min,max) workaround for a bug in gcc 4.x/5.x Sep 19, 2019
@martin-frbg martin-frbg changed the title WIP Add ica(min,max)/isa(min,max) workaround for a bug in gcc 4.x/5.x [WIP] Add ica(min,max)/isa(min,max) workaround for a bug in gcc 4.x/5.x Sep 19, 2019
@martin-frbg

Copy link
Copy Markdown
Collaborator Author

superseded by #2263

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

Successfully merging this pull request may close these issues.

Compiler Failure on POWER8 with /kernel/power/i{c,d,s,z}a{min,max}.c

4 participants