Matlab 2011b install

Support for issues specific to the Linux operating systems.

Matlab 2011b install

Postby metaheuristic » Thu Jul 26, 2012 12:52 pm

For the environmental variables I put this in my ~/.bashrc file:

Code: Select all
# Added below links after CULA install
export CULA_ROOT="/usr/local/cula"
export CULA_INC_PATH="$CULA_ROOT/include"
export CULA_BIN_PATH_32="$CULA_ROOT/bin"
export CULA_BIN_PATH_64="$CULA_ROOT/bin64"
export CULA_LIB_PATH_32="$CULA_ROOT/lib"
export CULA_LIB_PATH_64="$CULA_ROOT/lib64"

#This is for CULA testing purposes...
export CULA_ILP64=1
export LAPACK_VERBOSITY=1
export CULA_DEBUG_LOG=~/debug.log
export LAPACK_VERSION=$CULA_ROOT/lib64/libcula_lapack_link.so
export BLAS_VERSION=$CULA_ROOT/lib64/libcula_lapack_link.so

export LD_LIBRARY_PATH=$CULA_LIB_PATH_64:/usr/local/MCR/bin/glnxa64/:/usr/lib/gcc/x86_64-redhat-linux6E/4.4.6:/usr/lib64:/usr/lib:/usr/local/lib:/usr/local/nlopt/lib:/usr/local/MCR/v717/runtime/glnxa64:/usr/local/MCR/v717/bin/glnxa64:/usr/local/MCR/v717/sys/os/glnxa64:/usr/local/MCR/v717/sys/java/jre/glnxa64/jre/lib/amd64/native_threads:/usr/local/MCR/v717/sys/java/jre/glnxa64/jre/lib/amd64/server:/usr/local/MCR/v717/sys/java/jre/glnxa64/jre/lib/amd64


So I have installed the CUDA drivers from NIVIDIA correctly, but when I load up Matlab I get this:

Code: Select all
>> randn('seed',1);A=randn(4000,4000,'single');
>> tic;svd(A);toc
cpu_id: x86 Family 6 Model 13 Stepping 7, GenuineIntel
libmwlapack: trying environment...
libmwlapack: loading /usr/local/cula/lib64/libcula_lapack_link.so
libmwlapack: loaded /usr/local/cula/lib64/libcula_lapack_link.so@0x2483890
libmwlapack: /usr/local/cula/lib64/libcula_lapack_link.so is not a compatibility layer.
Elapsed time is 6.091577 seconds.
>>


Here are the results for CPU ONLY
Code: Select all
>> randn('seed',1);A=randn(4000,4000,'single');
>> tic;svd(A);toc
Elapsed time is 5.665194 seconds.
>>


Something seems wrong since I was expected a hug speedup, wondering if the libmwlapack errors give any insight?
metaheuristic
 
Posts: 6
Joined: Mon Jul 02, 2012 8:52 am

Re: Matlab 2011b install

Postby john » Thu Jul 26, 2012 2:24 pm

What are your GPU and CPU?
john
Administrator
 
Posts: 587
Joined: Thu Jul 23, 2009 2:31 pm

Re: Matlab 2011b install

Postby metaheuristic » Fri Jul 27, 2012 11:04 am

Our GPU is matched with yours (680):

Code: Select all
[wooster@aideveloper ~]$ lspci | grep NVIDIA
02:00.0 VGA compatible controller: NVIDIA Corporation GK104 [GeForce GTX 680] (rev a1)
02:00.1 Audio device: NVIDIA Corporation GK104 HDMI Audio Controller (rev a1)


And then when I

Code: Select all
less /proc/cpuinfo


I get this for the CPU

Code: Select all
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 45
model name      : Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz
stepping        : 7
cpu MHz         : 1200.000
cache size      : 12288 KB
physical id     : 0
siblings        : 12
core id         : 0
cpu cores       : 6
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 x2apic popcnt aes xsave avx lahf_lm ida arat xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid
bogomips        : 6400.30
clflush size    : 64
cache_alignment : 64
address sizes   : 46 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 45
model name      : Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz
stepping        : 7
cpu MHz         : 1200.000
cache size      : 12288 KB
physical id     : 0
siblings        : 12
core id         : 1
cpu cores       : 6
apicid          : 2
initial apicid  : 2
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
metaheuristic
 
Posts: 6
Joined: Mon Jul 02, 2012 8:52 am

Re: Matlab 2011b install

Postby kyle » Fri Jul 27, 2012 11:42 am

The bulk of the parallelism for SVD comes from the generation of the singular vectors.

Running [u,s,v] = svd(A) should show a more dramatic speed up. Calculating only the singular values is a more serial process.
kyle
Administrator
 
Posts: 301
Joined: Fri Jun 12, 2009 7:47 pm

Re: Matlab 2011b install

Postby jonfelch » Fri Jul 27, 2012 1:33 pm

I am having the exact same problem:

Hardware AMDx64, Redhat EL 6.3, Nvidia GTX 680 4.2 Drivers ('NVIDIA-Linux-x86_64-295.59.run'), Matlab 2011b

When I compile and test the examples in /usr/local/cula/examples, all of them work except for the linkInterface which provides the following error:

Solving a 8192x4096 system
Allocating Matrices
Querying Workspace
Error: Workspace Query Failed


Environment Variables:

LD_LIBRARY_PATH=/usr/local/cula/lib64:/usr/lib/gcc/x86_64-redhat-linux6E/4.4.6:/usr/lib64:/usr/lib:/usr/local/lib:/usr/local/nlopt/lib

CULA_DEBUG_LOG=/home/wooster/logs/cula-debug.log

CULA_BIN_PATH_32=/usr/local/cula/bin
CULA_LIB_PATH_32=/usr/local/cula/lib

CULA_BIN_PATH_64=/usr/local/cula/bin64
CULA_LIB_PATH_64=/usr/local/cula/lib64

CULA_ROOT=/usr/local/cula
CULA_INC_PATH=/usr/local/cula/include

BLAS_VERSION=/usr/local/cula/lib64/libcula_lapack_link.so
LAPACK_VERSION=/usr/local/cula/lib64/libcula_lapack_link.so
jonfelch
 
Posts: 1
Joined: Fri Jul 27, 2012 1:27 pm


Return to Linux Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron