in GPU there are large number of processors as I know. How I can assign each iteration to each processor separately.
조회 수: 2 (최근 30일)
이전 댓글 표시
I need to give one kl value for one processor and another one to another processor
% my code
kl= gpuArray(1:10000)
lb=[rt(kl) 93500+10*kl ry(kl) 25e-6+2*rt(kl) ru(kl)];
a0=lb;
options=optimset('Display','iter','TolFun',10e-0,'TolX',10e-0,'Algorithm','trust-region-reflective');
ff=@(a)myfunstdNBPpulsev1(a,e,dat);
%ub =[20e-6 93900 10e7 75.1e-6 10.1e5]; %peak-1
ub = [2e-6+rt(kl) 93600+10*kl 1e7+ry(kl) 27e-6+2*rt(kl) 1e5+ru(kl)];
[a,residual]= lsqnonlin(ff,a0,lb,ub,options);
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 GPU Computing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!