Compilation Problem on demo directory.

26 views
Skip to first unread message

jl.gil...@gmail.com

unread,
Sep 24, 2015, 12:28:38 PM9/24/15
to nt2-dev
Dear NT2 team,

I'm working on radio algorithms parallelisation.

I'm trying to use NT2, looking for some DSEL features.

I encounter some problems when compiling the code in "demo" directory.

For instance, "mandelbrot" demo compilaiton gives the following result:
[..]
/home/gilbert/tools/NT2_Numscale/nt2/modules/core/sdk/include/nt2/core/functions/scalar/numel.hpp:58:65: error: no type named type in struct boost::fusion::result_of::value_at<const boost::fusion::iterator_range<boost::simd::at_iterator<const nt2::of_size_<-1l, -1l>, 2, 2>, boost::simd::at_iterator<const nt2::of_size_<-1l, -1l>, 2, 2> >, mpl_::int_<0> >
/home/gilbert/tools/NT2_Numscale/nt2/modules/core/sdk/include/nt2/core/functions/scalar/numel.hpp:59:65: error: no type named type in struct boost::fusion::result_of::value_at<const boost::fusion::iterator_range<boost::simd::at_iterator<const nt2::of_size_<-1l, -1l>, 2, 2>, boost::simd::at_iterator<const nt2::of_size_<-1l, -1l>, 2, 2> >, mpl_::int_<0> >
/home/gilbert/tools/NT2_Numscale/nt2/modules/core/sdk/include/nt2/core/functions/scalar/numel.hpp:65:64: error: no type named type in struct boost::fusion::result_of::value_at<const boost::fusion::iterator_range<boost::simd::at_iterator<const nt2::of_size_<-1l, -1l>, 2, 2>, boost::simd::at_iterator<const nt2::of_size_<-1l, -1l>, 2, 2> >, mpl_::int_<0> >

[..]

/home/gilbert/tools/NT2_Numscale/nt2/modules/core/sdk/include/nt2/core/utility/of_size.hpp:214:7: error: no matching function for call to  numel(nt2::details::result_of::pop_front_c<const nt2::of_size_<-1l, -1l>, 2>::type)
/home/gilbert/tools/NT2_Numscale/nt2/modules/core/sdk/include/nt2/core/utility/of_size.hpp:214:7: note: candidates are:
In file included from /home/gilbert/tools/NT2_Numscale/nt2/modules/core/sdk/include/nt2/core/functions/scalar/numel.hpp:12:0,
 
[..]
                 from /home/gilbert/tools/NT2_Numscale/nt2/modules/core/container/table/include/nt2/table.hpp:15,
                 from /home/gilbert/tools/NT2_Numscale/nt2/demo/mandelbrot/nt2/mandelbrot_nt2.cpp:10:
/home/gilbert/tools/NT2_Numscale/nt2/modules/core/sdk/include/nt2/core/functions/numel.hpp:54:1: note: template<class A0> decltype (nt2::tag::numel_::dispatch(boost::dispatch::default_site_t<A0>(), boost::dispatch::meta::hierarchy_of_t<const A0&>())(a0)) nt2::numel(const A0&)
/home/gilbert/tools/NT2_Numscale/nt2/modules/core/sdk/include/nt2/core/functions/numel.hpp:54:1: note:   substitution of deduced template arguments resulted in errors seen above
/home/gilbert/tools/NT2_Numscale/nt2/modules/core/sdk/include/nt2/core/functions/numel.hpp:60:1: note: template<class A0, class A1> decltype (nt2::tag::numel_::dispatch(boost::dispatch::default_site_t<A0>(), boost::dispatch::meta::hierarchy_of_t<const A0&>(), boost::dispatch::meta::hierarchy_of_t<const A1&>())(a0, a1)) nt2::numel(const A0&, const A1&)
/home/gilbert/tools/NT2_Numscale/nt2/modules/core/sdk/include/nt2/core/functions/numel.hpp:60:1: note:   template argument deduction/substitution failed:
In file included from /home/gilbert/tools/NT2_Numscale/nt2/modules/core/sdk/include/nt2/core/functions/scalar/extent.hpp:13:0,

               
Please find the actual file in attachment.

To be more precise my platform is:
OS:                            Linux centos 6
compiler:                    gcc (GCC) 4.7.2 20121015 (Red Hat 4.7.2-5)
boost lib version:         1.59

I will be grateful if someone could help me.

Thanks in advance.
JLG.

result_compilation_mandelbrot_demo_24092015

Joel FALCOU

unread,
Sep 24, 2015, 12:29:35 PM9/24/15
to nt2...@googlegroups.com
This bug is related to soem changes in Fusion in 1.58/1.59. We had a
workaround for 1.58 but it's not compatible with 1.59.

