Results 1 to 3 of 3

Thread: Timeouts for GPU kernels

  1. #1
    Junior Member
    Join Date
    Apr 2012

    Timeouts for GPU kernels

    When you run a kernel on the GPU, sometimes the kernel ends up running for a very long amount of time. Depending upon the vendor and OS combination, it can lead to anything from application crashes to system freezes. This is obviously very undesirable.

    Consider how an API like C++ AMP deals with this. C++ AMP kernels do not lead to system hangs. If the kernel runs for a long time, then the system terminates it and an exception is thrown which can be caught by the application and responded to. Even if the developer is sloppy and does not handle the exception, it will only lead to application crash, not the crashing of the whole system.

    Thus, I want a well defined way to enforce some kind of maximum timeouts on GPU kernels and well defined error codes for the case where the timeout does occur.

    The current behaviour is completely unacceptable.

    Rahul Garg
    PhD student (CS), McGill University

  2. #2
    Junior Member
    Join Date
    Apr 2012

    Re: Timeouts for GPU kernels

    As far as I can tell, some big ISVs have faced the GPU timeout issue as well.
    For example, you can check Adobe's presentation at the SIGGRAPH 2012 OpenCL BOF presentation. Link: ... _Aug12.pdf

    See page 17. They mention "Win/Mac timeout issues on low-end cards" as one of the challenges they faced.

  3. #3

    Re: Timeouts for GPU kernels

    We need a flag initializing the OpenCL context to indicate we want explicitly disable the watchdog without having to touch the Windows's registry / affecting the GPU drawing APIs.

Similar Threads

  1. Can Native Kernels Enqueue Non-Native Kernels?
    By sean.settle in forum OpenCL
    Replies: 3
    Last Post: 02-20-2012, 06:39 AM
  2. Copying data from GPU to another GPU
    By g4Rneck in forum OpenCL
    Replies: 1
    Last Post: 07-28-2011, 03:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean