Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-05-2012, 02:31 PM
|
#1
|
|
Member
Registered: Aug 2011
Distribution: Slackware 14, Debian 7.0.0 Wheezy, Windows 7, Windows 8
Posts: 97
Rep: 
|
Does calling an element of an array calls the whole array
I am working on code to multiply matrices of higher dimensions eg. 10000x10000.
Code is working, but i want to reduce the time elapsed as much as possible.
So i used Cannon's Matrix Multiplication algorithm, (In this algorithm Matrix is divided into partitions of smaller size, as 5,10,20,100 or whatever we want). I have a doubt that whenever i access any partition(element) of that 2d array, Does the whole row or column of that 2d array is fetched to memory or cpu ? Or only that specific partition(element) is fetched ?
If the whole row or column is fetched. Suggest some ways to fetch only that specific partition(element). Can vectors do that? Or i have to create N smaller 2d matrices (N = number of partitions) and copy data of matrix into smaller matrices.
PS: This seems to be part of Computer Architecture to me.
|
|
|
|
07-05-2012, 06:52 PM
|
#2
|
|
Senior Member
Registered: Jul 2006
Location: Kolkata, India
Distribution: 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,726
Rep: 
|
It depends on your code.
library: blas?
Usually it should be about distributing tasks to processors.
|
|
|
|
07-05-2012, 08:07 PM
|
#3
|
|
Member
Registered: Aug 2011
Distribution: Slackware 14, Debian 7.0.0 Wheezy, Windows 7, Windows 8
Posts: 97
Original Poster
Rep: 
|
Well i am distributing partitions to different Processors. Coding OpenMP.
|
|
|
|
07-06-2012, 07:50 PM
|
#4
|
|
Moderator
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 10,409
|
Moderator Response
Moved: This thread is more suitable in <Programming> and has been moved accordingly to help your thread/question get the exposure it deserves.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:02 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|