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 2c9ea72 commit 66872d0Copy full SHA for 66872d0
tutorials_cupy/lsm_cupy.py
@@ -23,7 +23,8 @@
23
plt.close("all")
24
rank = MPI.COMM_WORLD.Get_rank()
25
size = MPI.COMM_WORLD.Get_size()
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 with a simple model with two interfaces, where sources are
0 commit comments