<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">How about using cilk++ to parallelize it? Use a cilk_for loop instead of for loop, which requires minimum amount of change to your code.<div><a href="http://software.intel.com/sites/products/documentation/hpc/composerxe/en-us/cpp/lin/cref_cls/common/cilk_for.htm">http://software.intel.com/sites/products/documentation/hpc/composerxe/en-us/cpp/lin/cref_cls/common/cilk_for.htm</a></div><div><br></div><div>Cheers,</div><div>Yun</div><div><br><div><div>On Jun 19, 2012, at 7:58 PM, Cha Lee wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hey folks,<br><br>I've got a code bottleneck that I could use some help on. For<br>compatibly reasons, I need to copy an N*M image to a S*S image. The<br>first image is a rectangular image but the second is a power of two<br>image. What I'm doing now is going pixel by pixel on the second image,<br>find the correct pixel coordinate on the first image, and copying over<br>the color information. Basically pixel by pixel copy. This is<br>obviously killing my performance.<br><br>Any suggestions?<br><br><br>-- <br>Regards,<br><br>Cha Lee<br>PhD Candidate<br>University of California, Santa Barbara<br>_______________________________________________<br>Ilab-users mailing list<br><a href="mailto:Ilab-users@lists.cs.ucsb.edu">Ilab-users@lists.cs.ucsb.edu</a><br>https://lists.cs.ucsb.edu/mailman/listinfo/ilab-users<br></div></blockquote></div><br></div></body></html>