JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for SPM Archives


SPM Archives

SPM Archives


SPM@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

SPM Home

SPM Home

SPM  2005

SPM 2005

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: Matlab version

From:

Dimitri Papadopoulos-Orfanos <[log in to unmask]>

Reply-To:

Dimitri Papadopoulos-Orfanos <[log in to unmask]>

Date:

Mon, 7 Mar 2005 14:58:05 +0100

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (124 lines)

Hi,

> The Linux machines in our department use SuSE, so we don't encounter the
> Matlab crashes that occur with RedHat.  I have therefore very little idea of

Matlab mainly relies on glibc, the system C library, which shouldn't be
very different from one Linux distribution to another. It also relies on
a few other system libraries, such as the thread library which is the
cause of the compatibility issues with Red Hat 9 and later, which
require setting LD_ASSUME_KERNEL.

Wether we're running SUSE or Red Hat shouldn't be very important. Apart
from the thread library issue, ideally only the version of glibc should
matter, and possibly the version of the X server and associated drivers.

What could be specific to our lab:
* We have dual-processor Linux workstations.
* We use Nvidia's proprietary drivers.
Anyone in the same situation and able to run Matlab without erratic errors?


> which workarounds we can incorporate into SPM in order to make Matlab run
> more smoothly on RedHat systems.  We don't get to see what lies under the
> hood of Matlab (and wouldn't have time to become as intimately acquainted
> with the Linux source code as would be necessary), so it's difficult to
> figure out why some fixes seem to help.  All I know is that changing the
> renderer of the figures sometimes seems to help.
>
> Most of SPM2 was developed using Matlab 6.0 and 6.1.  There was some testing
> using 6.5 (although not enough to notice the reshape bug).  Matlab 7 came
> along after SPM2 was released, and I have only just begun to figure out where
> the Matlab 7.0.1 problems occur on SuSE linux.  Most of the SPM2 functions
> should work under 5.3, although there are definately a few functions that
> don't (DICOM conversion etc).

Yes, the problem is that Matlab started officially supporting recent
Linux distributions only with Matlab 7.0.1. No version of Matlab prior
to 7.0.1 is supported by Mathworks on modern hardware (such as S-ATA disks).

We have no choice, either we run Matlab 7.0.1 and we get at least some
theoretical support form Mathworks, or we run Matlab 6.5 and we get no
support at all on any decent Linux distribution :-(

What we'll probably do is run SPM99 on Matlab 6.5 (I'll try convincing
our sysadmins to upgrade to 6.5.1 since some serious 6.5 bugs seem to
have been fixed in 6.5.1) and hopefully be able to fix all remaining
issues without help from Mathworks. We may need to recompile SPM, see below.

We'll run SPM2 on Matlab 7.0.1 and try to fix all remaining issues with
possible help from Mathworks. Please post any fixes that apply to SPM2 +
Matlab 7 as you find them.


> If you encounter Segmentation Faults, these are usually to do with Matlab and
> the operating system, rather than SPM itself.  Apart from possible bugs in
> the mexglx files released with SPM or the way that they were compiled, if
> there is a Segmentation Fault, then it's not our fault.

It looks like we have compiled SPM99 with Matlab 6.1 and are running it
under Matlab 6.5. Also we have compiled SPM2 with Matlab 6.5 (maybe even
6.1) and are running it under Matlab 7.0.1.

Mathworks support suggest this could be causing our problems. Is this
also your experience?

So we'll try recompiling SPM on a Linux distribution with a supported
compiler + the Matlab version that will be eventually used.


> I have no idea which Linux kernel is used by RedHat 9/Fedora, but according to
> the Mathworks, the following should work for 7.0.1:
> http://www.mathworks.com/support/sysreq/current_release/unix.html

Actually the version of the Linux kernel is not very important for
end-user programs. This list is just a list of systems Mathworks have
tested Matlab on, but I can see no technical reason why Matlab shouldn't
work on other systems or should rely on a specific kernel. More
important is the version of the glibc and the thread library.

Anyway, 7.0.1 is theoretically supported on Red Hat 9 and Fedora Core 2
according to this list.


> RedHat 9 seems to have a few problems with Matlab:
> http://www.mathworks.com/support/solutions/data/1-1AY16.html?solution=1-1AY16
> http://www.mathworks.com/support/solutions/data/1-QB3JW.html?solution=1-QB3JW
> http://www.mathworks.com/support/solutions/data/1-1A523.html?solution=1-1A523
> http://www.mathworks.com/support/solutions/data/1-1ATCE.html?solution=1-1ATCE
> http://www.mathworks.com/support/solutions/data/1-1BDU5.html?solution=1-1BDU5

Mmmh... These issues do not apply to a specific Linux distribution as
far as I can see. They are not specific to Red Hat, it's just that Red
Hat is/was more common among Matlab users and is/was perceived as the de
facto standard Linux distribution.

Note that some of the above "solutions" are plain wrong:
        http://www.mathworks.com/support/solutions/data/1-QB3JW.html
This one seems to imply that Red Hat 9 runs a 2.6 kernel or glibc 2.3.3.
That is not the case, Red Hat 9 runs a 2.4 kernel and glibc 2.3.2.


> A move to Fedora Core 2 is likely to throw up a different bunch of problems.
> Some of these may be solved by re-compiling the mex functions (making sure
> that a compatible compiler is used).  With such a wide number of different
> Linux versions appearing, it is difficult to ensure that a version of Matlab
> will run on all of them.

Mmmh... There are also a bunch of Solaris or Windows versions out there.
Ensuring Matlab works on a variety of platforms and keeps running
programs written under previous Matlab versions is what we're paying
Mathworks for - and we're paying a lot. At least I would expect Matlab
to bail out with a nice error message about incompatible compiler or
Matlab versions instead of crashing. I'm not saying it's easy, as Linux
does have its share of problems (compatibility used not to be a concern
for the GNU/Linux community as much as it has been for Microsoft or
commercial Unix vendors) but I expect Mathworks to deliver worth the
money they're given and they don't.

Anyway, we'll try recompiling the mex files as both Mathworks support
and you suggest, I'm confident this will at least improve the situation.
I'll keep you informed about our progress.

Dimitri

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

April 2024
March 2024
February 2024
January 2024
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
2006
2005
2004
2003
2002
2001
2000
1999
1998


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager