|
@@ -2,7 +2,7 @@
|
|
|
*
|
|
|
* Copyright (C) 2009, 2010, 2011, 2013-2015 Université de Bordeaux
|
|
|
* Copyright (C) 2010 Mehdi Juhoor <mjuhoor@gmail.com>
|
|
|
- * Copyright (C) 2010, 2011, 2012 CNRS
|
|
|
+ * Copyright (C) 2010, 2011, 2012, 2017 CNRS
|
|
|
*
|
|
|
* 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
|
|
@@ -64,15 +64,16 @@ static void csr_filter_func(void *father_interface, void *child_interface, struc
|
|
|
|
|
|
uint32_t first_index = id*chunk_size - firstentry;
|
|
|
uint32_t local_firstentry = rowptr[first_index];
|
|
|
-
|
|
|
+
|
|
|
uint32_t child_nrow = STARPU_MIN(chunk_size, nrow - id*chunk_size);
|
|
|
- uint32_t local_nnz = rowptr[first_index + child_nrow] - rowptr[first_index];
|
|
|
-
|
|
|
+ uint32_t local_nnz = rowptr[first_index + child_nrow] - rowptr[first_index];
|
|
|
+
|
|
|
+ csr_child->id = csr_father->id;
|
|
|
csr_child->nnz = local_nnz;
|
|
|
csr_child->nrow = child_nrow;
|
|
|
csr_child->firstentry = local_firstentry;
|
|
|
csr_child->elemsize = elemsize;
|
|
|
-
|
|
|
+
|
|
|
if (csr_father->nzval)
|
|
|
{
|
|
|
csr_child->rowptr = &csr_father->rowptr[first_index];
|