CUDA apps time out & fail after several seconds - how to work around this?

后端 未结 8 836
执念已碎
执念已碎 2020-11-27 13:59

I\'ve noticed that CUDA applications tend to have a rough maximum run-time of 5-15 seconds before they will fail and exit out. I realize it\'s ideal to not have CUDA applic

8条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-27 14:26

    The most basic solution is to pick a point in the calculation some percentage of the way through that I am sure the GPU I am working with is able to complete in time, save all the state information and stop, then to start again.

    Update: For Linux: Exiting X will allow you to run CUDA applications as long as you want. No Tesla required (A 9600 was used in testing this)

    One thing to note, however, is that if X is never entered, the drivers probably won't be loaded, and it won't work.

    It also seems that for Linux, simply not having any X displays up at the time will also work, so X does not need to be exited as long as you screen to a non-X full-screen terminal.

提交回复
热议问题