Re: How to optimize for speedy calcs?
On Fri, May 05, 2000 at 10:12:16AM -0500, Brendel, Rob wrote:
> Hi -
>
> I've recently installed Debian 2.1 on my desktop machine (Pentium Pro 200,
> 64 MB RAM, 64 MB swap), dual-booting with WinNT. I made the switch to use
> Scilab under Linux for the easy linking to Fortran object files. (Showing
> my age...)
>
> One problem: My Scilab code runs about half as fast in Linux as it does in
> WinNT. This is for identical Scilab-only code (no linking) on the identical
> machine. How can I speed things up? In both OS's I installed binaries for
> Pentium machines, but compiling from source is an option for the Linux port
> of Scilab. Would that make any difference?
>
I read, that there was a problem with data alignment in the Scilab under
Linux. For details read:
http://x32.deja.com/getdoc.xp?AN=589930016&search=thread&CONTEXT=957862085.2010841139&HIT_CONTEXT=957861990.2011627534&hitnum=1
Or enter the dejanews and search for "+Scilab +alignment" in the complete
archive.
To summarize it shortly - you need to add the -malign-double option
in fortran compiler options (the FC_OPTIONS variable).
--
HTH
Wojciech M. Zabolotny
http://www.ise.pw.edu.pl/~wzab <--> wzab@ise.pw.edu.pl
http://www.verilog.net Find FREE Verilog compilers & simulators !
Reply to: