Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8845333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:42:50+00:00 2026-06-14T11:42:50+00:00

I am new to Parallel Programming. I am trying to multiply two matrices. I

  • 0

I am new to Parallel Programming. I am trying to multiply two matrices. I have partitioned the problem as follows:

Let the operation be mat3 = mat1 x mat2
I am broadcasting the mat2 to all the processes in the communicator, and cutting out strips of rows of the mat1 and scattering them to the processes in the commnicator group. After all processes has the entire mat2 and the corresponding strips of mat1, they multiply the strip with mat2 and then I am using the gather operation with the local results of the process, and accumulate the entire result in the root process.

I wanted to know if there is a better problem partitioning to multiply two matrix in a general purpose computer.

My implementation is in OpenMPI.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T11:42:52+00:00Added an answer on June 14, 2026 at 11:42 am

    There is a variety of algorithms in the literature about Matrix Multiplication that can be extend to the MPI paradigm. For example:

    > 1Dsystolic [1] 
    > 2D-systolic, Cannon’s algorithm [2];
    > Fox’s algorithm [3];
    > Berntsen’s algorithm [4];
    > DNS algorithm [5].
    

    If you ignore the matrix proprieties (sparse ect), it basically resumes on how the data its distributed among the processes to minimize the synchronization and the load unbalance (the amount of work distributed among each process).

    In this recent work you can see two different data distribution approach and the comparison between them.

    papers:

    [1] Golub G.H and Van C.H L., “Matrix Computations.”,Johns Hopkins University Press, 1989.
    [2] Whaley R. C., Petitet A., Dongarra J. J., “Automated empirical optimizations of software and the ATLAS project” Parallel Computing 27, 1.2 (2001), 3.35.
    [3] Fox G. C., Otto S. W., and Hey A. J. G., “Matrix algorithms on a hypercube I:
    Matrix multiplication”,Parallel Computing, vol. 4, pp. 17-31. 1987.
    [4] Berntsen J.,“Communication efficient matrix multiplication on hypercubes, Parallel Computing”, vol. 12, pp. 335-342, 1989.
    [5] Ranka S. and Sahni S., “Hypercube Algorithms for Image Processing and Pattern Recognition”, Springer- Verlag, New York, NY, 1990.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I read this story on slashdot today where they announce a new parallel programming
I work with new Parallel.For that creates multiple threads to perform the same operation.
I have a Parallel foreach function that creates a new instance of a class,
I have the following code: Parallel.ForEach(this.listView2.CheckedItems, new ParallelOptions { MaxDegreeOfParallelism = 4 }, (CheckedItem)
I am new to parallel programming. I researched a lot about using MPI and
I have downloaded the last samples of the Parallel Programming team, and I don't
Have been following this fabulous tutorial . Being new to Javascript and functional programming,
I'm quite new to parallel programming and threads. I want to calculate and add
I'm new to the world of parallel programming and openmp, so this may be
I'm trying to wrap my head around the whole Parallel Programming concept, mostly focusing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.