Is there any way to write on texture memory?
I need to access(read and write) the neighbourhood of a pixel in an image. What will be the effective way to do that?
Is there any way to write on texture memory? I need to access(read and
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
devices of compute capability 2.x have support for surface memory. Take a look at Section 3.2.4.2 Surface Memory and Section 3.2.4.4 Read/Write Coherency in Cuda C Programming Guide 3.2 or above.
Other way is load data into the share memory space within a block with an extra padding of 1 pixel. However, performance depends on the computation of the kernel. If there are really few operations, load the share memory will not compensate.
Hope this help.