Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: MATLAB segmentation violation on matrix multiplication
Date: Sat, 7 Nov 2009 07:38:03 +0000 (UTC)
Organization: UTexas Austin
Lines: 25
Message-ID: <hd384r$9vk$1@fred.mathworks.com>
References: <hd2l93$f06$1@fred.mathworks.com> <hd2oai$f1d$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257579483 10228 172.30.248.35 (7 Nov 2009 07:38:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 7 Nov 2009 07:38:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2081174
Xref: news.mathworks.com comp.soft-sys.matlab:583188


Hi James,

How do i find if i have both 32 bit and 64 bit installed?

Thanks
Aditya

"James Tursa" <aclassyguy_with_a_k_not_a_c@hotmail.com> wrote in message <hd2oai$f1d$1@fred.mathworks.com>...
> "Aditya Rawal" <aditya@cs.utexas.edu> wrote in message <hd2l93$f06$1@fred.mathworks.com>...
> > Here is my code:
> > 
> > clear;
> > clc;
> > v_temp1 = zeros(2,2);
> > 
> > A = [4 2 ; 2 4];
> > M_matrix = [1 1 ; 1 1];
> > C = A * M_matrix
> > 
> > Interestingly i get segmentation fault whenever i fire this code on a CPU cluster, but it ofcourse runs well on my local machine. I am sure there is some setup issue, but don't know what...
> > Another thing is that when i replace the multiplication operator with addition/subtraction, it works... 
> 
> Matrix multiplication calls a BLAS library function, whereas add/subtract do not. I suspect your cluster MATLAB is loading an incompatible version of the BLAS libraries to compute with, but I don't know how to fix your problem. Do you have mixed 64-bit and 32-bit versions installed?
> 
> James Tursa