Skip to content

Commit

Permalink
A task cannot be made to depend on itself
Browse files Browse the repository at this point in the history
  • Loading branch information
sthibaul committed Nov 13, 2023
1 parent ff39129 commit 8a76ae7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/dependencies/task_deps.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* StarPU --- Runtime system for heterogeneous multicore architectures.
*
* Copyright (C) 2010-2021 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
* Copyright (C) 2010-2023 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
*
* StarPU is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
Expand Down Expand Up @@ -112,6 +112,7 @@ void _starpu_task_declare_deps_array(struct starpu_task *task, unsigned ndeps, s
struct _starpu_cg *back_cg = NULL;

dep_job = _starpu_get_job_associated_to_task(dep_task);
STARPU_ASSERT_MSG(dep_task != task, "A task cannot be made to depend on itself");

#ifdef STARPU_DEBUG
cg->deps[i] = dep_job;
Expand Down

0 comments on commit 8a76ae7

Please sign in to comment.