|
@@ -424,13 +424,19 @@ starpu_free (void *ptr)
|
|
|
|
|
|
/* OpenCL support. */
|
|
/* OpenCL support. */
|
|
|
|
|
|
-#define STARPU_USE_OPENCL 1
|
|
|
|
|
|
+#ifndef STARPU_USE_OPENCL
|
|
|
|
|
|
|
|
+# define STARPU_USE_OPENCL 1
|
|
|
|
+
|
|
|
|
+/* The `opencl' pragma needs this structure, so make sure it's defined. */
|
|
struct starpu_opencl_program
|
|
struct starpu_opencl_program
|
|
{
|
|
{
|
|
/* Nothing. */
|
|
/* Nothing. */
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
+
|
|
/* Number of `load_opencl_from_string' calls. */
|
|
/* Number of `load_opencl_from_string' calls. */
|
|
static unsigned int load_opencl_calls;
|
|
static unsigned int load_opencl_calls;
|
|
|
|
|