Abinit 6.4.3 binaries for OSX posted

option, parallelism,...

Moderators: fgoudreault, mcote

Forum rules
Please have a look at ~abinit/doc/config/build-config.ac in the source package for detailed and up-to-date information about the configuration of Abinit 8 builds.
For a video explanation on how to build Abinit 7.x for Linux, please go to: http://www.youtube.com/watch?v=DppLQ-KQA68.
IMPORTANT: when an answer solves your problem, please check the little green V-like button on its upper-right corner to accept it.
Locked
User avatar
Alain_Jacques
Posts: 279
Joined: Sat Aug 15, 2009 9:34 pm
Location: Université catholique de Louvain - Belgium

Abinit 6.4.3 binaries for OSX posted

Post by Alain_Jacques » Wed Feb 16, 2011 8:40 pm

Dear All,

A new binary package for Abinit 6.4.3 for OSX has been posted on the ETSF software repository at http://www.etsf.eu/resources/software/etsf_software_repository and can be downloaded from http://www.etsf.be/downloads/ETSF_softlib/OSX_binaries/abinit-6.4.3_intel_10.6_m64.tar.bz2

Abinit 6.4.3 is the latest production release as of 15/02/2011 . This 64bit OSX version comes with all advertised plugins and required libraries. It passes the full testsuite (tested on Snow Leopard). The static binaries should work under reasonably recent OSX versions.
The binaries have been prepared with multithreaded FFT and linear algebra libraries i.e. they can use all available cores on SMP systems.

Don't hesitate to provide feedback on the forum.

Kind regards,

Alain Jacques

WoodDM
Posts: 10
Joined: Tue Mar 02, 2010 5:52 am

Properly launching Abinit 6.4.3 OS X binaries Alain posted

Post by WoodDM » Mon Apr 04, 2011 10:57 pm

Many thanks for your work, Alain!

I'm used to running the binaries *I* built from scratch using OpenMPI via, e.g.,

/opt/openmpi-1.5/bin/mpirun -np 8 /pathtomyexecutable < MkSCF-BigEcut.files >& MkSCF-BigEcut.log &

and then watching 8 instances of abinit running, each with >99% usage of a CPU.

When launching a job with the new binaries, I find:

1 instance of abinit with 359.0% of a CPU being used (usually <300%)
plus
1 instance of abinit with 0% of a CPU being used.

EG the process list shows
dmwood 70269 254.2 7.1 3669496 1042548 s006 R+ 2:54PM 0:44.23 /opt/etsf/abinit/6.4.5FromAJ/bin/abinit
dmwood 70267 0.0 0.0 2436320 1616 s006 S+ 2:54PM 0:00.03 /opt/openmpi-1.5/bin/mpirun -np 8 /opt/etsf/abinit/6.4.5FromAJ/bin/abinit

Can anyone identify what I'm doing wrong [apart from not reading more of the documentation :) ]

Many thanks, --DMW

User avatar
Alain_Jacques
Posts: 279
Joined: Sat Aug 15, 2009 9:34 pm
Location: Université catholique de Louvain - Belgium

Re: Abinit 6.4.3 binaries for OSX posted

Post by Alain_Jacques » Tue Apr 05, 2011 11:12 am

Hello DMW,

Most of the time I build two kinds of binaries ...
x either parallel Abinit releases with sequential FFT and linear algebra libs; they come with a MPICH2 launcher (aka gforker) suitable for SMP systems.
x or sequential Abinit releases with multithreaded FFT and linalg libs; they will use multicores cpus if present

Type 1 is crafted for production work, type 2 mostly for testing and learning purposes. I assume that people downloading from ETSF look for a good binary to follow the tutorials with reasonable performance on laptops or even netbooks.
What you have downloaded is of type 2 :-) ... it's a sequential Abinit, mpirun won't work - at least won't launch more that one instance. But this instance will find that you have several cores and parallelize (some, many) FFT and LAPACK calls. I would not say that it is unsuitable for production work; it is quite efficient and works well when a lot of memory is needed and k point parallelization not an option.

Kind regards,

Alain
... I didn't even say RTFD :-)

WoodDM
Posts: 10
Joined: Tue Mar 02, 2010 5:52 am

Re: Abinit 6.4.3 binaries for OSX posted

Post by WoodDM » Tue Apr 05, 2011 7:50 pm

Alain,

Many thanks for the reply and the explanation of what it was I downloaded!

For those who might be curious: (Remarks relevant to running on OS X 10.6.7 on an 8-core early 2008 Mac Pro, 14GB RAM)

1) DESPITE being launched with mpirun, I found (when I got home and could see a system usage monitor, rather than just the process list) that the type 2 version WAS using all 8 cores, according to what Alain says probably on abundant FFT and LAPACK calls, but with a many more fluctuations that what I was used to from a simple openmpi build. As I noted, there was only one instance of abinit running in the process list.

2) DESPITE what I thought, the job finished 31% sooner than the version of AB 6.4.3 I'd built myself [disabling libxc, which I have been unable to build automatically for many months, using the mpif90 [based on the latest OpenMPI with the gfortran from MacPorts--an executable named x86_64-apple-darwin10-gfortran-mp-4.4].

