We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75d7b10 commit 8c680b5Copy full SHA for 8c680b5
tutorials_cupy/poststack_cupy.py
@@ -20,7 +20,8 @@
20
21
plt.close("all")
22
rank = MPI.COMM_WORLD.Get_rank()
23
-cp.cuda.Device(device=rank).use();
+device_count = cp.cuda.runtime.getDeviceCount()
24
+cp.cuda.Device(rank % device_count).use()
25
26
###############################################################################
27
# Let's start by defining all the parameters required by the
0 commit comments