Talk About Network

Google


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 > Fortran > Global array op...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 20 Topic 8390 of 8908
Post > Topic >>

Global array operations: a performance hit?

by deltaquattro <deltaquattro@[EMAIL PROTECTED] > Jun 17, 2008 at 08:41 AM

Hi,

I was wondering whether global array operations, introduced in f90,
can have a negative impact on performance. Compare:

do i=1, ntheta
    r(0,i)    = rhub
    r(nr+1,i) = rmax
    dt(0,i)   = 0.0
    dft(0,i)  = 0.0
    dfr(0,i)  = 0.0
    dt(nr+1,i)   = 0.0
    dft(nr+1,i)  = 0.0
    dfr(nr+1,i)  = 0.0
end do

with:

r(0,:)    = rhub
r(nr+1,:) = rmax
dt(0,:)   = 0.0
dft(0,:)  = 0.0
dfr(0,:)  = 0.0
dt(nr+1,:)   = 0.0
dft(nr+1,:)  = 0.0
dfr(nr+1,:)  = 0.0

I found the execution time of the latter to be higher than the former,
as if many DO loops were executed instead than just one. Why use
global array operations then? Isn't better to stick to old plain DO
loops? Thanks,

regards,

deltaquattro
 




 20 Posts in Topic:
Global array operations: a performance hit?
deltaquattro <deltaqua  2008-06-17 08:41:47 
Re: Global array operations: a performance hit?
Dennis Wassel <dennis.  2008-06-17 10:21:31 
Re: Global array operations: a performance hit?
glen herrmannsfeldt <g  2008-06-17 16:36:27 
Re: Global array operations: a performance hit?
"James Van Buskirk&q  2008-06-17 11:55:04 
Re: Global array operations: a performance hit?
glen herrmannsfeldt <g  2008-06-17 16:15:46 
Re: Global array operations: a performance hit?
Craig Powers <craig.po  2008-06-17 19:40:10 
Re: Global array operations: a performance hit?
glen herrmannsfeldt <g  2008-06-17 17:34:34 
Re: Global array operations: a performance hit?
Craig Powers <craig.po  2008-06-18 13:08:26 
Re: Global array operations: a performance hit?
nospam@[EMAIL PROTECTED]   2008-06-17 11:31:06 
Re: Global array operations: a performance hit?
Dennis Wassel <dennis.  2008-06-17 13:05:47 
Re: Global array operations: a performance hit?
kargl@[EMAIL PROTECTED]   2008-06-17 20:41:49 
Re: Global array operations: a performance hit?
Dennis Wassel <dennis.  2008-06-17 14:21:53 
Re: Global array operations: a performance hit?
robert.corbett@[EMAIL PRO  2008-06-17 19:04:07 
Re: Global array operations: a performance hit?
deltaquattro <deltaqua  2008-06-18 01:20:25 
Re: Global array operations: a performance hit?
nospam@[EMAIL PROTECTED]   2008-06-18 08:34:23 
Re: Global array operations: a performance hit?
Dennis Wassel <dennis.  2008-06-18 02:41:55 
Re: Global array operations: a performance hit?
deltaquattro <deltaqua  2008-06-18 05:18:15 
Re: Global array operations: a performance hit?
Dennis Wassel <dennis.  2008-06-18 06:47:36 
Re: Global array operations: a performance hit?
glen herrmannsfeldt <g  2008-06-18 14:00:39 
Re: Global array operations: a performance hit?
Dennis Wassel <dennis.  2008-06-19 01:16:34 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Wed Nov 19 9:35:42 CST 2008.