gfor cannot use with subfunction

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

Moderator: pavanky

gfor cannot use with subfunction

Postby chfeilong » Fri Jun 01, 2012 3:17 am

Code: Select all
function HumLogKGPU

temp = gzeros(1,1000);
gfor iloop = 1:1000
    temp(iloop) = temp(iloop) +iloop;

gend
temp(1:10)
    function a
  end

end


when delete
Code: Select all
 function a
  end

it's OK!
but with subfunction a it's wrong :
>> HumLogKGPU
Error using gfor
failed to create iterator in this scope (src/matlab/calls/gfor.cpp:236)

Error in HumLogKGPU (line 4)
gfor iloop = 1:1000
chfeilong
 
Posts: 104
Joined: Sun Aug 15, 2010 11:28 pm

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

cron