-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Compilation fails with spack with cce compilers #4228
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
Comments
Strange. la_constants is a Fortran module used by some of the LAPACK code (which is a copy of Reference-LAPACK), do you see anything related to its compilation in the logs ? (And can you try to compile 0.3.24 - for mostly unrelated reasons - or is this not available in/for spack yet ?) |
Hello, The above messges are all I got from the spack. I tried
I would like to try it directly from source, but I do not have the make arguments from my system. |
I just tried this
I get this error:
|
Thanks. Can you try adding |
It seems that it compiled. Though some tests failed. Should I be worried about that.
|
These gcc-style options should have been filtered out in Makefile.system as the Cray compiler does not understand them - do you have F_COMPILER=CRAY in the generated Makefile.conf, or did compiler detection fail for some reason ? |
No. I have GFORTRAN
|
That's a bit weird - it must have seen "CRAY" at some point for the |
I did a make clean and redid the compilation. I got the same. |
then the f_check script must be broken (again) :( |
Can you provide the ftest.s file created by |
...and I notice I already fixed Cray Fortran detection (for CCE version 15) in 0.3.22, so this "should not happen" ? (unless perhaps just calling "ftn" on your system invokes a different compiler than when the full path is specified as in the spack log) |
This worked without issues |
I don't doubt it, but I need to see the output file in order to figure out why the f_check script misidentified the compiler ? |
The tests thingy fails when I do it directly from source.
|
I apologize, I missed that. Here it is:
|
Thanks. It should pick up the "Hewlett Packard Enterprise" entry and put
in Makefile.conf (and does so in my test when I replace the corresponding line with a |
I ran this:
This is what I got
|
That looks correct, I wonder why it did not work in your build where you ended up with the GFORTRAN entry |
Is there some way to run the tests "manually"? |
well, f_check is just a shell script, the |
I still do not understand why/how the GNU-style options crept back in when compiling in the test directory, but adding
in test/Makefile somewhere after the declaration of FLDFLAGS (line 262) should certainly stomp them out. |
I tried your suggestion with this compilation:
I still getting the same errors:
More info:
|
Thanks - I have no explanation for this, guess I should try to reproduce this behaviour with some wrapper scripts around a regular gcc and gfortran that make them behave like CCE. |
In the end the openblas library is created. Even if the tests do no compile, can I trust the library? |
I think so - at least there were no issues with CCE builds in the past. BTW I cannot reproduce the misbehaviour with the patched test/Makefile (attached here but you'd need to remove the .txt extension that github insists on) |
Coming to the conclusion that we "only" need to be more assertive in stripping down and overwriting the existing FFLAGS setting in Makefile.system, so that the new setting actually takes effect. |
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I am trying to compile open openblas on a cluster with the cce compilers, but it fails:
This is the spack info:
I try to install it via
The build fails with this message:
The complete log is this:
The text was updated successfully, but these errors were encountered: