<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font face="Ubuntu">Thank you Satish for your help.<br>
I followed you instructions, but I am getting some errors during
the compilation.<br>
I attached the python script I used to configure PETSc, and the
logs for both configure and make.<br>
<br>
<br>
Michele<br>
<br>
</font>
<div class="moz-cite-prefix">On 05/31/2013 05:08 PM, Satish Balay
wrote:<br>
</div>
<blockquote
cite="mid:alpine.LFD.2.03.1305311904020.6621@mcs.anl.gov"
type="cite">
<pre wrap="">The following is my configure command to build PETSc on a cray with
cray compilers:
</pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">
</pre>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<pre wrap="">$ cat reconfigure-arch-test-cray.py
#!/usr/bin/python
if __name__ == '__main__':
import sys
import os
sys.path.insert(0, os.path.abspath('config'))
import configure
configure_options = [
'--with-cc=cc',
'--with-clanguage=C++',
'--with-clib-autodetect=0',
'--with-cxx=CC',
'--with-cxxlib-autodetect=0',
'--with-fc=ftn',
'--with-fortranlib-autodetect=0',
'--with-x=0',
'FFLAGS=-F -em',
'LIBS=-L/opt/cray/cce/8.1.4/CC/x86-64/lib/x86-64/ -lcray-c++-rts -lcraystdc++ -lsupc++ -lgcc_eh',
'PETSC_ARCH=arch-test-cray',
]
configure.petsc_configure(configure_options)
<<<<<<<<<
And you might have to look for the recommended optimization flags - and use with:
--with-debgging=0 COPTFLAGS= FOPTFLAGS= CXXOPTFLAGS= etc.
And on BlueWaters - you would have to remove the following lines from
PETSC_ARCH/include/petscconf.h [before runing 'make all' to build the
libraries]
</pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">
</pre>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<pre wrap="">#ifndef PETSC_HAVE_GETPWUID
#define PETSC_HAVE_GETPWUID 1
#endif
<<<<<
Satish
On Fri, 31 May 2013, Michele Rosso wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Thanks, but I'd rather use Cray since only a small part of my code relies on
PETSc and, as suggested by the BW staff,
Cray-compiled code performs generally better on Cray system.
Michele
On 05/31/2013 02:57 PM, Jed Brown wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Michele Rosso <a class="moz-txt-link-rfc2396E" href="mailto:mrosso@uci.edu"><mrosso@uci.edu></a> writes:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
I confirm that
-pc_type gamg -pc_mg_cycle_type v -pc_gamg_agg_nsmooths 1
produces the correct shift in PETSc 3.4.
So my problem is solved. I will upgrade to 3.4 in my productive
machine installation.
It is a Cray machine (Blue Waters). Assuming I want to use the Cray
compiler, which options should I use for ./configure
for the installation.
</pre>
</blockquote>
<pre wrap="">Or the Intel compiler or GCC. PETSc should run at similar speed with
any. IIRC, Cray recommends the Intel compiler on their machines with
Intel CPUs. There are examples in config/examples/.
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<br>
</body>
</html>