本文介绍了在GeForce Nvidia GT 610中大量循环崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个有两个嵌套循环的OpenCL内核。它可以正常工作到一定数量的迭代,但是当迭代次数增加时会崩溃。循环本质上不会创建任何新的数据(即没有全局内存溢出等),它只是迭代更多的时间。我能做些什么来允许更多的迭代?有没有人遇到过这个问题?非常感谢

解决方案

你是在Windows上运行的吗? Windows有一个看门狗定时器机制,如果看起来没有响应,它会重新启动显示驱动程序。我发现如果我的内核运行超过几秒钟,计时器将跳闸并重新启动显示驱动程序。我所知道的唯一的解决方案是将内核执行分解成一两秒钟的段,然后依次运行。


I have an OpenCL kernel with two nested loops. It works fine up to a certain number of iterations, but crashes when the number of iterations is increased. The loop essentially does not create any new data (i.e., there is no global memory overflow etc.), it just iterates more number of time. What can I do to allow more iterations? Has anyone encountered this problem? Thanks a lot

解决方案

Are you running this on Windows? Windows has a watchdog timer mechanism that restarts the display driver if it appears to become unresponsive. I find that if my kernel runs for more than a few seconds, the timer will trip and restart the display driver. The only solution I know of is to break up the kernel execution into segments of one or two seconds each and run them sequentially.

这篇关于在GeForce Nvidia GT 610中大量循环崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-23 22:04