Results 1 to 2 of 2

Thread: Recursion ia possible or not

  1. #1

    Recursion ia possible or not

    I have one serial code having function which calls itself and other function recursively.I want to parallelize it in task parallel can i parallelize this recursive code on CPU device type, if not then plz suggest the alternative for the same.

  2. #2

    Re: Recursion ia possible or not

    You can convert your recursive algorithm into an iterative one using a stack such as this implementation found on this forum : Link

    Also I was able to do it using the wikipedia article about converting the recursion algorithm : Wiki Iterative Traversal article.

Similar Threads

  1. Recursion
    By david_f_knight in forum Suggestions for next release
    Replies: 1
    Last Post: 11-05-2010, 02:57 PM
  2. Recursion?
    By david_f_knight in forum OpenCL
    Replies: 1
    Last Post: 11-04-2010, 11:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts