Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add hardware topology module #105

Merged
merged 40 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from 37 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
cb37afb
add hwloc c lib rust binder generated by bindgen
bg-furiosa Mar 28, 2024
c441af3
add rust bind of hwloc helper.h
bg-furiosa Mar 28, 2024
1d8716b
add build script for hwloc C lib
bg-furiosa Mar 28, 2024
270b8dc
add hwloc wrapper
bg-furiosa Mar 28, 2024
b5313e7
add topology module
bg-furiosa Mar 28, 2024
15f6dab
add show_topology example
bg-furiosa Mar 28, 2024
eb9cbd9
update device-api deps
bg-furiosa Mar 28, 2024
cfb6b67
update Cargo.lock
bg-furiosa Mar 28, 2024
e55db7d
apply cargo fmt
bg-furiosa Mar 28, 2024
0aca2d6
surround unsafe rust with unsafe block
bg-furiosa Mar 28, 2024
3948f65
update github workflow to install hwloc
bg-furiosa Mar 28, 2024
061675a
rename hwloc module to topology module
bg-furiosa Mar 29, 2024
a6458c4
remove unsafe from hwloc trait
bg-furiosa Apr 5, 2024
aac7640
remove populate() from topology
bg-furiosa Apr 5, 2024
fc68dec
update build.rs to build and link hwloc statically
bg-furiosa Apr 8, 2024
1c120a5
remove hwloc installation in github action
bg-furiosa Apr 8, 2024
a5d25cf
fix cargo lint error
bg-furiosa Apr 8, 2024
39e70de
remove unnecessary dev-deps
bg-furiosa Apr 8, 2024
ec18a9f
generate hwloc bindings
bg-furiosa Apr 8, 2024
918a29e
gen hwloc binding
bg-furiosa Apr 8, 2024
bc7f2f8
remove in-tree hwloc binding
bg-furiosa Apr 8, 2024
49830ef
fix cargo fmt error
bg-furiosa Apr 8, 2024
061c523
support build on mac
bg-furiosa Apr 8, 2024
a41b5e1
add HardwareTopologyHint trait
bg-furiosa Apr 9, 2024
d1e3f93
Merge remote-tracking branch 'origin/main' into hwloc
bg-furiosa Apr 9, 2024
30e8bac
bump up bindgen to 0.69.4
bg-furiosa Apr 9, 2024
1da0486
fix lint error
bg-furiosa Apr 9, 2024
263a6f5
remove unnecessary deps
bg-furiosa Apr 12, 2024
2bd3ef8
move build.rs to cargo root
bg-furiosa Apr 12, 2024
1a67d78
remove limxml2 dep
bg-furiosa Apr 12, 2024
eb89e59
move unsafe location
bg-furiosa Apr 12, 2024
5d25684
replace as_str impl with derive(AsRefStr)
bg-furiosa Apr 12, 2024
f37a11c
narrow down unsafe
bg-furiosa Apr 12, 2024
eb2fd55
adopt topology_provider
bg-furiosa Apr 12, 2024
25a4a13
apply iproduct
bg-furiosa Apr 12, 2024
f9fc416
rename HardwareTopologyHint::device1.get_hw_topology_hint to get_bdf
bg-furiosa Apr 16, 2024
62ce4a6
fix lint error
bg-furiosa Apr 16, 2024
357983c
Merge remote-tracking branch 'origin/main' into hwloc
bg-furiosa Apr 23, 2024
baac82d
apply review and fix lint error
bg-furiosa Apr 23, 2024
0c8ab50
disable import for non linux test
bg-furiosa Apr 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install components
- name: Install rust components
run: rustup component add clippy rustfmt
- name: lint
run: cargo fmt --all --check && cargo -q clippy --all-targets --features blocking -- -D rust_2018_idioms -D warnings
Expand Down
Loading
Loading