Solved

mmx matrix methods

Posted on 1998-06-17
5
248 Views
Last Modified: 2013-12-03
I work in fluid dynamics. I have a Windows NT/W95 product that is heavy into number crunching, matrix methods to be exact. Someone mentioned to me that I should investigate tools or functionality available to me via mmx technology that might give me some gains in run times. I have no idea what mmx technology is or what it might give me or even where to look. Is this an API? Can anybody tell me if and where I should be looking or whether this is a dead end.

Thanks!

Dave P
0
Comment
Question by:dave_p
  • 2
  • 2
5 Comments
 

Accepted Solution

by:
tvarhe earned 50 total points
ID: 1408106
MMX is a set of new commands and registers found in newer Intel/AMD/Cyrix etc... chips that can be used e.g. to speed up graphics, video, animation, audio etc. MMX comes from MultiMedia eXtensions. It has new data types (packed byte, packed word, packed doubleword, quadword) and new methods to manipulate these. You can find a lot more info at http://www.intel.com
0
 

Author Comment

by:dave_p
ID: 1408107
Thanks for the info. Is mmx technology applicable to general numerical methods or just to multimedia applications?

Dave P
0
 
LVL 11

Expert Comment

by:alexo
ID: 1408108
Here's a more correct explanation:

MMX is Intel's implementation of an architecture that allows the processor to compute an operation on multiple integer arguments in parallel (outside the Intel world it is known as "Single Instruction Multiple Data" -- SIMD).

MMX works by aliasing the floating-point registers to MMX registers (therefore you cannot intermix FP and MMX (integer) operations, you have to "switch modes").

Each MMX register is 64-bits but can also be used as 2 32-bit, 4 16-bit or 8 8-bit registers that operate in parallel.
For example you could simultaneously perform eight X1 = X2 * X3 + X4 operations when each Xn is an 8-bit integer.

Intel's competitors (AMD, Cytix) implemented a similar architecture, some with enhancements (such as a separate block of registers for MMX, etc.)

MMX can be translated as MultiMedia eXtentions (they usually involve lots of small int operations), Matrix Math eXtentions (which they really are) or, my favorite, Much More eXpensive (which, after the price cuts, is no longer true).

Now to answer your questions specifically:

Either you have a processor that implements MMX or you don't.  You cannot "add" MMX functionality to a processor.  If your app uses MMX commands it may run faster on an MMX processor but not at all on a non-MMX one.

MMX can speed up algebraic operation on integers but have no benefit for floating point operations.

As MMX is a "low-level" architecture, usually you do not utilize it directly (unless you're into assembly programming).  Instead you get a compiler that can do MMX optimizations and invoke it with the appropriate switches.

A Pentium with MMX is actually faster than one without MMX even for software that does not use MMX operations because its internal cache is twice the size.

Finally, you're better off finding a better optimized numeric library.

If you think this is a good answer, you know what to do...
0
 

Author Comment

by:dave_p
ID: 1408109
Thanks!
0
 
LVL 11

Expert Comment

by:alexo
ID: 1408110
Oh well, you win some and you lose some...
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question