Results 1 to 3 of 3

Thread: Local extremum?

  1. #1

    Local extremum?


    I have a 2D image and I perform a classical local extremum (min-max) by reading the 8-neighborhood. My code is simple but I think absolutely not optimal for GPU.

    Is there a know algorithm to do this task? (haven't found yet)

    I was thinking about overlapping blocks where each block reads a part of the image, put it in a local buffer, and perform the local min-max by reading this buffer.


  2. #2
    Senior Member
    Join Date
    Oct 2012

    Re: Local extremum?

    I don't think its that bad for GPU if you use Image2D because the area will be cached by the texture unit. So the cache misses wont be that bad. you could load the data to local memory but i dont think it will speedup that much when you only load that few neigbours.

  3. #3

    Re: Local extremum?

    Yeap, you were right, it's already pretty fast! It's definitely not the kernel I have to optimize...
    Thanks Clint.

Similar Threads

  1. 2D Arrays in local functions
    By howard in forum OpenCL
    Replies: 2
    Last Post: 02-15-2013, 04:51 AM
  2. using local memory
    By openclnewb in forum OpenCL
    Replies: 4
    Last Post: 04-16-2010, 08:53 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