hi,
If I have 8 GPUs, how can I make full use of these 8 Gpus with kspaceFirstOrder2DG?
best regards
qzshi
hi,
If I have 8 GPUs, how can I make full use of these 8 Gpus with kspaceFirstOrder2DG?
best regards
qzshi
Hi qzshi,
Do you want to run one simulation across all 8 GPUs at the same time? Unless you're running an extraordinarily large 2D simulation (that doesn't fit in the memory of 1 GPU), there would be no benefit to using more than one GPU at the same time, as the communication penalty will outweigh the advantage of having access to more compute cores. If you want to run multiple 2D simulations at the same time, see my response in the this post.
Brad.
Hi Brad,
I mean if I want to simulate 128 times with kspaceFirstOrder2DG for 128 channel, how can I run the function kspaceFirstOrder2DG 8 times at the same time. Or do you have some other ideas to fully use the 8 GPUs to accelerate the whole program?
best regards
qzshi.
Hi qzshi,
If you want to do everything from within one MATLAB session, you could use a parfor
loop with eight workers, and use the worker id (minus 1) to set the GPU device number. See this post on MATWORKS for how to get the work id. See my answer in the linked post above for how to set the GPU number.
Brad
You must log in to post.