Many thanks for the tip!
I will try it as soon as possible!
Best wishes,
Lukas
Am 3 Oct 2006 um 9:11 hat Veronica S Smith geschrieben:
> Hi,
>
> There is a trick for recompiling mex files when you deal with 64 bit linux
> (thanks to Kiyotaka Nemoto for this valuable tip)
>
> First, check the "Makefile" file in your SPM directory. You should see the description below around line 60 (this is true for SPM2--not sure about SPM5)
>
> Linux.A64:
> # The '-fPIC' option is necessary to allow the linking process to complete.
> # '-march=x86-64' provides generic optimisations for both Opteron and 64 bit Xeon.
> # If the code is running on a 64 bit Xeon you can change '-march=x86-64' to '-march=nocona', when running on an Opteron, change it to 'march=opteron'.
> # Also possibly use '-march=k8' for 64 bit Athlon.
>
> make all SUF=mexa64 CC="gcc -03 -funroll-loops -fPIC -march=x86-64 -mfpath=sse"\
> MEX='mex COPTIMFLAGS='-03 -funroll-loops -fPIC -march=x86-64 -mfpath=sse'"
>
> You will want to modify the last 2 lines according to the CPU you use.
>
> Then you need to specify the option when rebuilding the mex files.
>
> Instead of typing "make", type
>
> # make clean.Linux.A64
> # make Linux.A64
>
> I hope this helps,
> Veronica
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Veronica S. Smith
> Research Scientist/Engineer
>
> phone: 206-616-7343
> fax: 206-616-7791
> University of Washington
> Neuroimaging Research Group
> Box 354940
> Seattle, WA 98105
>
>
> On Tue, 3 Oct 2006, WONG Ka Kwun Kelvin wrote:
>
> > Darren,
> >
> > I put the x64 windows dll up a while back. Let me know if it doesn't work.
> >
> > http://www.humanimaging.com/my_favorites.htm
> >
> > Kelvin
> >
> >
> >
> > On Mon, 2 Oct 2006, Darren G wrote:
> >
> >> You should search the spm list. I don't know if there has been any recent
> >> discussion about compiling spm for 64 bit Linux. Potentially you need to
> >> modify some of the compile options, but I don't know what those would be.
> >> Sorry. Perhaps someone else on the list has information about this.
> >>
> >> If anyone on the list has info about compiling SPM binaries for 64 bit
> >> windows I'd appreciate it.
> >>
> >> Darrenb
> >>
> >>> -----Original Message-----
> >>> From: [log in to unmask] [mailto:[log in to unmask]]
> >>> Sent: Monday, October 02, 2006 10:35 AM
> >>> To: [log in to unmask]
> >>> Subject: Re: [SPM] SPM5 @ Matlab 7.3 does not work
> >>>
> >>> Hi Darren,
> >>>
> >>> thanks for your answer. I will try it. Is there anything
> >>> special I should take care about, when trying to compile the mex-files?
> >>>
> >>> Best whishes,
> >>>
> >>> Lukas
> >>>
> >>> Am 29 Sep 2006 um 7:29 hat Darren G geschrieben:
> >>>
> >>>> sounds like you may have to recompile the mex files.
> >>>>
> >>>> darren
> >>>>
> >>>>
> >>>> ==============Original message text=============== On Fri,
> >>> 29 Sep 2006
> >>>> 3:47:56 am CDT Lukas Scheef wrote:
> >>>>
> >>>> Dear list members!
> >>>>
> >>>> I updated matlab to the current release (7.3) and found a strange
> >>>> behaviour. I can not open any images any more. I am using
> >>> SPM5 (latest
> >>>> release/update) . It seems that SPM5 cannot access any data
> >>> anymore.
> >>>> I have updated matlab due to its enhanced capabilities when using
> >>>> large data sets... and because SPM5 @ Matlab 7.2 crashed during the
> >>>> estimation procedure of a VBM- analysis of modulated hi res data...
> >>>>
> >>>> The startup of SPM5@ matlab 7.3 is fine - no errors, no warnings.
> >>>> When I try to display any image I get the message:
> >>>>
> >>>> Image "/xyz/fmri/Lukas.img" can not be resampled!
> >>>>
> >>>> (not matlab error occurs)
> >>>> I can open all my data without any problems with SPM5 using
> >>>> Matlab7.2 or MRIcro...
> >>>> My system: Linux CentOs, Matlab7.2 / 7.3 (64 bit)
> >>>>
> >>>> Many thanks in advance,
> >>>>
> >>>> Lukas
> >>>> ===========End of original message text===========
> >>>>
> >>>>
> >>>>
> >>>> --------------------------------
> >>>> Darren R. Gitelman, M.D.
> >>>> Cognitive Neurology and the Alzheimer's Disease Center Northwestern
> >>>> Univ., 320 E. Superior St., Searle 11-470, Chicago, IL 60611
> >>>> Voice: (312) 908-9023 Fax: (312) 908-8789
> >>>> --------------------------------
> >>>
> >>>
> >>
> >
|