Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Mathematics
General TopicsResearchOperations ResearchStatisticsMathematical LogicNumerical AnalysisUndergraduate MathAlgebra HelpRecreational Math
Math Software
MapleMathematicaMATLABScilabSASSPSS

Math Forum / Math Software / MATLAB / July 2008



Tip: Looking for answers? Try searching our database.

ACML External Library in Fortran MEX File

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andrew Jardine - 17 Jul 2008 13:04 GMT
I'm trying to include the external ACML maths library in a
MEX file that I'm compiling.

The libraries are in /usr/local/acml/gnu64/lib/ and I have run:

export LD_LIBRARY_PATH=/usr/local/acml/gnu64/lib

in the shell prior to running MATLAB and trying to
compile/run.  My mexopts.sh contains

LDFLAGS = "-lacml"

When I try to run the mex file, however, I get the following:

>> [inter,actualCov,nk,kValues,time,timebase,kScale] =
mdp2(1,params,rand*100000)
??? Invalid MEX-file '/home/apj24/pmd/mdp2.mexa64':
/usr/local/acml/gnu64/lib/libacml.so: undefined symbol: do_lio.

Any help or advice would be greatly appreciated.

MATLAB information:

>> ver
-------------------------------------------------------------------------------------
MATLAB Version 7.6.0.324 (R2008a)
MATLAB License Number: 201031
Operating System: Linux 2.6.22-14-generic #1 SMP Tue Feb 12
02:46:46 UTC 2008 x86_64
Java VM Version: Java 1.6.0_01 with Sun Microsystems Inc.
Java HotSpot(TM) 64-Bit Server VM mixed mode
-------------------------------------------------------------------------------------
MATLAB                                              
Version 7.6        (R2008a)
Curve Fitting Toolbox                                
Version 1.2.1      (R2008a)
Image Processing Toolbox                            
Version 6.1        (R2008a)
MATLAB Compiler                                      
Version 4.8        (R2008a)
Signal Processing Toolbox                            
Version 6.9        (R2008a)
Spline Toolbox                                      
Version 3.3.4      (R2008a)
Statistics Toolbox                                  
Version 6.2        (R2008a)

Many thanks,

Andy.
Joachim - 17 Jul 2008 18:35 GMT
"Andrew Jardine" <apj24@removethis.cam.andthis.ac.uk> wrote
> I'm trying to include the external ACML maths library in a
> MEX file that I'm compiling.
[quoted text clipped - 16 lines]
>
> Any help or advice would be greatly appreciated.

Set BLAS_VERSION to /usr/local/acml/gnu64/lib/libacml.so and
LAPACK_VERBOSITY to 1.
Joachim - 17 Jul 2008 18:43 GMT
Also, I have -L/usr/local/acml/gnu64/lib in my makefile
(before -lacml).
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.