Преглед изворни кода

Fix calling _starpu_get_disable_kernels function

Samuel Thibault пре 10 година
родитељ
комит
78deba26be

+ 1 - 1
src/drivers/cuda/driver_cuda.c

@@ -452,7 +452,7 @@ static int start_job_on_cuda(struct _starpu_job *j, struct _starpu_worker *worke
 	starpu_cuda_func_t func = _starpu_task_get_cuda_nth_implementation(cl, j->nimpl);
 	STARPU_ASSERT_MSG(func, "when STARPU_CUDA is defined in 'where', cuda_func or cuda_funcs has to be defined");
 
-	if (_starpu_get_disable_kernels <= 0)
+	if (_starpu_get_disable_kernels() <= 0)
 	{
 		_STARPU_TRACE_START_EXECUTING();
 #ifdef STARPU_SIMGRID

+ 1 - 1
src/drivers/mp_common/sink_common.c

@@ -466,7 +466,7 @@ static void _starpu_sink_common_execute_kernel(struct _starpu_mp_node *node, int
 	}
 	if(task->type != STARPU_FORKJOIN || worker->current_rank == 0)
 	{
-		if (_starpu_get_disable_kernels <= 0)
+		if (_starpu_get_disable_kernels() <= 0)
 		{
 			/* execute the task */
 			task->kernel(task->interfaces,task->cl_arg);

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

@@ -896,7 +896,7 @@ static int _starpu_opencl_start_job(struct _starpu_job *j, struct _starpu_worker
 	starpu_opencl_func_t func = _starpu_task_get_opencl_nth_implementation(cl, j->nimpl);
 	STARPU_ASSERT_MSG(func, "when STARPU_OPENCL is defined in 'where', opencl_func or opencl_funcs has to be defined");
 
-	if (_starpu_get_disable_kernels <= 0)
+	if (_starpu_get_disable_kernels() <= 0)
 	{
 		_STARPU_TRACE_START_EXECUTING();
 #ifdef STARPU_SIMGRID