-
Notifications
You must be signed in to change notification settings - Fork 47
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
Two tests fail on macOS PPC: dbcsr_unittest2, dbcsr_unittest3 #645
Comments
Complete log for tests: |
We never tested such old versions of OSX, so I have no idea what the error can be.
It seems there are 4 simultaneous instances (which is what you are running with
so there is something wrong...
to make more specific. |
@alazzaro I spent quite some time today on this, but I cannot force it to use correct MPI settings for some reason. It still uses:
Despite I passed I will try |
@alazzaro So, with
I have used this args:
Complete log from tests: |
This was my suspicious, on OSX we allow assume that Accelerate is used... I will try to install a vagrant machine with OSX and try to fix this problem when people make Openblas available. |
Thank you very much! P. S. By the way, why |
I can assume Accelerate is not really optimized, no sure though... |
Well, it is old, and on earlier systems will be worse, perhaps (and cannot be updated, being a system component). |
@alazzaro I actually do not see what is wrong there: everything passes in
Not all tests were run due to time limit being set? |
P. S. This is determined not to cause test errors, but |
So, could you run the tests via
? |
To detect MPI we are using FindMPI from CMake. In my case I have both MPICH and OpenMPI installed via Homebrew and MPICH is the default (linked):
Running in a different/fresh build directory:
So, at least here it seems that CMake is following the instructions correctly. |
For future reference, can you please also post the complete CMake configure log? @barracuda156 |
@dev-zero Ok, with |
@alazzaro Until Or is it actually PowerPC-specific issue and not Apple-specific? |
I have figured out finally how to force Macports
This is just for the record. I will look for a combination of settings that works optimally. |
@barracuda156 the timeout with MPICH in
So far I've been able to successfully run all the tests on macOS with OpenBLAS+OpenMPI. Github Action runners fail, though. |
@dev-zero There is no problem to link to
Hopefully that can be fixed. While on 10.6 old system |
Build and test log (multiple builds): Conclusions for now:
P. S.
You may consider fixing it in the source code though. |
@alazzaro How to pass it to |
@alazzaro @dev-zero Interesting that when linking to
When linking to |
I have noticed that UPD. No difference to test results whatsoever. Whether this flag does smth or not, its absence was not causing the problem. |
AFAIK we're not calling |
That's not good. macOS' accelerate has a slightly different LAPACK API (returning double precision for single precision calls). Not defining can therefore lead to wrong results. We have this:
Which doesn't get triggered since you're setting I wonder, maybe we should instead check against |
Got it. We added a fix in Macports. FWIU, it is a Mac sandboxing issue. |
@dev-zero Macports standard handling of this is via P. S. BLAS and LAPACK dylibs in |
According to the documentation this is exactly what |
@dev-zero Macports defaults to If you decide to use |
@dev-zero @alazzaro I do not close the issue, since above discussion may be relevant for further improvements (fixing OpenBLAS on Mac, using
Used MPI_RANKS=2, prevented time-out. |
@barracuda156 Thanks for your finding, this is a good news! Yes, plan is to get vecLibFort as a requirement (and drop ACCELERATE macro in the first instance) and add OpenBLAS support for macos. It will take a while though... I agree, we can keep this ticket open as a reminder... |
@alazzaro Sounds good! By the way, are there any opinions on why there are issues with the latest MPICH on Mac? I was thinking it is just semi-broken on PPC, but seems that the problem is not limited to one arch: #645 (comment) |
I am bringing
dbcsr
to Macports, where we support all range of macOS including old ones (at least 10.5+).Two tests fail on 10.6.8 Rosetta (I cannot test native PPC at the moment, away from PPC hardware): dbcsr_unittest2, dbcsr_unittest3.
@alazzaro Suggestions how to fix that are greatly appreciated.
Environment:
macOS 10.6.8 Rosetta (
ppc32
)gcc 12.2.0
mpich-gcc12 @4.0.2+fortran
cmake-devel 20221130-3.25.1
ninja @1.11.1
OpenBLAS @0.3.21+gcc12+lapack+native
python310 @3.10.9
py-fypp @3.1
Portfile used: https://github.com/macports/macports-ports/blob/6e401b768cff5631fba66cca8ef346600a175c5a/math/dbcsr/Portfile
The text was updated successfully, but these errors were encountered: