Code optimization with GPU
1 view (last 30 days)
Hi everyone, I have the following line of codes which I would like to parallelize on the GPU :
U = zeros(q, M, q, 'gpuArray');
U(j,:,j) = my_line_vector;
Is there any way to suppress the loop?
Thes are the lines of code that run the slowest in my program.
Thank you in advance