How to use multiple GPUs asynchronously
显示 更早的评论
I have two GPUs connected to my computer. I've explored on Mathworks, but can't find an easy way to use both GPUs in my code (there seems to be a 'parfor' and 'spmd' method, but neither seem to work for me). I would like to have each GPU run asynchronously as in:
x = gpuArray();
y1 = gpuFunction1(x);
y2 = gpuFunction2(x);
where gpuFunction1 runs on the first GPU and gpuFunction2 runs on the second GPU. Is there an easy way to do this? Thank you.
1 个评论
Srinidhi Ganeshan
2019-1-25
could you check the comment below and could you confirm if the below answer as stated by @edric ellis is right ?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Parallel Computing Fundamentals 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!