Re: [AMBER-Developers] finding intel libs

From: Jason Swails <jason.swails.gmail.com>
Date: Fri, 18 Jan 2013 07:46:49 -0500

On Fri, Jan 18, 2013 at 5:27 AM, Josh Berryman <
the.real.josh.berryman.gmail.com> wrote:

> Hello, just a suggestion, I find that the regexp in
> AmberTools/src/configure2:
>
> fl=`which ifort | sed -e 's.\(.*\)bin.\1lib.' -e 's.ifort..'`
>
> ...doesn't find the intel libraries on the cluster I'm using just now. The
> admins have put ifort and the associated libs in:
>
> /opt/apps/easybuild/software/ifort/2011.6.233/bin/intel64/ifort
> /opt/apps/easybuild/software/ifort/2011.6.233/compiler/lib/intel64/
>
> which seems reasonable enough, but breaks the regexp in two different
> ways.
>
> This two-line approach works for me, does anyone with more experience of
> this sort of thing see a reason not to commit it onto the main branch?
>
> ifhome=`which ifort | sed 's.\(.*\)bin\/.*.\1.'`
> fl=`find $ifhome -name libifcore.a | sed 's.\/libifcore.a..'`
>

I'm not sure why this was all necessary in the first place... Have you
sourced the scripts that set up your environment for the Intel compilers?
 Something like this:

. /opt/apps/easybuild/software/ifort/2011.6.233/bin/compilervars.sh intel64

or something to that effect. The problem if you _don't_ source those
scripts is that unless you link statically, you'll need to set
LD_LIBRARY_PATH to point to those libs anyway, yes? And what about icc in
your system? Is that in a different place?



>
> Josh
> _______________________________________________
> AMBER-Developers mailing list
> AMBER-Developers.ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber-developers
>



-- 
Jason M. Swails
Quantum Theory Project,
University of Florida
Ph.D. Candidate
352-392-4032
_______________________________________________
AMBER-Developers mailing list
AMBER-Developers.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber-developers
Received on Fri Jan 18 2013 - 05:00:03 PST
Custom Search