8000 imgproc/CLAHE/ocl: Removed unnecessary __local variable by mshabunin · Pull Request #8000 · opencv/opencv · GitHub
[go: up one dir, main page]

Skip to content

imgproc/CLAHE/ocl: Removed unnecessary __local variable #8000

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 16, 2017

Conversation

mshabunin
Copy link
Contributor

resolves opencv/opencv_contrib#843

This pullrequest changes

__local variable should not be defined in function scope by specification. In this case totalClipped variable can be removed.

8000
__local int totalClipped;

if (tid == 0)
totalClipped = clipped;
barrier(CLK_LOCAL_MEM_FENCE);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This barrier is not necessary too.

@alalek
Copy link
Member
alalek commented Jan 16, 2017

👍

@opencv-pushbot opencv-pushbot merged commit 8c66531 into opencv:master Jan 16, 2017
@mshabunin mshabunin deleted the fix-opencl-clahe branch May 29, 2017 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

clahe.cl in modules/imgproc/src/, has wrong usage of __local data type
3 participants
0