Results 1 to 2 of 2

Thread: Convergence test

  1. #1
    Junior Member
    Join Date
    Feb 2013

    Convergence test

    I have a process in which each thread makes a convergence test and what I would like to is being able to determine at which step the convergence has been reached by every thread. I can have an int array, each thread assigning 0 or 1 depending on whether it satisfies the convergence teste or not but now how for each thread to test that the array contains only zeros? More generally how this is generally achieved?

  2. #2
    Senior Member
    Join Date
    Dec 2011

    Re: Convergence test

    Rather than test to see if the array contains only zeros, think about what you really want to test, which is "are any threads non-converged?". You could do this with an a global that gets set by any thread that isn't converged. If this were a counter, you'd need it to be atomic, but if non-converged threads are only writing a single value, I think it could be non-atomic. If you already have a return buffer, this could be a single value in that buffer. Or create a new buffer. You could try writing an image as well to see if the texture write caching changes the performance.

Similar Threads

  1. bandwidth test
    By matrem in forum OpenCL
    Replies: 5
    Last Post: 01-04-2010, 12:03 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
Proudly hosted by Digital Ocean