Solved

mmx matrix methods

Posted on 1998-06-17
5
238 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
If you have ever found yourself doing a repetitive action with the mouse and keyboard, and if you have even a little programming experience, there is a good chance that you can use a text editor to whip together a sort of macro to automate the proce…
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

707 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now