hello,
first of all thank you for replying so fast.
@Hartmut, i believe that all of my futures are
shared_future<void>
where do i define it int?
@Thomas, i tried to define
hpx::lcos::shared_future<void> do_work(*const* unsigned int color, *const*
std::vector<hpx::lcos::shared_future<void> >& dependencies)
(adding the const), but i still get the same error
what i ultimately would like to achieve is to perform in parallel a
triangular solve.
for now the code i am trying to write is much simpler than that:
i have 6 colors (identified as unsigned ints)
numbered as 0 1 2 3 4 5
i write as a helper for myself a dependency list
dependencies[0]; //first has no dependencies
dependencies[1].insert({0});
dependencies[2].insert({0,1});
dependencies[3].insert({0,2});
dependencies[4].insert({1});
dependencies[5].insert({0});
this tells that 1 depends on 0
2 depends on 0 and 1
3 depends on 0 and 2
4 depends on 1
5 depends on 0
what i (try) to do next is to define a
shared_future for the color 0, which depends on nothing, so that it can be
executed straight away
then a future for color 1, which depends on 0
and so forth.
for this i allocate the shared_futures in a map so that when i define
the do_work for color 2 i can recover the shared_future i constructed for 0
and 1
all the code compiles fine (on gcc5.4, with the compiler flags listed)
except for
the line in which i call the dataflow.
btw, my shared_futures should actually contain/return nothing so i defined
them as "void" 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 Research Professor at International Center for Numerical Methods in
Engineering (CIMNE)
C/ Gran Capità, s/n, Campus Nord UPC, Ed. B0, Despatx 102
(please deliver post to the porters of building C1)
08034 – Barcelona – Spain – www.cimne.com -
T.(+34) 93 401 56 96 skype: *rougered4*
<http://www.cimne.com/>
<https://www.facebook.com/cimne> <http://blog.cimne.com/>
<http://vimeo.com/cimne> <http://www.youtube.com/user/CIMNEvideos>
<http://www.linkedin.com/company/cimne> <https://twitter.com/cimne>
Les dades personals contingudes en aquest missatge són tractades amb la
finalitat de mantenir el contacte professional entre CIMNE i voste. Podra
exercir els drets d'accés, rectificació, cancel·lació i oposició,
dirigint-se a [email protected]. La utilització de la seva adreça de
correu electronic per part de CIMNE queda subjecte a les disposicions de la
Llei 34/2002, de Serveis de la Societat de la Informació i el Comerç
Electronic.
Imprimiu aquest missatge, només si és estrictament necessari.
<http://www.cimne.com/>
_______________________________________________
hpx-users mailing list
[email protected]
https://mail.cct.lsu.edu/mailman/listinfo/hpx-users