From: Gerd S. <in...@ge...> - 2013-10-01 14:31:08
|
Am Donnerstag, den 26.09.2013, 17:52 +0200 schrieb Davide Ramaglietta: > Hi, > > I'm sorry to bother you again. > I eventually got my asynchronous processor, thanks to your precious hints. > > I have now a new problem on which I'm stuck. I want to store a global state between all my processes (just an integer counter). > I followed the instructions that are in the "Netplex_advanced" documentation but when I try to get the value with Stats_var.get I get the following exception: > > Exception Invalid_argument("Marshal.from_size") > > I think the problem arises because the variable misses the initialization. > If the cause of the exception is actually this, my problem is that I don't know how to access to the variable. > > Any hint would be great. Yes, this looks like a missing initialization. You should ensure that Netplex_sharedvar.create_var is called once in every process (with param enc:true), before you try to get or set values. Gerd > > Thank you for your time and consideration, > Davide. > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk > _______________________________________________ > Ocamlnet-devel mailing list > Oca...@li... > https://lists.sourceforge.net/lists/listinfo/ocamlnet-devel > -- ------------------------------------------------------------ Gerd Stolpmann, Darmstadt, Germany ge...@ge... My OCaml site: http://www.camlcity.org Contact details: http://www.camlcity.org/contact.html Company homepage: http://www.gerd-stolpmann.de ------------------------------------------------------------ |