[AMBER-Developers] finding intel libs

From: Josh Berryman <the.real.josh.berryman.gmail.com>
Date: Fri, 18 Jan 2013 11:27:34 +0100

Hello, just a suggestion, I find that the regexp in

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:


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@@'`

AMBER-Developers mailing list
Received on Fri Jan 18 2013 - 02:30:02 PST
Custom Search