[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Optimization: why don't I get no speedup?
From: |
Marcus G. Daniels |
Subject: |
Re: Optimization: why don't I get no speedup? |
Date: |
07 Jan 2002 17:45:42 -0700 |
User-agent: |
Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.7 |
>>>>> "PJ" == Paul E Johnson <address@hidden> writes:
GCC can optimize the rightX+1, highY+1 stuff out of the loops if you use
-funroll-loops to compile your model. You could also lift the pointer
visibleOpinion[i] outside of the xcoord, ycoord loops and maybe get a savings.
PJ> for( xcoord = leftX; xcoord < rightX+1; xcoord++ )
PJ> {
PJ> for( ycoord=lowY; ycoord < highY+1; ycoord++)
PJ> {
PJ> *D2D(visibleOpinion[i],gridOffsets,xcoord,ycoord) += levelHere;
PJ> }
PJ> }
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.