[Trilinos-Users] Compling on Mac OS X

Hoemmen, Mark mhoemme at sandia.gov
Sun Jan 15 18:56:25 MST 2012


Hi Einar,

On my 2011-model Mac, running OS X 10.7.2, I am able to build Trilinos without specifying the BLAS or LAPACK libraries.  Trilinos automatically detects the implementations in the Accelerate framework.  My script for running CMake doesn't say anything about the BLAS or LAPACK at all.  I'm not sure if this helps with the other linking problem, but it might be worth a try.  (Be sure to clear your CMakeCache.txt before rerunning CMake.)

mfh

----- Original Message -----
From: trilinos-users-request at software.sandia.gov [mailto:trilinos-users-request at software.sandia.gov]
Sent: Saturday, January 14, 2012 12:00 PM
To: trilinos-users at software.sandia.gov <trilinos-users at software.sandia.gov>
Subject: Trilinos-Users Digest, Vol 77, Issue 5

Send Trilinos-Users mailing list submissions to
	trilinos-users at software.sandia.gov

To subscribe or unsubscribe via the World Wide Web, visit
	http://software.sandia.gov/mailman/listinfo/trilinos-users
or, via email, send a message with subject or body 'help' to
	trilinos-users-request at software.sandia.gov

You can reach the person managing the list at
	trilinos-users-owner at software.sandia.gov

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Trilinos-Users digest..."


Today's Topics:

   1. warning messages with version 10.8.5 (Nikhil Kriplani)
   2. Compiling on Mac OS X (Einar Otnes)


----------------------------------------------------------------------

Message: 1
Date: Fri, 13 Jan 2012 14:36:31 -0500
From: "Nikhil Kriplani" <nmkripla at ncsu.edu>
Subject: [Trilinos-Users] warning messages with version 10.8.5
To: "Trilinos Mailing List" <trilinos-users at software.sandia.gov>
Message-ID:
	<CAPvs4NcnFQRWrnqAT4aR=0mPsUEaggEc8VUkEG=AZ-usk1Qpqw at mail.gmail.com>
Content-Type: text/plain; charset=windows-1252

Hi,

When compiling my code, I often get these warning messages (with gcc
4.6, Linux, 64-bit Ubuntu):

trilinos-10.8.5-Source/packages/teuchos/src/Teuchos_SerialDenseMatrix.hpp:
In copy constructor ?Teuchos::SerialDenseMatrix<OrdinalType,
ScalarType>::SerialDenseMatrix(const
Teuchos::SerialDenseMatrix<OrdinalType, ScalarType>&,
Teuchos::ETransp) [with OrdinalType = int, ScalarType = double]?:
trilinos-10.8.5-Source/packages/teuchos/src/Teuchos_SerialDenseVector.hpp:224:55:
  instantiated from ?Teuchos::SerialDenseVector<OrdinalType,
ScalarType>::SerialDenseVector(const
Teuchos::SerialDenseVector<OrdinalType, ScalarType>&) [with
OrdinalType = int, ScalarType = double]?
trilinos-10.8.5-Source/packages/teuchos/src/Teuchos_SerialDenseMatrix.hpp:450:1:
warning: base class ?class Teuchos::BLAS<int, double>? should be
explicitly initialized in the copy constructor [-Wextra]

It doesn't prevent compilation, and the code runs fine. I was just
wondering if this warning is issued because of the way I was using
Trilinos/Teuchos?

Thanks,
Nik




------------------------------

Message: 2
Date: Fri, 13 Jan 2012 23:13:33 +0000
From: "Einar Otnes" <eotnes at gmail.com>
Subject: [Trilinos-Users] Compiling on Mac OS X
To: trilinos-users at software.sandia.gov
Message-ID: <1D33A537-D60B-4B50-9F6C-8ADE97C56E27 at gmail.com>
Content-Type: text/plain; charset="us-ascii"

Dear Experts,
I have installed trilinos 10.8.5 on Mac OS X Lion apparently successfully getting the test programs (ctest) to run.
I have used the BLAS/LAPACK libraries which are provided from Apple. The way I included the BLAS and LAPACK libraries in the configuration file is a given below:

          -D TPL_BLAS_LIBRARIES:FILEPATH="-framework Accelerate" 
          -D TPL_LAPACK_LIBRARIES:FILEPATH="-framework Accelerate" 

This seems to work OK. 

My problem is that when I include the "Makefile.export.Trilinos" into the makefile for my ow implemented codes the Trilinos variable 
"Trilinos_TPL_LIBRARIES = -l-framework Accelerate -l-framework Accelerate /usr/lib/libpthread.dylib /usr/local/lib/libtbb.dylib" 
which makes my linking to fail due to the "-l-framework Accelerate". How can I fix this? Do I need to edit the Makefile.export.Trilinos file manually and remove the "-l"? Or is there a better way to fix this, i.e. setting the proper options when configuring the trilinos installation?

Thanks,
Einar Otnes

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20120113/0f0ed40b/attachment-0001.html 

------------------------------

_______________________________________________
Trilinos-Users mailing list
Trilinos-Users at software.sandia.gov
http://software.sandia.gov/mailman/listinfo/trilinos-users


End of Trilinos-Users Digest, Vol 77, Issue 5
*********************************************



More information about the Trilinos-Users mailing list