|
@@ -2,7 +2,7 @@
|
|
*
|
|
*
|
|
* Copyright (C) 2011-2013,2017 Inria
|
|
* Copyright (C) 2011-2013,2017 Inria
|
|
* Copyright (C) 2009-2017 Université de Bordeaux
|
|
* Copyright (C) 2009-2017 Université de Bordeaux
|
|
- * Copyright (C) 2010-2015,2017 CNRS
|
|
|
|
|
|
+ * Copyright (C) 2010-2015,2017,2018 CNRS
|
|
*
|
|
*
|
|
* StarPU is free software; you can redistribute it and/or modify
|
|
* 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
|
|
* it under the terms of the GNU Lesser General Public License as published by
|
|
@@ -114,7 +114,7 @@ unsigned _starpu_memory_node_register(enum starpu_node_kind kind, int devid)
|
|
unsigned node;
|
|
unsigned node;
|
|
/* ATOMIC_ADD returns the new value ... */
|
|
/* ATOMIC_ADD returns the new value ... */
|
|
node = STARPU_ATOMIC_ADD(&_starpu_descr.nnodes, 1) - 1;
|
|
node = STARPU_ATOMIC_ADD(&_starpu_descr.nnodes, 1) - 1;
|
|
- STARPU_ASSERT_MSG(node < STARPU_MAXNODES,"Too many nodes (%u) for maximum %u. Use configure option --enable-maxnodes=xxx to update the maximum number of nodes.", node, STARPU_MAXNODES);
|
|
|
|
|
|
+ STARPU_ASSERT_MSG(node < STARPU_MAXNODES,"Too many nodes (%u) for maximum %d. Use configure option --enable-maxnodes=xxx to update the maximum number of nodes.", node, STARPU_MAXNODES);
|
|
|
|
|
|
_starpu_descr.nodes[node] = kind;
|
|
_starpu_descr.nodes[node] = kind;
|
|
_STARPU_TRACE_NEW_MEM_NODE(node);
|
|
_STARPU_TRACE_NEW_MEM_NODE(node);
|