P
P
pishust2014-07-31 15:40:32
GPGPU
pishust, 2014-07-31 15:40:32

Running a C++ AMP program crashes the video driver. How to fix this problem?

I recently started working with the AMP library in C++. Now faced with the following problem.
Any program that takes more than a few seconds to process a parallel_for_each loop will crash with an unhandled exception. At the same time, Windows reports that "The display driver has stopped responding and has been restored."
Also, at the moment it has been found out that it is the crash of the video driver that leads to the program stopping (after the restoration, the program can be continued, and it can have time to count until the next crash).
This always happens when the program does not have time to miscalculate in 2-3 seconds. Google didn't tell me anything about this.
Increasing the driver reboot time or even disabling this reboot using the TDR Regisey Keys did not help, the program also crashes or even completely freezes.
So, how can you limit the load on the gpu and get rid of constant crashes?
What do you say, comrades?
Windows 8.1, Visual Studio C++ 2012. Tested on a GForce GTX 460 desktop accelerator and on a netbook with a Radeon HD 7340.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pishust, 2014-08-10
@pishust

The only solution to this problem was refactoring the code to reduce the loop to a fairly small size.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question