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 66872d0 commit 75d7b10Copy full SHA for 75d7b10
tutorials_cupy/mdd_cupy.py
@@ -23,7 +23,8 @@
23
size = MPI.COMM_WORLD.Get_size()
24
dtype = np.float32
25
cdtype = np.complex64
26
-cp.cuda.Device(device=rank).use();
+device_count = cp.cuda.runtime.getDeviceCount()
27
+cp.cuda.Device(rank % device_count).use()
28
29
###############################################################################
30
# Let's start by creating a set of hyperbolic events to be used as
0 commit comments