In short: NOTHING was wrong--the CPU usage patterns are just substantially different than the abinit builds I'd made. I don't know much about the relative merits of various compilers, but if my tests were meaningful (they may not be since I'm comparing apples and oranges) I'd conclude that a sequential build with multithreaded FFT and linalg libs BEATS a parallel build with sequential FFT and linear algebra libs on a multicore standalone machine.

Thanks again for your work, Alain.

DMW

lucile
Posts: 3
Joined: Sun Sep 18, 2011 5:27 am

Re: Abinit 6.4.3 binaries for OSX posted

Post by lucile » Sun Sep 18, 2011 5:59 am

Hello,

I am a totally new user of abinit, and I cannot manage to run it: I am using a MacBook (Intel Core 2 Duo) with OS 10.5.8. I downloaded v6.4.3 of Abinit yesterday, and started the lesson 1 of the tutorial

http://www.abinit.org/documentation/helpfiles/for-v6.4/tutorial/lesson_1.html

I went through steps 1.1.a to 1.1.c, but at step 1.1.d, when I run

Code: Select all

abinit < t1x.files >& log 


none of the files

Code: Select all

t11.out  t1x.files  t1xo_DDB  t1xo_DEN  t1xo_EIG  t1xo_WFK
are created. I simply get

- in my terminal the output:

Code: Select all

Trace/BPT trap

- the log file which simply contains:

Code: Select all

dyld: unknown required load command 0x80000022


I googled for this error message, and found on a couple websites, including this one:

http://asqueella.blogspot.com/2010/12/dyld-unknown-required-load-command.html

that this problem might be related to my OS, and indeed I found on abinit's website that the latter seemed to have been tested for Snow Leopard only.

So I am wondering about the following:
- is my OS indeed the problem?
- if so, is there any way to work around it without updating my system to Snow Leopard?
- will I run into any new problems if I do not update my system?
- or did I do something wrong to start with (e.g. I did not run any configuration command, because I am not sure how this works!)?

Thanks a lot for your help!!

L.

PS:
Note that its seems the path to the Work directory actually should be

Code: Select all

share/abinit/tutorial/Input/Work
, and not

Code: Select all

tests/abinit/tutorial/Input/Work
, and that the executable is contained in the

Code: Select all

bin
folder and not

Code: Select all

opt
. Also, from the Work directory, the path to the executable seems to be

Code: Select all

../../../../../bin/abinit
, and that the last line of the t1x.files should be left to be

Code: Select all

../../../Psps_for_tests/01h.pspgth
, and not changed to

Code: Select all

../../Psps_for_tests/01h.pspgth
.

Consequently, my t1x.files file contains:

Code: Select all

t11.in
t11.out
t1xi
t1xo
t1x
../../../Psps_for_tests/01h.pspgth


Yet one last thing: when I run

Code: Select all

../../../../../bin/abinit < t1x.files >& log
, I get this BTP/Trap output in the terminal, but when I simply run

Code: Select all

abinit < t1x.files >& log
, no output is generated in the terminal (I directly copied and pasted "abinit" from the bin folder to the Work folder).

User avatar
Alain_Jacques
Posts: 279
Joined: Sat Aug 15, 2009 9:34 pm
Location: Université catholique de Louvain - Belgium

Re: Abinit 6.4.3 binaries for OSX posted

Post by Alain_Jacques » Sun Sep 18, 2011 4:20 pm

Hi Lucile,

hmmm ... the problem comes from me - I managed to build 64bit OSX binaries specific to Snow Leopard. Please visit again the ETSF repository to download the new 6.8.2 version for Leopard (10.5) or directly at http://www.etsf.be/downloads/ETSF_softlib/OSX_binaries/abinit-6.8.2_gcc_10.5_m64.tar.bz2. Any improvement?

Kind regards,

Alain

lucile
Posts: 3
Joined: Sun Sep 18, 2011 5:27 am

Re: Abinit 6.4.3 binaries for OSX posted

Post by lucile » Mon Sep 19, 2011 12:00 am

Yes, it now seems to work perfectly! Thanks a million! :)

L.

PS: Just one more thing. The tutorial seems to suggest that one can simply copy the abinit executable from the bin folder to the Work folder. But when I run

Code: Select all

abinit <t1x.files>&log

after having done that, nothing happens, the log file only says

Code: Select all

-bash: abinit: command not found

So I am wondering whether I am missing something?

david.waroquiers
Posts: 138
Joined: Sat Aug 15, 2009 12:45 am

Re: Abinit 6.4.3 binaries for OSX posted

Post by david.waroquiers » Mon Sep 19, 2011 10:30 am

Hello,

You might try running "./abinit <t1x.files>&log". Otherwise your system is trying to find the executable in all the locations that are specified in your "PATH" (which is an environment variable containing the locations where the system should find the executable).

By doing ./yourexecutable, you try to execute yourexecutable in the current (".") directory.

David

lucile
Posts: 3
Joined: Sun Sep 18, 2011 5:27 am

Re: Abinit 6.4.3 binaries for OSX posted

Post by lucile » Mon Sep 19, 2011 7:38 pm

Super! :) Thanks a lot.

L.

Locked