Dynare on Matlab 64 bit

Hi,

Has anybody tried to compile Dynare on a 64 bit Windows machine? Do the instructions at
dynare.org/DynareWiki/BuildingPreprocessor
still apply?
Thanks and regards

Gianni

Hi

Actually we (the Dynare developers) haven’t tried Dynare on Windows/64bits (but we did on Linux/64bits).

My understanding is that you don’t need to recompile the preprocessor; the 32-bits binary shipped with the official distribution of Dynare should work on Windows/64 (through backward compatibility).

But you may need to recompile the MEX files.

In that respect, the issue is not whether you have Windows/64 or Windows/32, but rather whether you have Matlab/64 or Matlab/32.
Of course, you cannot run Matlab/64 on Windows/32. But you can run Matlab/32 on Windows/64.

You can test your Matlab version by typing “computer” at the command line. If it returns “PCWIN”, then you have Matlab/32, and the official Dynare package should work directly (please let us know if it is not the case).

If “computer” returns “PCWIN64”, then you have Matlab/64. You then need to recompile the MEX files, by following these instructions:
dynare.org/DynareWiki/BuildingDlls
This has not been tested on Matlab/64 for Windows; we would be welcome any feedback on this point, and I am at your disposal to help you if something fails. And if you succeed in compiling the MEX files, we could include your binaries in the next release of Dynare.

Best

Sébastien

Hi Sébastien,

Thanks for your reply.

The question regarded Matlab 64 on Windows 64.

At the ECB we have several platforms (via a CITRIX server) that allow us to choose different MATLAB versions on different bits.

Running Dynare on Win32 works great.

Running Dynare on Win64 + MATLAT 32 OR MATLAB 64 gives the following error message (obviously same model, i.e. same location of folder and files)
for MATLAB/32 (ans similar for MATLAB/64 once replace [mex] with [m] as I have not compiled the mex yet)

[quote]dynare nawm_fin

Configuring Dynare …
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.

??? Error using ==> dynare at 96
DYNARE: preprocessing failed[/quote]

The path of MATLAB is

