normcdf and use_dll on 64-bit

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

normcdf and use_dll on 64-bit

Postby cfp » Tue May 18, 2010 8:07 pm

Hi,

If you try to run a model file containing "normcdf" with the "use_dll" option and the MSVC compiler, Dynare complains that:

"normcdf() function is not supported with USE_DLL option and MSVC compiler; use Cygwin compiler instead."

However, on 64-bit you have to use MSVC rather than Cygwin. I'm not sure I really understand where the Cygwin requirement is coming from, as Boost has very accurate normal C.D.F. functions (as do many other libraries).

Fixing this would be a great help.

Thanks,

Tom
cfp
 
Posts: 60
Joined: Mon Mar 15, 2010 9:18 pm

Re: normcdf and use_dll on 64-bit

Postby MichelJuillard » Sun May 23, 2010 12:29 pm

Hi Tom,

using Boost would imply that the user has to provide it, in addition to MSVC, and that the location of the BOOST library is known at the time of compiling the DLL, either passing to Dynare preprocessor or modifying the mexopt.bat file. This puts quite an additional configuration burden on the users. On 32-bit systems, using cygwin in that case, is just simpler. True, it doesn't solve the problem on 64-bit systems.

Best,

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Re: normcdf and use_dll on 64-bit

Postby cfp » Sun May 23, 2010 12:44 pm

You could always just steal the code from Boost, you're using compatible licenses I think.

Another possibility would be to at least support people who use the combination of ICC and Visual Studio. Even in MS mode ICC has a fully compatible math.h, called tgmath.h.

(If Mex is configured to use ICC and Dynare is configured to use MSVC then ICC does seem both to get used and to work (I think).)
cfp
 
Posts: 60
Joined: Mon Mar 15, 2010 9:18 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 8 guests