Monday, April 10, 2006

Compiling AMBER 9 on g4/g5 with XL compiler

Basically AMBER9 provides you an out of box compatibility on PPC Macintosh if you use IBM XL compilers. What you need to do is:

% ./configure -nopar xlf90_macosx
% make serial
With this modification, the test (make test.serial) passes without failure. However, even if you don't apply this patch, you can still get an almost working config.h ...

One noticeable change of this patch is that the underscore extension name for blas/lapack function calls are no long required probably because the current library provided by Apple (10.4.5) already took care of that.

If you don't have XL C compiler, you might have trouble compiling it. This issue is fixable, but if you are having trouble modifying config.h by yourself, please drop your question in the AMBER mail reflector.

For parallel computing, I recommend LAM-MPI for now. See Warner's tutorial when compiling LAM. As to the linking issue, I'll address this more later.

Also some might experience the problem of not finding a NULL file with XL C. Please read the later post here.