/* * Copyright © 2010-2017 Inria. All rights reserved. * See COPYING in top-level directory. */ #include #include #include #include #include /* check the myriexpress helpers */ int main(void) { hwloc_topology_t topology; mx_return_t ret; unsigned i, count; int err; putenv("MX_ERRORS_ARE_FATAL=0"); ret = mx_init(); if (ret != MX_SUCCESS) { fprintf(stderr, "mx_init failed, %s\n", mx_strerror(ret)); return 0; } mx_get_info(NULL, MX_NIC_COUNT, NULL, 0, &count, sizeof(count)); if (ret != MX_SUCCESS) { fprintf(stderr, "mx_get_info MX_NIC_COUNT failed, %s\n", mx_strerror(ret)); return 0; } hwloc_topology_init(&topology); hwloc_topology_load(topology); for(i=0; i