Hi, I am using the GLB library in X10 2.4.3.2. I wonder if there is a way to wrap a user-defined class or struct with GLBResult. When I implemented something like public class MyResult extends GLBResult[MyData] { ... } where MyData is a struct that implements Arithmetic[MyData], I got errors in compilation as follows:
x10c++: In file included from $X10_HOME/x10.dist/stdlib/include/x10aux/network.h:18:0, from $X10_HOME/x10.dist/stdlib/include/x10rt.h:10, from $WORKSPACE/Main.h:4, from Main.cc:3: $X10_HOME/x10.dist/include/x10rt_cpp.h: In instantiation of ‘x10rt_red_type x10rt_get_red_type() [with T = MyData*]’: $X10_HOME/x10.dist/stdlib/include/x10/util/Team.h:2144:5: required from ‘static void x10::util::Team::nativeAllreduce(x10_int, x10_int, x10::lang::Rail<T>*, x10_int, x10::lang::Rail<T>*, x10_int, x10_int, x10_int) [with x10tp__T = MyData*; x10_int = int]’ $X10_HOME/x10.dist/stdlib/include/x10/util/Team.h:1922:62: required from ‘void x10::util::Team::allreduce(x10::lang::Rail<T>*, x10_long, x10::lang::Rail<T>*, x10_long, x10_long, x10_int) [with x10tp__T = MyData*; x10_long = long int; x10_int = int]’ $X10_HOME/x10.dist/stdlib/include/x10/glb/GLB.h:793:13: required from ‘void x10_glb_GLB__closure__8<x10tp__Queue, x10tp__R>::__apply() [with x10tp__Queue = Queue1*; x10tp__R = MyData*]’ $X10_HOME/x10.dist/stdlib/include/x10/glb/GLB.h:848:147: required from ‘x10::lang::VoidFun_0_0::itable<x10_glb_GLB__closure__8<Queue1*, MyData*> > x10_glb_GLB__closure__8<Queue1*, MyData*>::_itable’ $X10_HOME/x10.dist/stdlib/include/x10/glb/GLB.h:849:69: required from ‘x10aux::itable_entry x10_glb_GLB__closure__8<Queue1*, MyData*>::_itables [2]’ $X10_HOME/x10.dist/stdlib/include/x10/glb/GLB.h:768:60: required from ‘x10aux::itable_entry* x10_glb_GLB__closure__8<x10tp__Queue, x10tp__R>::_getITables() [with x10tp__Queue = Queue1*; x10tp__R = MyData*]’ Main.cc:340:89: required from here $X10_HOME/x10.dist/include/x10rt_cpp.h:65:79: error: ‘error’ is not a member of ‘MyData*’ x10c++: Non-zero return code: 1 -- Daisuke ISHII ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ X10-users mailing list X10-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/x10-users