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 03:08:02 +0000 (UTC)
Organization: Boeing
Lines: 17
Message-ID: <hd2oai$f1d$1@fred.mathworks.com>
References: <hd2l93$f06$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257563282 15405 172.30.248.38 (7 Nov 2009 03:08:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 7 Nov 2009 03:08:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 756104
Xref: news.mathworks.com comp.soft-sys.matlab:583173


"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