PETSC_LIB

Khan, Irfan irfan.khan at gatech.edu
Sun Aug 9 18:21:37 CDT 2009


"Relying on someone else to install PETSc for you is much like having  
someone else brush your teeth for you, possible, but not pleasant nor  
necessary."

:-)

Thank you Barry. I will try to see if I can install one by myself.
Irfan

----- Original Message -----
From: "Barry Smith" <bsmith at mcs.anl.gov>
To: "PETSc users list" <petsc-users at mcs.anl.gov>
Sent: Sunday, August 9, 2009 7:11:29 PM GMT -05:00 US/Canada Eastern
Subject: Re: PETSC_LIB


    If you know where they are installed then all you need to do is  
add them to the end of your link line when you make the executable in  
the makefile; it is not that "PETSc needs to recognize them" but your  
makefile needs to link against them.

    BUT: I highly recommend simply reconfiguring and making PETSc to  
use the latest stuff that was installed on the cluster. Better to  
install properly then hope that an old install keeps working with a  
new OS. It should not be difficult to install PETSc for your own use.  http://www.mcs.anl.gov/petsc/petsc-as/documentation/installation.html 
  Relying on someone else to install PETSc for you is much like having  
someone else brush your teeth for you, possible, but not pleasant nor  
necessary.


    Barry


On Aug 9, 2009, at 5:55 PM, irfan.khan at gatech.edu wrote:

> Thank you for the helpful suggestions. Suppose blas/lapack are  
> already installed on the cluster, what needs to be done in order for  
> petsc to recognise them without having to reconfigure and reinstall.
>
> Thank you
> Irfan
>
> ----- Original Message -----
> From: "Satish Balay" <balay at mcs.anl.gov>
> To: "PETSc users list" <petsc-users at mcs.anl.gov>
> Sent: Sunday, August 9, 2009 6:36:42 PM GMT -05:00 US/Canada Eastern
> Subject: Re: PETSC_LIB
>
> If the examples don't work [with the provided makefile] - you'll have
> to check with the person who built this petsc for you..
>
> Perhaps he needs to reinstall petsc - or just install blas/lapack for
> this to work..
>
> Satish
>
> On Sun, 9 Aug 2009, irfan.khan at gatech.edu wrote:
>
>> Thank for your reply Matt. I have tried to compile the src/dm/ao/ 
>> examples/tutorials/ex2.c using the makefile provided in same  
>> directory. However I received the same error, i.e.
>>
>> ld: cannot find -llapack
>> make: [ex2] Error 1 (ignored)
>>
>> Please note that I was able to compile and run this example  
>> successfully before the an update was done on the system.
>>
>> I wanted to get some idea as to the cause of this link error. This  
>> way I have something to ask the team at Purdue to look into.
>>
>> Thank you
>> Irfan
>>
>>
>> ----- Original Message -----
>> From: "Matthew Knepley" <knepley at gmail.com>
>> To: "PETSc users list" <petsc-users at mcs.anl.gov>
>> Sent: Friday, August 7, 2009 7:37:06 PM GMT -05:00 US/Canada Eastern
>> Subject: Re: PETSC_LIB
>>
>> The easiest way to link correctly is to use the PETSc makefile  
>> format:
>>
>> prog: file1.o file2.o
>> ${CLINKER} -o prog file1.o file2.o ${PETSC_SNES_LIB}
>>
>> Matt
>>
>>
>> On Fri, Aug 7, 2009 at 6:17 PM, < irfan.khan at gatech.edu > wrote:
>>
>>
>> Hi
>> I have been compiling and running my Petsc code on a TERAGRID  
>> cluster (Steele - Purdue) for sometime now. Recently they made  
>> changes to their operating system and also installed a clean  
>> version of Petsc (it now makes use of MPICH-2 instead of MPICH).
>>
>> However my make file is not successfully linking anymore. The error  
>> message I get is as follows.
>>
>> ld: cannot find -llapack
>> make: *** [te] Error 1
>>
>> I see that the blaslapack package is not available under  
>> "externalpackages" directory. I presume the link error is because  
>> the lapack library is included in the PETSC_LIB command and this  
>> library may not have been installed during PETSc installation. I  
>> say this because the make file works fine on my laptop where I have  
>> installed blas-lapack during PETSc installation. Please correct me  
>> if I am wrong.
>>
>> How can I resolve this link error? Kindly suggest.
>>
>>
>> Thank you
>> Irfan
>>
>
>
> -- 
> PhD Candidate
> G.W. Woodruff School of Mechanical Engineering
> Georgia Institute of Technology
> Atlanta, GA (30332)


-- 
PhD Candidate
G.W. Woodruff School of Mechanical Engineering
Georgia Institute of Technology
Atlanta, GA (30332)


More information about the petsc-users mailing list