Jump to content

Matrix Multiply slower on RT than PC?


JeremyMarquis

Recommended Posts

Posted (edited)

I was playing with large matrices and was testing execution speed on my laptop (the code is destined to run on RT). 

 

The code below tests using the Matrix Multiply function vs just straight array math.  Unsurprisingly the Matrix Multiply function executed faster.  Then when I ran it on RT both methods took the same amount of time? And Matrix Multiply (A x B.vi) takes LONGER on RT than PC?  Is there some windows-optimized code under the hood that is not available on RT?

 

I was hoping it would be faster since my laptop is several years old and this is NI's super duper 8135 PXI controller. I did deploy this as a startup app to ensure running from the IDE did not affect timing when running on the RT.

 

post-6490-0-15466400-1416256375_thumb.pn

Edited by JeremyMarquis
Posted

I do not trust individual benchmarks of two operations in parallel.  Especially when RT gets involved.  Try serializing the two functions and see what the timing difference is then.

Posted (edited)

You are correct sir, I shouldn't have slapped that code together so fast.  The fun and danger of rapid prototyping in LabVIEW.


 


All results (both methods and both platforms) now report ~4.3ms.  I sure wish I could have that <2ms back...


 


post-6490-0-47372700-1416259244_thumb.pn


Edited by JeremyMarquis

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.