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: hpx-users-boun...@stellar.cct.lsu.edu <hpx-users-
> boun...@stellar.cct.lsu.edu> On Behalf Of Marco Ippolito
> Sent: Friday, April 5, 2019 12:00 PM
> To: hpx-users@stellar.cct.lsu.edu
> 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
hpx-users@stellar.cct.lsu.edu
https://mail.cct.lsu.edu/mailman/listinfo/hpx-users

Reply via email to