Segfault and Error with GPU-StarPU
Dear authors, I am encountering an issue while solving different linear systems successively on GPU (starPU scheduler), the latter happens when analyzing the new sparse matrix. I made a minimal example reproducing the problem Example.zip. Note that the example works fine on CPU.
- The first issue is a segfault at this line : https://gitlab.inria.fr/solverstack/pastix/-/blob/master/blend/solver.c#L166, I think the latter should be
for (i=0;i<solvmtx->ttsknbr;i++)
because we are iterating over solvmtx->ttsktab
in the loop.
-
The second issue is a double free at line : https://gitlab.inria.fr/solverstack/pastix/-/blob/master/blend/pastix_subtask_blend.c#L181, it seems that
pastix_data->solvglob
andpastix_data->solvmatr
are pointing towards the same object, butmemFree_null
is called on both. -
Finally, I am facing a last issue that is not reproduced by this small example. Assuming the two previous problems are solved, the
assert
at line : https://gitlab.inria.fr/solverstack/pastix/-/blob/master/sopalin/starpu/pastix_starpu_interface.c#L502 is not passing on my actual script. However, I do not understand the meaning of this check.