Problem Matlab r2011a + CULA Dense R16a Free

Support for issues specific to the Windows operating systems.

Problem Matlab r2011a + CULA Dense R16a Free

Postby giorgio4672 » Wed Jan 30, 2013 3:55 am

Hi,
i'm trying to accellerate Matlab functions with CULA Link Interface but when I run svd command Matlab returns this error:

Code: Select all
>> tic;[u,s,v]=svd(a);toc;
cpu_id: x86 Family 6 Model 15 Stepping 11, GenuineIntel
libmwlapack: trying environment...
libmwlapack: loading cula_lapack_link.dll
libmwlapack: loaded cula_lapack_link.dll@00000000339A0000
libmwlapack: cula_lapack_link.dll is not a compatibility layer.
libmwlapack: load error: dlamc1
Caught "std::exception" Exception message is:
dlamc1
libmwlapack: unloading libraries


I'm working with Win 7 64bit, Matlab r2011a and Cula Dense r16a Free.

I have set the PATH enviroment variable with the correct path (C:\Program Files\CULA\R16\bin64\) and this is my batch file to run matlab:

Code: Select all
@echo off

REM Note that you must add your CULA bin path to your PATH variable for this
REM script to work. Ensure that you add the correct architecture for the version
REM of MATLAB you have installed

REM Place this file alongside matlab.bat in your MATLAB installation (typically
REM in the 'bin' folder). Once you have done that, simply type 'matlab_cula'
REM from a cmd promp to launch MATLAB with the CULA accelerated libraries.

SET LAPACK_VERSION=cula_lapack_link.dll
SET BLAS_VERSION=cula_lapack_link.dll

REM Uncomment this line if you want debugging messages from MATLAB
SET LAPACK_VERBOSITY=1

if "%PROCESSOR_ARCHITECTURE%" == "AMD64" set CULA_ILP64=1

REM Uncomment this line to create a debug log
set CULA_DEBUG_LOG=%USERPROFILE%\matlab_cula.log

set filename=%~f0
for %%F in ("%filename%") do set THISDIR=%%~dpF
"%THISDIR%matlab.exe"


Who knows what is/are the problem/s?
Thanks in advance.
giorgio4672
 
Posts: 3
Joined: Tue Jan 29, 2013 12:23 am

Re: Problem Matlab r2011a + CULA Dense R16a Free

Postby john » Mon Feb 04, 2013 11:08 am

CULA changed in R15 to targeting Matlab 2012.
john
Administrator
 
Posts: 587
Joined: Thu Jul 23, 2009 2:31 pm

Re: Problem Matlab r2011a + CULA Dense R16a Free

Postby giorgio4672 » Tue Feb 05, 2013 4:12 am

Thank you for the input.
I'll try to change the Matlab version.
giorgio4672
 
Posts: 3
Joined: Tue Jan 29, 2013 12:23 am

Re: Problem Matlab r2011a + CULA Dense R16a Free

Postby giorgio4672 » Tue Feb 05, 2013 1:58 pm

Perfect!!!
I have installed matlab r2012b and now no error appears when I run svd.
Thank you very much!!!

But there is a new problem.
I have launched svd command many times but seems that Matlab run built-in command rather than cula routine.
Matlab_cula.log contains these lines:

Code: Select all
cula info:  CPU library is lapackcpu.dll
cula info:  issuing to CPU (no GPU function available)
cula info:  work query returned 12597248
cula info:  work query returned 0
cula info:  done
cula info:  sgesdd ()
cula info:  issuing to CPU (no GPU function available)
cula info:  done
cula info:  sgesdd ()
cula info:  issuing to CPU (no GPU function available)
cula info:  work query returned 50360320
cula info:  work query returned 0
cula info:  done
cula info:  sgesdd ()
cula info:  issuing to CPU (no GPU function available)
cula info:  done


It seems the same problem it presented in this post:
http://www.culatools.com/forums/viewtopic.php?f=15&t=908&start=0

When I launch svd command without output variables, Matlab calls sgesvd routine. Infact, matlab_cula.log presents these lines:

Code: Select all
cula info:  sgesvd (N, N, 2048, 4096, 000000005C800060, 2048, 0000000070A1A840, 0000000000000000, 2048, 0000000000000000, 4096)
cula info:  issuing to GPU (over threshold)
cula info:  done


I'm interesting to the full svd.

Any suggestions?
giorgio4672
 
Posts: 3
Joined: Tue Jan 29, 2013 12:23 am

Re: Problem Matlab r2011a + CULA Dense R16a Free

Postby john » Wed Feb 06, 2013 6:58 am

You must be running the free version of CULA Dense - the premium version has gesdd. Matlab internally changed their SVD to use gesdd rather than gesvd in the 2012 series.
john
Administrator
 
Posts: 587
Joined: Thu Jul 23, 2009 2:31 pm


Return to Windows Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron