[4eyes] Optimization problem
Yun Teng
yunteng.cs at gmail.com
Tue Jun 19 20:05:54 PDT 2012
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.
http://software.intel.com/sites/products/documentation/hpc/composerxe/en-us/cpp/lin/cref_cls/common/cilk_for.htm
Cheers,
Yun
On Jun 19, 2012, at 7:58 PM, Cha Lee wrote:
> Hey folks,
>
> I've got a code bottleneck that I could use some help on. For
> compatibly reasons, I need to copy an N*M image to a S*S image. The
> first image is a rectangular image but the second is a power of two
> image. What I'm doing now is going pixel by pixel on the second image,
> find the correct pixel coordinate on the first image, and copying over
> the color information. Basically pixel by pixel copy. This is
> obviously killing my performance.
>
> Any suggestions?
>
>
> --
> Regards,
>
> Cha Lee
> PhD Candidate
> University of California, Santa Barbara
> _______________________________________________
> Ilab-users mailing list
> Ilab-users at lists.cs.ucsb.edu
> https://lists.cs.ucsb.edu/mailman/listinfo/ilab-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cs.ucsb.edu/pipermail/ilab-users/attachments/20120619/b0f40021/attachment.html>
More information about the Ilab-users
mailing list