Hi John,
I'm not quite sure what happened, but we've just recompiled the mex files again and things are now working. Thankyou for your time, I'm now a happy little camper.
Mark
-----Original Message-----
From: John Ashburner [mailto:[log in to unmask]]
Sent: Friday, 11 January 2008 11:16 PM
To: Mark Griffin
Cc: [log in to unmask]
Subject: Re: [SPM] Too many images
I am quite surprised that it was working on one machine, and then
mysteriously stopped working on another. The problem is not to do with not
having enough memory. It appears to be a result of more than one image
handle being passed to spm_bsplinc.mex*. Is the HPC a 64 bit computer? What
version of MATLAB are you using?
If the mex files have been recompiled, then maybe there was some issue with
the compilation. If you compiled the mex files yourself, was the new
-largeArrayDims flag set? If so, then this could cause problems because the
SPM C source code defines dimensions of matrices etc as "int", whereas if
"-largeArrayDims" is used, then they would be defined as "size_t". On a 64
bit computer, this would not be the same as "int".
Best regards,
-John
On Friday 11 January 2008 05:20, you wrote:
> Thanks John. Following your email I reinstalled spm5.tar.gz and
> updates_1048.tar.gz. I now get the error messages
>
> --------------------------
> Running "Realign: Estimate & Reslice"
>
> Error running job: Too many images.i
> In file "/home/griffimp/matlab/spm5/spm_realign.m" (v1030), function
> "smooth_vol" at line 398. In file
> "/home/griffimp/matlab/spm5/spm_realign.m" (v1030), function
> "realign_series" at line 202. In file
> "/home/griffimp/matlab/spm5/spm_realign.m" (v1030), function "spm_realign"
> at line 115. In file "/home/griffimp/matlab/spm5/spm_config_realign.m"
> (v751), function "estwrite_fun" at line 420. --------------------------
>
>
>
> -----Original Message-----
> From: John Ashburner [mailto:[log in to unmask]]
> Sent: Friday, 11 January 2008 3:45 AM
> To: Mark Griffin; [log in to unmask]
> Subject: Re: [SPM] Too many images
>
> I notice that you are using a very old version of SPM5. Perhaps the
> problem may be solved if you update to the latest release (by downloading
> and unpacking the updates). Perhaps the version you had working smoothly
> on your PC was more up to date.
>
> Best regards,
> -John
>
> On Wednesday 09 January 2008 05:16, Mark Griffin wrote:
> > Hi All,
> >
> > I'm currently migrating from using SPM on my PC to a high-performance
> > computer. As a result I manage to get the same error message irrespective
> > of whatever job I try and submit to the HPC. It seems to be originating
> > from the matlab routine spm_bspline.mex (and hence I can't trace it back
> > to a single line of code). Does anyone have any ideas on how to resolve
> > this?? I thought that this might mean that I'm trying to use more memory
> > than I currently have available in matlab, but I get this error message
> > even when I'm only trying to process five frames of data.
> >
> > Mark
> >
> >
> >
> > --------------------------
> > Running "Realign: Estimate & Reslice"
> >
> > Error running job: Too many images.i
> > In file "/home/griffimp/matlab/spm5/spm_realign.m" (v433),
> > function "smooth_vol" at line 398.
> > In file "/home/griffimp/matlab/spm5/spm_realign.m" (v433),
> > function "realign_series" at line 202.
> > In file "/home/griffimp/matlab/spm5/spm_realign.m" (v433),
> > function "spm_realign" at line 115.
> > In file "/home/griffimp/matlab/spm5/spm_config_realign.m" (v751),
> > function "estwrite_fun" at line 420.
> > --------------------------
|