Is there a way to run this loop in gpu and will it consume lesser time compared to parallel cpu computation time?

1 回表示 (過去 30 日間)
N=50;
for n=1:8
b=rand(300,103);
w=rand(300,1);
[Q,R]=qr(b,0);
A(:,:,n);=R
end
  8 件のコメント
Naveen kumar Elumalai
Naveen kumar Elumalai 2018 年 3 月 29 日
編集済み: Naveen kumar Elumalai 2018 年 3 月 29 日
Could I be able to access it at once, instead of using page by page
%code
for n=1:36
[Q(:,:,n),R(:,:,n)]=qr(A2(:,:,n),0);
end
I wanted this to happen without for loop. Here A2, is 600*103*36,
R needs to be of the size 103*103*36 and
Q of the size 600*103*36
Any answer would be appreciated. Kindly do reply

サインインしてコメントする。

回答 (1 件)

Naveen kumar Elumalai
Naveen kumar Elumalai 2018 年 3 月 22 日
This is taking so much time than the normal cpu execution

カテゴリ

Help Center および File ExchangeGPU Computing についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by