Results 1 to 2 of 2

Thread: goto statements in OpenCL

  1. #1
    Junior Member
    Join Date
    Jul 2015

    goto statements in OpenCL

    Are goto statements supported in OpenCL?

    I saw few posts regarding this but they seem to be pretty old. I am hoping to see if there are any updates. To provide some context, I am thinking of using a finite state machine C code on the GPU side that is runtime generated (on the CPU side) based on a given regex and this code has goto statements.

    Please let me know.

  2. #2
    Senior Member
    Join Date
    Apr 2015
    I cannot find anything in standart about goto being restricted in relation to normal C. It might perform very poorly on GPUs, though, but I assume you're aware of that.

Tags for this Thread

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