hello Thomas,

i rewrote the thing using pointers. however my final finding was that it was
needed to call the wait_all function otherwise the destructors of the
objects were called before the executing resulting in the strange behaviour
i was seeing

the remaining point is that it is not respecting the list of dependencies
as i hoped it would

code is here
https://gist.github.com/RiccardoRossi/622ad2b30bfd7d684f5b834ed57a491a

i would expect 0 4 5 to run immediately (and they do)
than 1 followed by 2(which depends on 1) followed by 3(which depends on 2)

instead i get the ordering
0 4 5 3 2 1

here goes the output of the file i posted

rrossi@Latitude-E5450:~/scratch$ ./coloring.exe
reference result is
1
-0.666667
0.533333
-0.457143
0
0

executing line :0
executing line :4
executing line :5
executing line :3
executing line :2
executing line :1
result is
1
-0.666667
0
0
0
0


any suggestion on how i am making this wrong? i guess at this point it must
be something really stupid. Strange thing is that i am calling .get on the
dependencies on line 82, and when i am running 3, it should block...

as a side (unrelated) note, i think hpx compilation is broken with the new
boost 1.63. 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 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

Reply via email to