[quote]K:\R-Common\PeterMcA_GL\dynare\4.0.2\matlab\kronecker
K:\R-Common\PeterMcA_GL\dynare\4.0.2\matlab\gensylv
K:\R-Common\PeterMcA_GL\dynare\4.0.2\matlab\qz
K:\R-Common\PeterMcA_GL\dynare\4.0.2\matlab…\mex\2007b
K:\R-Common\PeterMcA_GL\dynare\4.0.2\matlab\AIM
\GIMECB01\lombard$\MATLAB
K:\R-Common\PeterMcA_GL\dynare\4.0.2\matlab
c:\program files\matlab\r2008a\toolbox\optim
K:\R-Common\PeterMcA_GL\dynare\4.0.0\matlab
j:\symbsolve4_lnx\lq_solution_4lnx\utilities
j:\symbsolve4_lnx\lq_solution_4lnx
J:\symbsolve4_lnx\symbsolve_4lnx
j:\optimization\solveopt
j:\optimization\sa
c:\program files\matlab\r2008a\toolbox\matlab\general
c:\program files\matlab\r2008a\toolbox\matlab\ops
c:\program files\matlab\r2008a\toolbox\matlab\lang
c:\program files\matlab\r2008a\toolbox\matlab\elmat
c:\program files\matlab\r2008a\toolbox\matlab\elfun
c:\program files\matlab\r2008a\toolbox\matlab\specfun
c:\program files\matlab\r2008a\toolbox\matlab\matfun
c:\program files\matlab\r2008a\toolbox\matlab\datafun
c:\program files\matlab\r2008a\toolbox\matlab\polyfun
c:\program files\matlab\r2008a\toolbox\matlab\funfun
c:\program files\matlab\r2008a\toolbox\matlab\sparfun
c:\program files\matlab\r2008a\toolbox\matlab\scribe
c:\program files\matlab\r2008a\toolbox\matlab\graph2d
c:\program files\matlab\r2008a\toolbox\matlab\graph3d
c:\program files\matlab\r2008a\toolbox\matlab\specgraph
c:\program files\matlab\r2008a\toolbox\matlab\graphics
c:\program files\matlab\r2008a\toolbox\matlab\uitools
c:\program files\matlab\r2008a\toolbox\matlab\strfun
c:\program files\matlab\r2008a\toolbox\matlab\imagesci
c:\program files\matlab\r2008a\toolbox\matlab\iofun
c:\program files\matlab\r2008a\toolbox\matlab\audiovideo
c:\program files\matlab\r2008a\toolbox\matlab\timefun
c:\program files\matlab\r2008a\toolbox\matlab\datatypes
c:\program files\matlab\r2008a\toolbox\matlab\verctrl
c:\program files\matlab\r2008a\toolbox\matlab\codetools
c:\program files\matlab\r2008a\toolbox\matlab\helptools
c:\program files\matlab\r2008a\toolbox\matlab\winfun
c:\program files\matlab\r2008a\toolbox\matlab\demos
c:\program files\matlab\r2008a\toolbox\matlab\timeseries
c:\program files\matlab\r2008a\toolbox\matlab\hds
c:\program files\matlab\r2008a\toolbox\matlab\guide
c:\program files\matlab\r2008a\toolbox\matlab\plottools
c:\program files\matlab\r2008a\toolbox\local
c:\program files\matlab\r2008a\toolbox\shared\controllib
c:\program files\matlab\r2008a\toolbox\matlabxl\matlabxl
c:\program files\matlab\r2008a\toolbox\compiler
c:\program files\matlab\r2008a\toolbox\control\control
c:\program files\matlab\r2008a\toolbox\control\ctrlguis
c:\program files\matlab\r2008a\toolbox\control\ctrlobsolete
c:\program files\matlab\r2008a\toolbox\control\ctrlutil
c:\program files\matlab\r2008a\toolbox\control\ctrldemos
c:\program files\matlab\r2008a\toolbox\shared\slcontrollib
c:\program files\matlab\r2008a\toolbox\curvefit\curvefit
c:\program files\matlab\r2008a\toolbox\curvefit\cftoolgui
c:\program files\matlab\r2008a\toolbox\shared\optimlib
c:\program files\matlab\r2008a\toolbox\database\database
c:\program files\matlab\r2008a\toolbox\database\dbdemos
c:\program files\matlab\r2008a\toolbox\database\vqb
c:\program files\matlab\r2008a\toolbox\exlink
c:\program files\matlab\r2008a\toolbox\finance\finance
c:\program files\matlab\r2008a\toolbox\finance\calendar
c:\program files\matlab\r2008a\toolbox\finance\findemos
c:\program files\matlab\r2008a\toolbox\finance\finsupport
c:\program files\matlab\r2008a\toolbox\finance\ftseries
c:\program files\matlab\r2008a\toolbox\finance\ftsdemos
c:\program files\matlab\r2008a\toolbox\finance\ftsdata
c:\program files\matlab\r2008a\toolbox\finance\ftstutorials
c:\program files\matlab\r2008a\toolbox\finderiv\finderiv
c:\program files\matlab\r2008a\toolbox\garch\garch
c:\program files\matlab\r2008a\toolbox\garch\garchdemos
c:\program files\matlab\r2008a\toolbox\ident\ident
c:\program files\matlab\r2008a\toolbox\ident\idobsolete
c:\program files\matlab\r2008a\toolbox\ident\idguis
c:\program files\matlab\r2008a\toolbox\ident\idutils
c:\program files\matlab\r2008a\toolbox\ident\iddemos
c:\program files\matlab\r2008a\toolbox\ident\idhelp
c:\program files\matlab\r2008a\toolbox\nnet
c:\program files\matlab\r2008a\toolbox\nnet\nncontrol
c:\program files\matlab\r2008a\toolbox\nnet\nndemos
c:\program files\matlab\r2008a\toolbox\nnet\nnet
c:\program files\matlab\r2008a\toolbox\nnet\nnet\nnanalyze
c:\program files\matlab\r2008a\toolbox\nnet\nnet\nncustom
c:\program files\matlab\r2008a\toolbox\nnet\nnet\nndistance
c:\program files\matlab\r2008a\toolbox\nnet\nnet\nnformat
c:\program files\matlab\r2008a\toolbox\nnet\nnet\nninit
c:\program files\matlab\r2008a\toolbox\nnet\nnet\nnlearn
c:\program files\matlab\r2008a\toolbox\nnet\nnet\nnnetinput
c:\program files\matlab\r2008a\toolbox\nnet\nnet\nnnetwork
c:\program files\matlab\r2008a\toolbox\nnet\nnet\nnperformance
c:\program files\matlab\r2008a\toolbox\nnet\nnet\nnplot
c:\program files\matlab\r2008a\toolbox\nnet\nnet\nnprocess
c:\program files\matlab\r2008a\toolbox\nnet\nnet\nnsearch
c:\program files\matlab\r2008a\toolbox\nnet\nnet\nntopology
c:\program files\matlab\r2008a\toolbox\nnet\nnet\nntrain
c:\program files\matlab\r2008a\toolbox\nnet\nnet\nntransfer
c:\program files\matlab\r2008a\toolbox\nnet\nnet\nnweight
c:\program files\matlab\r2008a\toolbox\nnet\nnguis
c:\program files\matlab\r2008a\toolbox\nnet\nnguis\nftool
c:\program files\matlab\r2008a\toolbox\nnet\nnguis\nntool
c:\program files\matlab\r2008a\toolbox\nnet\nnobsolete
c:\program files\matlab\r2008a\toolbox\nnet\nnresource
c:\program files\matlab\r2008a\toolbox\nnet\nnutils
c:\program files\matlab\r2008a\toolbox\signal\signal
c:\program files\matlab\r2008a\toolbox\signal\sigtools
c:\program files\matlab\r2008a\toolbox\signal\sptoolgui
c:\program files\matlab\r2008a\toolbox\signal\sigdemos
c:\program files\matlab\r2008a\toolbox\shared\spcuilib
c:\program files\matlab\r2008a\toolbox\shared\dastudio
c:\program files\matlab\r2008a\toolbox\splines
c:\program files\matlab\r2008a\toolbox\stats
c:\program files\matlab\r2008a\work[/quote]

I wouldn’t be surprised if the problem is with the installation of MATLAB as it is something very recent.

Best

Gianni

Hi

It seems indeed that the preprocessor fails to run.

Can you try to run it independently of Matlab, and report the result ?

Open a command window (by typing “cmd” in the “Run…” entry of your start menu), then run the preprocessor by typing something like:
“c:\dynare\4.0.2\matlab\dynare_m.exe”

Best

Sébastien

I’ll try via Matlab ! command (I don’t have access to a command window)

Gianni

Just to let you know, I have a 64 Bit Windows machine, but had to install the 32 bit matlab because the 64 bit one does not have the symbolic math toolbox that I needed. I installed the official dynare package and it is working just fine.

Cyntia

Hi Cyntia,

thanks for lettig me know. I also had to stick to 32bit Matlab for the same reason.

Apparently the new Matlab 64 for Linux has the symbolic toolbox (I’ve read that Maple has not provided a working kernel for Windows 64) but for the moment I only have the 2006 version

I’ll wait…

Best

Gianni