Explorar el Código

Fix build with simgrid and without opencl

Samuel Thibault hace 11 años
padre
commit
3903429984
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/drivers/opencl/driver_opencl.c

+ 3 - 1
src/drivers/opencl/driver_opencl.c

@@ -619,6 +619,7 @@ int _starpu_opencl_driver_run_once(struct _starpu_worker *args)
 	struct starpu_task *task;
 	int res;
 
+#ifndef STARPU_SIMGRID
 	task = starpu_task_get_current();
 
 	if (task)
@@ -642,6 +643,7 @@ int _starpu_opencl_driver_run_once(struct _starpu_worker *args)
 		/* Asynchronous task completed! */
 		_starpu_opencl_stop_job(_starpu_get_job_associated_to_task(task), args);
 	}
+#endif /* STARPU_SIMGRID */
 
 	__starpu_datawizard_progress(memnode, 1, 1);
 
@@ -700,7 +702,7 @@ int _starpu_opencl_driver_run_once(struct _starpu_worker *args)
 	else
 #else
 #ifdef STARPU_DEVEL
-#warning No CUDA asynchronous execution with simgrid yet.
+#warning No OpenCL asynchronous execution with simgrid yet.
 #endif
 #endif
 	/* Synchronous execution */