Use what's officially supported, no deprecated or possibly ambiguous syntax.
/*
- * Copyright © 2011 inria. All rights reserved.
+ * Copyright © 2011-2014 Inria. All rights reserved.
* See COPYING in top-level directory.
*/
printf("Loading the local topology...\n");
hwloc_topology_init(&local);
- hwloc_topology_set_synthetic(local, "n:2 s:2 ca:1 core:2 ca:2 pu:2");
+ hwloc_topology_set_synthetic(local, "node:2 socket:2 cache:1 core:2 cache:2 pu:2");
hwloc_topology_load(local);
printf("Try to create an empty custom topology...\n");
/*
* Copyright © 2009 CNRS
- * Copyright © 2009-2010 inria. All rights reserved.
+ * Copyright © 2009-2014 Inria. All rights reserved.
* Copyright © 2009 Université Bordeaux 1
* Copyright © 2011 Cisco Systems, Inc. All rights reserved.
* See COPYING in top-level directory.
if (err)
return EXIT_FAILURE;
- hwloc_topology_set_synthetic (topology, "node:3 socket:3 core:3 proc:3");
+ hwloc_topology_set_synthetic (topology, "node:3 socket:3 core:3 pu:3");
err = hwloc_topology_load (topology);
if (err)