How to prevent two CUDA programs from interfering

前端 未结 2 1474
旧巷少年郎
旧巷少年郎 2021-01-05 12:55

I\'ve noticed that if two users try to run CUDA programs at the same time, it tends to lock up either the card or the driver (or both?). We need to either reset the card or

2条回答
  •  鱼传尺愫
    2021-01-05 13:20

    If you are running on either Linux or Windows with the TCC driver, you can put the GPU into compute exclusive mode using the nvidia-smi utility.

    Compute exclusive mode makes the driver refuse a context establishment request if another process already holds a context on that GPU. Any process trying to run on a busy compute exclusive GPU will receive a no device available error and fail.

提交回复
热议问题