Re: QL latests with OpenMP 2.0 and MSVS 2012 (and CMake)

Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/QL-latests-with-OpenMP-2-0-and-MSVS-2012-and-CMake-tp15025p15026.html

Hi,
    strange that openmp should prohibit unsigned indexes in loops. It
has no such limitation in either gcc or clang. What error are you
getting?

Luigi


On Wed, Feb 26, 2014 at 4:08 PM, Joost Geerdink <[hidden email]> wrote:

> Hi,
>
> When I create my MSVS 2012 project via CMake and turn on compilation for
> OpenMP, compilation fails because a few implementations in QuantLib
> (lattice.hpp, ninepointlinearop.cpp, triplebandlinearop.cpp), use for loops
> with indices being of type Size, which is defined as size_t, which is
> unsigned. In the supplied project files the flag to compile for OpenMP is
> however not set, so this problem will not show up.
>
> Surely this can easily be fixed by changing the types to int? Shall I change
> and commit a patch? Or am I doing something wrong here?
>
> Kind regards,
>
> Joost B.W. Geerdink
>
> ------------------------------------------------------------------------------
> Flow-based real-time traffic analytics software. Cisco certified tool.
> Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
> Customize your own dashboards, set traffic alerts and generate reports.
> Network behavioral analysis & security monitoring. All-in-one tool.
> http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
> _______________________________________________
> QuantLib-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>



--
<https://implementingquantlib.blogspot.com>
<https://twitter.com/lballabio>

------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users