Marco, You might want to look at David Pfander's code demonstrating how to parallelize matrix multiplication using HPX efficiently here: https://github.com/DavidPfander-UniStuttgart/MatrixMultiplicationHPX.
HTH Regards Hartmut --------------- http://stellar.cct.lsu.edu https://github.com/STEllAR-GROUP/hpx > -----Original Message----- > From: [email protected] <hpx-users- > [email protected]> On Behalf Of Marco Ippolito > Sent: Friday, April 5, 2019 12:00 PM > To: [email protected] > Subject: [hpx-users] Asking help for understanding how to parallelize > simple tasks with HPX > > Hi all, > I'm trying to understand how to parallelize with HPX for the first time > simple tasks, but I do actually do not know how to proceed in a correct > way. So I ask you an help. > > In MatricesMultiplicationSerial.txt you find the matrices multiplication > function in serial mode: > the two matrices are split in "blocks", which are smaller matrices. > The corresponding smaller matrices are multiplied in serial (no > parallelization), and then the single results are put into a vector, and > composed, trhough the function "totalSumElemWise2D" in the bigger matrix. > > In MatricesMultiplicationAsyncParallel.txt I tried to asynchronously > parallelize the single small matrices multiplications, and then compose > the results into the bigger matrix. > > Did I lay out the parallelization in a correct way? For example, I'm not > so sure that unwrapping is necessary and also correctly used. > How to gather all the smaller matrices multiplications into a results > vector and then use the gathering function "totalSumElemWise2D" to > combine the results into the bigger matrix? > > Looking forward to your kind help. > Marco _______________________________________________ hpx-users mailing list [email protected] https://mail.cct.lsu.edu/mailman/listinfo/hpx-users
