From 045ff7d26541224f2f4b8f3ba374e98f65ed9ab7 Mon Sep 17 00:00:00 2001 From: Arash Date: Thu, 15 Sep 2016 18:42:52 +0430 Subject: [PATCH] Fixing Compiler warning Using type suffix --- examples/benchmark.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/benchmark.py b/examples/benchmark.py index 0408fd28..30c0b8fb 100644 --- a/examples/benchmark.py +++ b/examples/benchmark.py @@ -54,7 +54,6 @@ for platform in cl.get_platforms(): 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) { @@ -68,7 +67,7 @@ for platform in cl.get_platforms(): 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 } -- GitLab