Results 1 to 4 of 4
Thread: Threading
- 03-13-2010, 11:05 AM #1
Member
- Join Date
- Jun 2009
- Posts
- 35
- Rep Power
- 0
Threading
Hi,
I am very curious to implement threading for very large 2-D matrix multiplication, matrix size greater than 1000. I am new to this concept so I have googled and read few articles but it would be nicer if a guru from here would help and point me in the write direction.(some links maybe or ideas, even better)
I appreciate the help.
Thank you.
- 03-13-2010, 11:23 AM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,375
- Blog Entries
- 7
- Rep Power
- 17
Matrix multiplication can be easily parallelized: matrix multiplication is taking dot products of a row vector of the left matrix and a column vector or the rigth matrix. All rows and all columns have to be (dot) multiplied.
If you have n cores in your processor divide this multiplication in n subtasks where the rows are all disjoint and multply away; the tasks all use disjoint rows and only read the columns from the right matrix. The results (scalars) are stored at disjoint locations so no thread synchronization is necessary.
The scenario gives you a speedup of at most a factor n.
kind regards,
Jos
- 03-13-2010, 02:06 PM #3
Member
- Join Date
- Jun 2009
- Posts
- 35
- Rep Power
- 0
Thank you JosAH
Its very informative. Can you practically illustrate it further using an example of matrix?
- 03-13-2010, 02:21 PM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,375
- Blog Entries
- 7
- Rep Power
- 17
Similar Threads
-
need some help with threading
By dinosoep in forum New To JavaReplies: 3Last Post: 12-03-2009, 05:31 PM -
Threading
By jon80 in forum New To JavaReplies: 1Last Post: 06-13-2009, 10:53 PM -
Threading in EJB
By java08 in forum Advanced JavaReplies: 2Last Post: 08-12-2008, 11:09 AM -
Java threading
By Eranga in forum Advanced JavaReplies: 2Last Post: 03-13-2008, 05:30 AM -
Threading prob..
By banie in forum Java AppletsReplies: 0Last Post: 02-05-2008, 06:30 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks