Gfor and for nest loop

[Old posts from the commercial version of ArrayFire] Discussion of ArrayFire using CUDA or OpenCL.

Moderator: pavanky

Gfor and for nest loop

Postby allen1979 » Mon Jun 13, 2011 11:38 am

Hello everyone. If I want to reconstruct a image of size 100*100, I use gfor and for nest loop to do it. The 100 rows are reconstructed parallelly while 100 colums are reconstructed sequentially.
Code: Select all
gfor row=1:100
    for col=1:100

My question is after I finish reconstruction each row in 100 images, how can I combine these 100 images into one reconstructed image. Thank you.
Posts: 2
Joined: Mon Jun 13, 2011 11:15 am

Return to [archive-commercial] Programming & Development with ArrayFire