Przeglądaj źródła

Apply patches from George Russell to fix some OpenCL build failures on ATI

Samuel Thibault 14 lat temu
rodzic
commit
cce20452a9

+ 1 - 1
examples/basic_examples/variable_kernels_opencl_kernel.cl

@@ -18,6 +18,6 @@ __kernel void variable(__global float* input)
 {
 	const int i = get_global_id(0);
 	if (i == 0)
-		input[i] = input[i] + 1.0;
+		input[i] = input[i] + 1.0f;
 }
 

+ 1 - 1
examples/incrementer/incrementer_kernels_opencl_kernel.cl

@@ -18,6 +18,6 @@ __kernel void incrementer(__global float* input)
 {
 	const int i = get_global_id(0);
 	if (i == 0 || i == 3)
-		input[i] = input[i] + 1.0;
+		input[i] = input[i] + 1.0f;
 }
 

+ 1 - 1
examples/mandelbrot/mandelbrot.c

@@ -21,7 +21,7 @@
 #endif
 #include <sys/time.h>
 #include <math.h>
-
+#include <limits.h>
 #ifdef STARPU_HAVE_X11
 #include <X11/Xlib.h>
 #include <X11/Xutil.h>