Dear List,
this is a continuation of previous messages.
I am trying to do a sparse triangular solve using a CSR matrix.
the point is that some rows can be computed directly, while some others
need to wait
for the specific example i post
lines 0 4 5 can be computed independelty
while 1 must wait for 2
2 must wait for 1
3 must wait for 2
in a more general case a line may have to wait for multiple other lines to
be executed.
essentially what i am trying to do is to say that a given line must wait
for its dependencies before being processed.
I have been trying to achieve this all day without success.
My latest attempt is with a lambda, but the captured values at the moment
of running (in particular i) are not the ones when i launch it, which
essentially means that my usage must be wrong.
(and it definitely is, as in the version i post the dependencies on the
shared futures is not there)
essentially the function to futurize is the one on line 65 of
https://gist.github.com/RiccardoRossi/4adbdb29e1c94da8fefc4afdcf6b1e37
my guess is that knowning how to actually do it, the change to my code for
having it to run should be minimal ... but i am simply not 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 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