<div>Dear Axel,</div>
<div> </div>
<div>Thank you very much. The system I am using is AIX 5.3. But I will try to look at whether your input file and the old Linux-ppc5-xlf.sopt are fine in my case...</div>
<div> </div>
<div>Below is a brief description:</div>
<div>
<p>Operating system: <br><span class="WG_Indent2">AIX 5.3</span> </p>
<p>Compilers: </p>
<p class="WG_Indent2">IBM compilers: xlc, xlC (version 8.0)<br>xlf, f77, xlf90, f90, xlf95, f95 (version 10.1)</p>
<p class="WG_Indent2">a full description is at the website:</p>
<p class="WG_Indent2"><a href="http://www.westgrid.ca/resources_services/compute_facilities/cortex">http://www.westgrid.ca/resources_services/compute_facilities/cortex</a></p>
<p class="WG_Indent2">Thank you again</p>
<p class="WG_Indent2">Sincerely, Yunfeng<br><br><br></p></div>
<div class="gmail_quote">On Tue, Mar 18, 2008 at 10:26 AM, Axel <<a href="mailto:akoh...@gmail.com">akoh...@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>dear yunfeng,<br><br>i finally found a power5 machine running linux<br>instead of AIX and managed to get a working<br>
serial executable. here the individual steps:<br><br>download of lapack-lite-3.1.1.tar.gz from netlib<br>and unpack into the cp2k directory.<br>cd lapack-lite-3.1.1; cp INSTALL/make.inc.RS6K make.inc<br>edit make.inc to get:<br>
<br>FORTRAN = xlf -q64<br>OPTS = -O2 -qstrict -q64 -qarch=pwr5 -qcache=auto -qmaxmem=-1 -<br>qtune=pwr5<br>DRVOPTS = $(OPTS)<br>NOOPT = -O0 -qarch=pwr5 -qmaxmem=-1 -qtune=pwr5<br>LOADER = xlf -q64<br><br>make lib<br>
<br>then i modified the matching arch file as follows (i'll send the<br>whole file to teo later for updating the CVS so you only have<br>to 'cvs update' to get it.):<br><br>akohlmey/cp2k> cvs diff -u arch/Linux-ppc5-xlf.sopt<br>
Index: arch/Linux-ppc5-xlf.sopt<br>===================================================================<br>RCS file: /cvsroot/cp2k/cp2k/arch/Linux-ppc5-xlf.sopt,v<br>retrieving revision 1.2<br>diff -u -r1.2 Linux-ppc5-xlf.sopt<br>
--- arch/Linux-ppc5-xlf.sopt 25 Oct 2007 08:42:00 -0000 1.2<br>+++ arch/Linux-ppc5-xlf.sopt 18 Mar 2008 16:18:56 -0000<br>@@ -1,13 +1,46 @@<br> CC = gcc<br>-CPP = cpp<br>-FC = xlf95_r -qsuffix=f=f90<br>
+CPP =<br>+FC = xlf95_r -qsuffix=f=F<br> LD = xlf95_r<br> AR = ar -r<br>-DFLAGS = -D__AIX -D__ESSL -D__FFTSG -D__FFTESSL<br>+DFLAGS = -WF,-D__AIX,-D__ESSL,-D__FFTSG,-D__FFTESSL<br> CPPFLAGS = -C $(DFLAGS) -P -traditional<br>
-FCFLAGS = -O3 -qstrict -q64 -qarch=pwr5 -qcache=auto -qmaxmem=-1 -<br>qtune=pwr5<br>+FCFLAGS = -O2 -qstrict -q64 -qarch=pwr5 -qcache=auto -qmaxmem=-1 -<br>qtune=pwr5 $(DFLAGS)<br>+FCFLAGS2 = -O0 -qstrict -q64 -qarch=pwr5 -qcache=auto -qmaxmem=-1 -<br>
qtune=pwr5 $(DFLAGS)<br> LDFLAGS = $(FCFLAGS) -L/apps/lapack-3/64/lib<br><br>-LIBS = -llapack_ppc64 -lessl /opt/ibmcmp/xlmass/4.3/lib64/<br>libmass_64.a<br>+LIBS = $(HOME)/cp2k/lapack-lite-3.1.1/lapack_RS6K.a -lessl<br>
+CPPSHELL = -WF,-D__COMPILE_ARCH="\"$(ARCH)\"",-D__COMPILE_DATE="\"$<br>(shell date)\"",-D__COMPILE_HOST="\"$(shell hostname)\"",-<br>D__COMPILE_LASTCVS="\"$(shell tail -n1 $(SRCDIR)/CVS/Entries)\""<br>
<div class="Ih2E3d"><br> OBJECTS_ARCHITECTURE = machine_aix.o<br></div>+<br>+### To speed up compilation time ###<br>+cp2k_runs.o: cp2k_runs.F<br>+ $(FC) -c $(FCFLAGS2) $<<br>+f77_interface.o: f77_interface.F<br>
+ $(FC) -c $(FCFLAGS2) $<<br>+<br>+md_run.o: md_run.F<br>+ $(FC) -c $(FCFLAGS2) $<<br>+<br>+geo_opt.o: geo_opt.F<br>+ $(FC) -c $(FCFLAGS2) $<<br>+cp_lbfgs_optimizer_gopt.o: cp_lbfgs_optimizer_gopt.F<br>
+ $(FC) -c $(FCFLAGS2) $<<br>+<br>+qmmm_init.o: qmmm_init.F<br>+ $(FC) -c $(FCFLAGS2) $<<br>+<br>+mc_ensembles.o: mc_ensembles.F<br>+ $(FC) -c $(FCFLAGS2) $<<br>+mc_types.o: mc_types.F<br>+ $(FC) -c $(FCFLAGS2) $<<br>
+mc_moves.o: mc_moves.F<br>+ $(FC) -c $(FCFLAGS2) $<<br>+<br>+pint_types.o: pint_types.F<br>+ $(FC) -c $(FCFLAGS2) $<<br>+<br>+nddo_methods.o: nddo_methods.F<br>+ $(FC) -c $(FCFLAGS2) $<<br>+<br>
<br>compilation went fine and the resulting executable<br>works nicely after raising the stack size limit via<br>ulimit -s unlimited (in tcsh you need: limit statcksize unlimited).<br><br>the machine has no MPI (well, it has but that is for compiling<br>
BG/L executables), but i'll try to get a parallel executable<br>by compiling openmpi for myself (it is a nice and underutilized<br>4cpu node with 16GB memory....).<br><br>hope this helps, more later...<br>
<div>
<div></div>
<div class="Wj3C7c"><br>axel.<br><br>