[hpx-users] equivalent of firstprivate

2016-09-11 Thread Riccardo Rossi
any clarification or pointer to examples regards Riccardo -- *Riccardo Rossi* PhD, Civil Engineer member of the Kratos Team: www.cimne.com/kratos Tenure Track Lecturer at Universitat Politècnica de Catalunya, BarcelonaTech (UPC) Full Research Professor at International Center for Numerical

Re: [hpx-users] equivalent of firstprivate

2016-09-11 Thread Riccardo Rossi
te = nelements; > // ... > ++my_private; // modifies instance for this iteration only. > }); > > Things become a bit more interesting if you need reductions. Please see > the linked document above for more details, but here is a simple example > (taken from that paper

Re: [hpx-users] equivalent of firstprivate

2016-09-12 Thread Riccardo Rossi
ements; > > > }); > > > > > > Please don't be fooled however that this might give you one variable > > > instance per iteration. HPX runs several iterations 'in one go' > > (depending > > > on the partitioning, very much like openmp), so you wil

Re: [hpx-users] equivalent of firstprivate

2016-09-16 Thread Riccardo Rossi
: this is not doing the work of the "thread_local" keyword? I guess current limitations of the compilers do not allow that ... so take this as a forward_looking question thanks again for your time and patience Riccardo On Mon, Sep 12, 2016 at 5:18 PM, Riccardo Rossi wrote: > Ok, >

Re: [hpx-users] equivalent of firstprivate

2016-09-17 Thread Riccardo Rossi
whole get of the program, which is definitely an unwanted side effect. I guess this proves that my third question was indeed stupid, so sorry for the noise Regards Riccardo > > Thanks! > Regards Hartmut > --- > http://boost-spirit.com > http://stellar.cct.ls

[hpx-users] how to atomically update non-atomic data

2016-09-27 Thread Riccardo Rossi
that the code will work portably. how could i do this effectively using hpx? regards Riccardo -- *Riccardo Rossi* PhD, Civil Engineer member of the Kratos Team: www.cimne.com/kratos Tenure Track Lecturer at Universitat Politècnica de Catalunya, BarcelonaTech (UPC) Full Research Professor

Re: [hpx-users] how to atomically update non-atomic data

2016-10-09 Thread Riccardo Rossi
team (i learnt recently that a variation of my concern is considered as a blocker for porting the linux kernel to c11), so it may be given priority. regards Riccardo On Tue, Sep 27, 2016 at 10:29 PM, Riccardo Rossi wrote: > Dear list, > > I have a conceptual trouble with atomics (a

[hpx-users] help with simple dataflow example

2016-12-06 Thread Riccardo Rossi
Dear list, i have been toying a bit with hpx, and i am currently attempting to make a minimal usage of dataflow. unfortunately i do not get to compile a simple code (which follows) -- *Riccardo Rossi* PhD, Civil Engineer member of the Kratos Team: www.cimne.com/kratos Tenure Track

[hpx-users] the simple code of previous message...

2016-12-06 Thread Riccardo Rossi
any help in understanding why this does not compile would be very welcome regards Riccardo //[hello_world_client_getting_started #include #include #include #include #include #include #include #include #include #include #include //compile with //g++ -std=c++14 -fPIC coloring.cpp -o col

Re: [hpx-users] the simple code of previous message...

2016-12-06 Thread Riccardo Rossi
" i wouldn't mind defining them as int and passing them the color they represent regards Riccardo -- *Riccardo Rossi* PhD, Civil Engineer member of the Kratos Team: www.cimne.com/kratos Tenure Track Lecturer at Universitat Politècnica de Catalunya, BarcelonaTech (UPC) Full

[hpx-users] [SOLVED] the simple code of previous message... but now UNEXPECTED RESULTS

2016-12-08 Thread Riccardo Rossi
Dear List, indeed the compilation problem was my bad, as Hartmut suggested a wrong mixing between int and future corrected code goes at the end. one strange thing is that i had to use //this does compile work_items[i] = hpx::dataflow(hpx::launch::async, &do_work, i, item_

[hpx-users] [SOLVED] the simple code of previous message...

2016-12-08 Thread Riccardo Rossi
it works. embarassing error of my side. sorry for the noise and thank you. Riccardo -- *Riccardo Rossi* PhD, Civil Engineer member of the Kratos Team: www.cimne.com/kratos Tenure Track Lecturer at Universitat Politècnica de Catalunya, BarcelonaTech (UPC) Full Research Professor at

[hpx-users] Attempting to do sparse triangular solve

2016-12-08 Thread Riccardo Rossi
able to do it succesfully any help would be great cheers Riccardo -- *Riccardo Rossi* PhD, Civil Engineer member of the Kratos Team: www.cimne.com/kratos Tenure Track Lecturer at Universitat Politècnica de Catalunya, BarcelonaTech (UPC) Full Research Professor at International Center for

Re: [hpx-users] Attempting to do sparse triangular solve

2016-12-09 Thread Riccardo Rossi
. not a big deal for me (just downgraded to 1.62) but i thought you may want to know. thanks *Riccardo Rossi* PhD, Civil Engineer member of the Kratos Team: www.cimne.com/kratos Tenure Track Lecturer at Universitat Politècnica de Catalunya, BarcelonaTech (UPC) Full Research Professor at

[hpx-users] [SOLVED] Attempting to do sparse triangular solve

2016-12-10 Thread Riccardo Rossi
: work_items) towait.push_back(it.second); hpx::wait_all(towait); std::cout << "parallel futurized result is " << std::endl; for( auto it : xparallel) std::cout << it << std::endl; return hpx::finalize(); // Initiate shutdown of the

Re: [hpx-users] [SOLVED] Attempting to do sparse triangular solve

2016-12-11 Thread Riccardo Rossi
cuted when 1 is done > > dependencies[3].insert({2}); //can be executed when 2 is done > > dependencies[4]; //no dependencies > > dependencies[5].insert({0,1}); //can be executed when both 0 and 1 > are > > done > > > > > > //here

Re: [hpx-users] [SOLVED] Attempting to do sparse triangular solve

2016-12-12 Thread Riccardo Rossi
a.m., "Andreas Schäfer" wrote: Hey Riccardo, On 11:26 Sat 10 Dec , Riccardo Rossi wrote: > i finally managed to make my futurized sparse triangular solver to work. > over the next days i'll try it for performance, but for this i'll need to > develop a blocked ver