{"id":60491,"library":"hwloc","title":"hwloc","description":"Portable Hardware Locality (hwloc) provides a portable abstraction of hierarchical hardware topologies.","status":"active","version":"2.11.2","language":"cpp","source_language":null,"source_url":null,"tags":["hardware","topology","locality","hpc"],"install":[{"cmd":"vcpkg install hwloc","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(hwloc CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE hwloc::hwloc)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"hwloc.h","correct":"#include <hwloc.h>"}],"quickstart":{"code":"#include <hwloc.h>\n#include <stdio.h>\n\nint main() {\n    hwloc_topology_t topology;\n    hwloc_topology_init(&topology);\n    hwloc_topology_load(topology);\n    int depth = hwloc_topology_get_depth(topology);\n    printf(\"Topology depth: %d\\n\", depth);\n    hwloc_topology_destroy(topology);\n    return 0;\n}","lang":"cpp","description":"Load and query hardware topology"},"warnings":[],"env_vars":null,"search_vec":"'abstract':9 'hardwar':3,12,14 'hierarch':11 'hpc':17 'hwloc':1,5 'local':4,16 'portabl':2,8 'provid':6 'topolog':13,15","created_at":"2026-06-16T19:33:05.344621+00:00","updated_at":"2026-06-16T19:33:05.344621+00:00","problems":[],"ecosystem":"vcpkg","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}