Skip to content
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

Fix OpenCL compile failure on Intel (beignet) #529

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion kinect2_registration/src/depth_registration.cl
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ void kernel remapDepth(global const ushort *in, global ushort *out, global const
}

const float4 distXY = (float4)((x - xL) * (x - xL), (xH - x) * (xH - x), (y - yL) * (y - yL), (yH - y) * (yH - y));
const float4 tmp = (float4)(sqrt(2.0));
const float4 tmp = (float4)(sqrt(2.0f));
const float4 dist2 = (float4)(distXY.s0 + distXY.s2, distXY.s1 + distXY.s2, distXY.s0 + distXY.s3, distXY.s1 + distXY.s3);
const float4 dist = select((float4)(0), tmp - sqrt(dist2), valid);
const float sum = dist.s0 + dist.s1 + dist.s2 + dist.s3;
Expand Down