-
I'm not seeing anything in the Warp docs about multi-GPU simulations. Is there a useful primitive, system, or technique to leverage multiple GPUs for accelerating sims? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think it's highly dependent on how you envision leveraging multiple GPUs in your application. You won't be able to set a few flags and have a previously single-GPU Warp application automatically decide how to best make use of two GPUs. Instead, you currently need to be explicit about which arrays are allocated on which devices (e.g. Some examples:
Personally my interests are in domain-decomposed simulations, so I have used Warp in combination with |
Beta Was this translation helpful? Give feedback.
I think it's highly dependent on how you envision leveraging multiple GPUs in your application. You won't be able to set a few flags and have a previously single-GPU Warp application automatically decide how to best make use of two GPUs. Instead, you currently need to be explicit about which arrays are allocated on which devices (e.g.
cuda:0
,cuda:1
,cuda:2
, etc.), which devices are used for kernel launches, when streams from different devices need to be synchronized with each other, and when copies are needed between Warp arrays allocated on different devices.Some examples: