Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: IDL Matrix ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 6 Topic 5725 of 5734
Post > Topic >>

Re: IDL Matrix Multiply and Dual-Core CPUs

by Pierre <pierre.villeneuve@[EMAIL PROTECTED] > May 9, 2008 at 11:34 AM

Hi Samuel,

I saw a very similar problem with my quad-core PC running XP (32 bit)
with 4gigs of ram.  I re-ran my test script on our two-core, 4-gig
linux box and got similar results with just slightly different array
sizes.  Here is the script I ran:



cpu, /reset

help, !cpu, /str

Nk = 258
K = fltarr(Nk, Nk)

;
; Case 1.
;
Npix = 129047
d = fltarr(Npix, Nk)
t0 = systime(1)

d #= K

t1 = systime(1) - t0

print, 'Case #1: ', Npix,  t1

;
; Case 2.
;
Npix = Npix + 1
d = fltarr(Npix, Nk)
t0 = systime(1)

d #= K

t2 = systime(1) - t0

print, 'Case #2: ', Npix,  t2




On each of our computers case #2 used all available cores while case
#1 only used one core.  The only difference between them is the
dimension of one of the arrays (Npix) is simply incremented by one.
The total memory used by the IDL process during this test is never
more and two-hundred megs or so.  There is no way this problem is due
to a lack of physical memory.  The sizes of these arrays are also
significantly larger then the default minimum number of elements
(default = 10000) required to enable multi-threading.



Any ideas?
Pierre




 6 Posts in Topic:
IDL Matrix Multiply and Dual-Core CPUs
s.haenger@[EMAIL PROTECTE  2008-05-09 07:27:39 
Re: IDL Matrix Multiply and Dual-Core CPUs
Bringfried Stecklum <s  2008-05-09 18:09:57 
Re: IDL Matrix Multiply and Dual-Core CPUs
=?ISO-8859-2?Q?F=D6LDY_La  2008-05-09 20:16:12 
Re: IDL Matrix Multiply and Dual-Core CPUs
=?ISO-8859-2?Q?F=D6LDY_La  2008-05-09 20:20:09 
Re: IDL Matrix Multiply and Dual-Core CPUs
s.haenger@[EMAIL PROTECTE  2008-05-09 11:28:58 
Re: IDL Matrix Multiply and Dual-Core CPUs
Pierre <pierre.villene  2008-05-09 11:34:32 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri May 16 0:05:07 CDT 2008.