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.