Static Libraries

General CULA Dense (LAPACK & BLAS) support and troubleshooting. Use this forum if you are having a general problem or have encountered a bug.

Static Libraries

Postby jrk1982 » Tue Sep 15, 2009 1:04 pm

Is it possible to put up static libraries for cula, in addition to dynamic libraries? These would be of great help, in integrating the cula libraries in an end user application, where we don't want the user to set the LD_LIBRARY_PATH etc.

Senior Developer, AccelerEyes
PhD Student, Dept. of ECE,
UC Santa Barbara
Posts: 26
Joined: Thu Aug 13, 2009 8:48 pm

Re:Static Libraries

Postby dan » Tue Sep 15, 2009 2:57 pm

Hi Karthik,

Releasing static libraries is not possible at this time. However, when shipping an end-user application, there are several approaches you can use to prevent the user from having to set any paths.

When running on windows, putting cula.dll and its dependencies in the same directory as a program's executable is enough to satisfy a run-time link.

On Linux, your program could be invoked through a helper script that sets the LD_LIBRARY_PATH appropriately before executing your program. In this way, from the user's perspective, the helper script is the executable, and they need not worry about any of the details as to how it is launched.

e.g. # (in the same directory as myprog.bin)
export LD_LIBRARY_PATH=`dirname $0`

I hope these answers provide a solution to your problem,

Posts: 61
Joined: Thu Jul 23, 2009 2:29 pm

Return to CULA Dense Support

Who is online

Users browsing this forum: No registered users and 2 guests