octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Octave 3.6.1 mingw for windows - updated


From: Sébastien Villemot
Subject: Re: Octave 3.6.1 mingw for windows - updated
Date: Fri, 16 Mar 2012 17:04:54 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

nitnit <address@hidden> writes:

> I don't have any idea about how to avoid the openblas crashes you are
> experiencing. I has also experienced  crashes on some XP machines (with
> "older" pentium cpus) I have tested with openblas while the modern cpus with
> win7 where much more stable. I didn't perform many tests with the
> atlas-3.8.4 based dlls.
>
> I do not know whether these crashes were octave faults or openblas faults.
>
> There are also some openblas dlls manually tuned for specific cpu
> architecture which installers may try in case the auto-detection mechanism
> of the default openblas doesn't work properly but I think that the
> atlas-3.8.4 tuned for ht-pentium may be the best general solution and even
> think (depending on more testing and feedback) about making it the default
> one in next releases.

Since I don’t have the time to investigate the OpenBlas failure, I
regenerated the installer with atlas-3.8.4 for HT-pentium as the
default. The user can still change it manually by copying the right DLL
file.

The installer is available there, in case you want to put it on the
Octave-Forge Sourceforge:

 http://www.dynare.org/octave/Octave3.6.1_gcc4.6.2_20120303-setup.exe

I attach to this email the NSIS script and a shell script that make it
possible to recreate the installer.

Jordi: I’m sorry, I left the page asking for acceptance of the GPL. I
read you email too late. Will do better next time :)

Best,
#!/bin/bash

wget -O Octave3.6.1_gcc4.6.2_20120303.7z 
http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/Octave%203.6.1%20for%20Windows%20MinGW%20installer/Octave3.6.1_gcc4.6.2_20120303.7z/download
7z x -oOctave3.6.1_gcc4.6.2_20120303 Octave3.6.1_gcc4.6.2_20120303.7z

wget -O Octave3.6.1_gcc4.6.2_pkgs_20120303.7z 
http://sourceforge.net/projects/octave/files/Octave%20Windows%20binaries/Octave%203.6.1%20for%20Windows%20MinGW%20installer/Octave3.6.1_gcc4.6.2_pkgs_20120303.7z/download
7z x -oOctave3.6.1_gcc4.6.2_pkgs_20120303 Octave3.6.1_gcc4.6.2_pkgs_20120303.7z

wget http://download.tuxfamily.org/notepadplus/5.9.8/npp.5.9.8.bin.minimalist.7z
7z x -onpp.5.9.8.bin.minimalist npp.5.9.8.bin.minimalist.7z

wget http://www.gnu.org/licenses/gpl.txt

cat >> 
Octave3.6.1_gcc4.6.2_20120303/Octave3.6.1_gcc4.6.2/share/octave/3.6.1/m/startup/octaverc
 <<EOF
## check for notepad++ editor

npp_path = fullfile( octave_config_info("prefix"), "tools", "notepad++" );
if( exist(npp_path,"dir") )
   EDITOR(regexprep(fullfile( npp_path, "notepad++.exe"), '\\', '\\'));
   edit("mode","async");
endif
clear npp_path
EOF

rm -rf 
Octave3.6.1_gcc4.6.2_20120303/Octave3.6.1_gcc4.6.2/mingw32/libexec/gcc/mingw32/{4.3.3-dw2,4.4.0,4.5.0,4.5.2,4.6.1}

cp 
Octave3.6.1_gcc4.6.2_20120303/Octave3.6.1_gcc4.6.2/bin/libblas.dll.atlas-3.8.4_ht-pentium
 Octave3.6.1_gcc4.6.2_20120303/Octave3.6.1_gcc4.6.2/bin/libblas.dll

makensis octave.nsi

Attachment: octave.nsi
Description: Binary data


> Regarding previous mingw octave releases, both 3.4.3 (20111025) and 3.6.0
> (20120128) have atlas-3.9.19 (tuned by Tatsuro for modern core i5) as a
> default. This atlas is also know to be less stable than the atlas-3.8.4
> based dlls of the recent 3.6.1 mingw ditsribution.
>
> Nitzan
>
>
> Sébastien Villemot wrote
>> 
>> Hi,
>> 
>> Note that I can't use the Octave/MSVC installer because I cross-compile
>> everything from my Debian GNU/Linux box (MSVC and MinGW are
>> ABI-incompatible when it comes to C++ code).
>> 
>> The NSIS is ready, but I am facing a issue that I would like to solve
>> before distributing it.
>> 
>> When I run Dynare using this version of Octave/MinGW, I experience a
>> crash of Octave. I tracked it down to OpenBLAS: when instead I use ATLAS
>> tuned for HT-pentium, the crash disappears. This has been replicated on
>> two Windows XP boxes (one being a virtual machine).
>> 
>> I therefore intend to change the default BLAS implementation in the NSIS
>> installer to be the ATLAS one, with the possibility of manually changing
>> this at install time (I don't have the resources to do CPU detection as
>> was done in the Octave 3.2.4 installer).
>> 
>> Do you have any better idea? I would be happy to use OpenBLAS, but
>> obviously it is not suitable in the current state for my Dynare users.
>> 
>> BTW, can you tell me what implementation of BLAS was the default for
>> your Octave/MinGW 3.4.3 and 3.6.0 packages (my understanding is that it
>> was not OpenBLAS).

-- 
Sébastien Villemot
Researcher in Economics & Debian Maintainer
http://www.dynare.org/sebastien
Phone: +33-1-40-77-84-04 - GPG Key: 4096R/381A7594

Attachment: pgp64xMe3alyS.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]