{"id":27344827,"url":"https://github.com/pingu-73/hpx-sys","last_synced_at":"2025-04-12T17:34:28.340Z","repository":{"id":246771209,"uuid":"822089208","full_name":"pingu-73/hpx-sys","owner":"pingu-73","description":"HPX's hpx-sys crate, assumes that user has installed hpx along with tcmalloc.","archived":false,"fork":false,"pushed_at":"2024-06-30T11:02:44.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-07-02T11:54:39.650Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pingu-73.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-30T09:29:21.000Z","updated_at":"2024-07-02T11:55:23.481Z","dependencies_parsed_at":null,"dependency_job_id":"61bd0dbe-ea3b-41ca-a653-dbf361bd43f9","html_url":"https://github.com/pingu-73/hpx-sys","commit_stats":null,"previous_names":["pingu-73/hpx-sys"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pingu-73%2Fhpx-sys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pingu-73%2Fhpx-sys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pingu-73%2Fhpx-sys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pingu-73%2Fhpx-sys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pingu-73","download_url":"https://codeload.github.com/pingu-73/hpx-sys/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248605776,"owners_count":21132232,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-12T17:34:25.598Z","updated_at":"2025-04-12T17:34:28.333Z","avatar_url":"https://github.com/pingu-73.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hpx-sys\n\nRust bindings to hpx, a Concurrency and Parallelism library.\n\n# Building on Linux\n## Dependencies\n- boost\n- openmpi (optional)\n\n## Prerequisites\nInstall [Portable Hardware Locality (hwloc)](https://www.open-mpi.org/software/hwloc/v2.11/)\n```\ntar -xf hwloc-2.11.0.tar.gz \u0026\u0026 cd hwloc-2.11.0/\nmkdir build \u0026\u0026 cd build\n../configure --prefix=/home/pingu/opt/hwloc\nmake -j\nmake install\n```\n\nInstall [gpreftools](https://github.com/gperftools/gperftools)\n```\ngit clone https://github.com/gperftools/gperftools.git\ncd gperftools \n./autogen.sh\nmkdir build \u0026\u0026 cd build\n../configure --enable-minimal --prefix=/home/pingu/opt/gperftools\nmake\nmake install\n```\n\n## Building HPX\nGet the [hpx](https://github.com/STEllAR-GROUP/hpx/) development branch.\n```\ngit clone https://github.com/STEllAR-GROUP/hpx.git\n```\nConfigure it with CMake\n```\ncd hpx\nmkdir build\ncd build\ncmake -DCMAKE_INSTALL_PREFIX=/opt/hpx -DBOOST_ROOT=\u003cpath to boost\u003e \\\n-DTCMALLOC_INCLUDE_DIR=/home/pingu/opt/gperftools/include/ \\\n-DTCMALLOC_LIBRARY=/home/pingu/opt/gperftools/lib/libtcmalloc_minimal_debug.so \\\n-DHWLOC_LIBRARY=/home/pingu/opt/hwloc/lib/libhwloc.so \\\n-DHWLOC_INCLUDE_DIR=/home/pingu/opt/hwloc/include/ ..\nmake -j8 \nmake install\n```\n\nAdd the library path of HPX to ldconfig\n```\nsudo echo /opt/hpx/lib \u003e /etc/ld.so.conf.d/hpx.conf\nsudo ldconfig\n```\n\n## Building hpx-sys\nTo build the bindings run\n```\ncargo b --verbose\n```\n\n## Remaining Things\n- [ ] Build script is currently finding for hpx at specified location. But\n  since hpx uses\n  [pkg-config](https://hpx-docs.stellar-group.org/branches/master/html/manual/creating_hpx_projects.html#using-hpx-with-pkg-config) \n  and rust already has a [pkg-config](https://crates.io/crates/pkg-config)\n  wrapper.\n- [ ] Add hpx-sys crate to hpx-rs crate.\n- [ ] Convert the hpx-rs crate structure to something like [ssh2-rs](https://github.com/alexcrichton/ssh2-rs), [git2-rs](https://github.com/rust-lang/git2-rs).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpingu-73%2Fhpx-sys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpingu-73%2Fhpx-sys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpingu-73%2Fhpx-sys/lists"}