I'm gonna fix this real quick during the week-end.

On 24/09/2015 18:12, jl.gil...@gmail.com wrote:
> Dear NT2 team,
>
> I'm working on radio algorithms parallelisation.
>
> I'm trying to use NT2, looking for some DSEL features.
>
> I encounter some problems when compiling the code in "demo" directory.
>
> For instance, "mandelbrot" demo compilaiton gives the following result:
> /[..]
> /home/gilbert/tools/NT2_Numscale/nt2/modules/core/sdk/include/nt2/core/functions/scalar/numel.hpp:58:65:
> *error: no type named type in struct
> boost::fusion::result_of::value_at<const
> boost::fusion::iterator_range<boost::simd::at_iterator<const
> nt2::of_size_<-1l, -1l>, 2, 2>, boost::simd::at_iterator<const
> nt2::of_size_<-1l, -1l>, 2, 2> >, mpl_::int_<0> >*
> /home/gilbert/tools/NT2_Numscale/nt2/modules/core/sdk/include/nt2/core/functions/scalar/numel.hpp:59:65:
> *error: no type named type in struct
> boost::fusion::result_of::value_at<const
> boost::fusion::iterator_range<boost::simd::at_iterator<const
> nt2::of_size_<-1l, -1l>, 2, 2>, boost::simd::at_iterator<const
> nt2::of_size_<-1l, -1l>, 2, 2> >, mpl_::int_<0> >*
> /home/gilbert/tools/NT2_Numscale/nt2/modules/core/sdk/include/nt2/core/functions/scalar/numel.hpp:65:64:
> *error: no type named type in struct
> boost::fusion::result_of::value_at<const
> boost::fusion::iterator_range<boost::simd::at_iterator<const
> nt2::of_size_<-1l, -1l>, 2, 2>, boost::simd::at_iterator<const
> nt2::of_size_<-1l, -1l>, 2, 2> >, mpl_::int_<0> >*
>
> [..]
>
> /home/gilbert/tools/NT2_Numscale/nt2/modules/core/sdk/include/nt2/core/utility/of_size.hpp:214:7:
> *error: no matching function for call to
> numel(nt2::details::result_of::pop_front_c<const nt2::of_size_<-1l,
> -1l>, 2>::type)*
> /home/gilbert/tools/NT2_Numscale/nt2/modules/core/sdk/include/nt2/core/functions/scalar/extent.hpp:13:0,/
>
> Please find the actual file in attachment.
>
> To be more precise my platform is:
> OS: Linux centos 6
> compiler: gcc (GCC) 4.7.2 20121015 (Red Hat 4.7.2-5)
> boost lib version: 1.59
>
> I will be grateful if someone could help me.
>
> Thanks in advance.
> JLG.
>
> --
> You received this message because you are subscribed to the Google
> Groups "nt2-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to nt2-dev+u...@googlegroups.com
> <mailto:nt2-dev+u...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

jl.gil...@gmail.com

unread,
Sep 25, 2015, 5:08:13 AM9/25/15
to nt2-dev
Thanks a lot, Joël for your quick response.

To go a little bit further I would like to describe my objective:
 - I would like to build a DSEL in order to generate parallell tasks for different platform among, them there is "OpenMP".
 - Hence, I have some questions:
   - Is it possible to have some information (example/doc) about how to generate code for a target like "OpenMP" ?
   - Is it possible to have some information about how to use Workers/spawners to use them as intermediate elements to generate code for different targets ?

Thanks for your response.
JL Gilbert

Joel FALCOU

unread,
Sep 25, 2015, 8:37:00 AM9/25/15
to nt2...@googlegroups.com


On 25/09/2015 11:08, jl.gil...@gmail.com wrote:
> Thanks a lot, Joël for your quick response.
>
> To go a little bit further I would like to describe my objective:
> - I would like to build a DSEL in order to generate parallell tasks
> for different platform among, them there is "OpenMP".

OK

> - Hence, I have some questions:
> - Is it possible to have some information (example/doc) about how to
> generate code for a target like "OpenMP" ?

Well, currently, compilign with -fopenmp is enoguh to trigger oepNMP support

> - Is it possible to have some information about how to use
> Workers/spawners to use them as intermediate elements to generate code
> for different targets ?

Can you be more precise on this use case ?

jl.gil...@gmail.com

unread,
Sep 29, 2015, 12:10:43 PM9/29/15
to nt2-dev
Dear Joel,

I will give you more information about what we would like to do with skeleton...

In the meantime, we have to complete the installation with OpenMP target first.

1. Thanks to tell me in which branch I could update NT2, in order to fix the bug.
2. Thanks to tell me where I could find examples/tests, showing how to use NT2 ?

Regards,
JLG
Reply all
Reply to author
Forward
0 new messages