Skip to content

Commit

Permalink
Fixing Compiler warning
Browse files Browse the repository at this point in the history
Using type suffix
  • Loading branch information
arashthk committed Sep 15, 2016
1 parent f005fb2 commit 045ff7d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/benchmark.py
Expand Up @@ -54,7 +54,6 @@
dest_buf = cl.Buffer(ctx, mf.WRITE_ONLY, b.nbytes)

prg = cl.Program(ctx, """
#pragma OPENCL EXTENSION cl_khr_fp64 : enable
__kernel void sum(__global const float *a,
__global const float *b, __global float *c)
{
Expand All @@ -68,7 +67,7 @@
c_temp = a_temp+b_temp; // sum of my elements
c_temp = c_temp * c_temp; // product of sums
c_temp = c_temp * (a_temp/2.0); // times 1/2 my a
c_temp = c_temp * (a_temp/2.0f); // times 1/2 my a
c[gid] = c_temp; // store result in global memory
}
Expand Down

0 comments on commit 045ff7d

Please sign in to comment.